Class GetModelResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.GetModelResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GetModelResponse.Builder,,GetModelResponse> MutableBuilder<GetModelResponse.Builder,,GetModelResponse> ObjectBuilder<GetModelResponse>
- Enclosing class:
GetModelResponse
public static class GetModelResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GetModelResponse.Builder,GetModelResponse>
Builder for
GetModelResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal GetModelResponse.BuilderThe algorithm.build()Builds aGetModelResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GetModelResponse.BuildercreatedTime(Long value) The created time.final GetModelResponse.BuilderWhether the model is hidden.final GetModelResponse.BuilderlastRegisteredTime(Long value) The last registered time.final GetModelResponse.BuilderlastUpdatedTime(Long value) The last updated time.final GetModelResponse.BuilderAPI name:model_configfinal GetModelResponse.BuildermodelConfig(ModelConfig value) API name:model_configfinal GetModelResponse.BuildermodelContentHashValue(String value) The model content hash value.final GetModelResponse.BuildermodelContentSizeInBytes(Long value) The model content size in bytes.final GetModelResponse.BuildermodelFormat(ModelFormat value) API name:model_formatfinal GetModelResponse.BuildermodelGroupId(String value) The model group ID.final GetModelResponse.BuildermodelState(String value) Required - The model state.final GetModelResponse.BuildermodelVersion(String value) The model version.final GetModelResponse.BuilderThe model name.final GetModelResponse.BuildertotalChunks(Long value) The total chunks.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetModelResponse.Builder,GetModelResponse> - Returns:
- a new builder instance.
-
algorithm
The algorithm.API name:
algorithm -
createdTime
The created time.API name:
created_time -
isHidden
Whether the model is hidden.API name:
is_hidden -
lastRegisteredTime
The last registered time.API name:
last_registered_time -
lastUpdatedTime
The last updated time.API name:
last_updated_time -
modelConfig
API name:model_config -
modelConfig
@Nonnull public final GetModelResponse.Builder modelConfig(Function<ModelConfig.Builder, ObjectBuilder<ModelConfig>> fn) API name:model_config -
modelContentHashValue
The model content hash value.API name:
model_content_hash_value -
modelContentSizeInBytes
The model content size in bytes.API name:
model_content_size_in_bytes -
modelFormat
API name:model_format -
modelGroupId
The model group ID.API name:
model_group_id -
modelState
Required - The model state.API name:
model_state -
modelVersion
The model version.API name:
model_version -
name
The model name.API name:
name -
totalChunks
The total chunks.API name:
total_chunks -
build
Builds aGetModelResponse.- Specified by:
buildin interfaceObjectBuilder<GetModelResponse>- Throws:
NullPointerException- if some of the required fields are null.
-