Class GetModelRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<GetModelRequest.Builder>
org.opensearch.client.opensearch.ml.GetModelRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<GetModelRequest.Builder,,GetModelRequest> MutableBuilder<GetModelRequest.Builder,,GetModelRequest> ObjectBuilder<GetModelRequest>
- Enclosing class:
GetModelRequest
public static class GetModelRequest.Builder
extends RequestBase.AbstractBuilder<GetModelRequest.Builder>
implements CopyableBuilder<GetModelRequest.Builder,GetModelRequest>
Builder for
GetModelRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetModelRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GetModelRequest.BuilderRequired - API name:model_idprotected GetModelRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods 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<GetModelRequest.Builder,GetModelRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetModelRequest.Builder>
-
modelId
Required - API name:model_id -
build
Builds aGetModelRequest.- Specified by:
buildin interfaceObjectBuilder<GetModelRequest>- Throws:
NullPointerException- if some of the required fields are null.
-