Class GetToolResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ml.GetToolResponse.Builder
-
- All Implemented Interfaces:
CopyableBuilder<GetToolResponse.Builder,GetToolResponse>,MutableBuilder<GetToolResponse.Builder,GetToolResponse>,ObjectBuilder<GetToolResponse>
- Enclosing class:
- GetToolResponse
public static class GetToolResponse.Builder extends ObjectBuilderBase implements CopyableBuilder<GetToolResponse.Builder,GetToolResponse>
Builder forGetToolResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetToolResponsebuild()Builds aGetToolResponse.GetToolResponse.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.GetToolResponse.Builderdescription(java.lang.String value)The tool description.GetToolResponse.Buildername(java.lang.String value)API name:nameGetToolResponse.Buildertype(java.lang.String value)The tool type.GetToolResponse.Builderversion(java.lang.String value)API name:version-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
-
-
-
Method Detail
-
copy
@Nonnull public GetToolResponse.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetToolResponse.Builder,GetToolResponse>- Returns:
- a new builder instance.
-
description
@Nonnull public final GetToolResponse.Builder description(@Nullable java.lang.String value)
The tool description.API name:
description
-
name
@Nonnull public final GetToolResponse.Builder name(@Nullable java.lang.String value)
API name:name
-
type
@Nonnull public final GetToolResponse.Builder type(@Nullable java.lang.String value)
The tool type.API name:
type
-
version
@Nonnull public final GetToolResponse.Builder version(@Nullable java.lang.String value)
API name:version
-
build
@Nonnull public GetToolResponse build()
Builds aGetToolResponse.- Specified by:
buildin interfaceObjectBuilder<GetToolResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-