code: public RestoreObjectRequest withType(RestoreRequestType restoreRequestType) {
          setType(restoreRequestType == null ? null : restoreRequestType.toString());
          return this;
      }
docs: Sets the restore request type.
  
  @param restoreRequestType New value for restore request type.
  @return This object for method chaining.