Class Tool.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ml.Tool.Builder
-
- All Implemented Interfaces:
CopyableBuilder<Tool.Builder,Tool>,MutableBuilder<Tool.Builder,Tool>,ObjectBuilder<Tool>
- Enclosing class:
- Tool
public static class Tool.Builder extends ObjectBuilderBase implements CopyableBuilder<Tool.Builder,Tool>
Builder forTool.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Toolbuild()Builds aTool.Tool.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.Tool.Builderdescription(java.lang.String value)The tool description.Tool.Buildername(java.lang.String value)API name:nameTool.Buildertype(java.lang.String value)The tool type.Tool.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 Tool.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Tool.Builder,Tool>- Returns:
- a new builder instance.
-
description
@Nonnull public final Tool.Builder description(@Nullable java.lang.String value)
The tool description.API name:
description
-
name
@Nonnull public final Tool.Builder name(@Nullable java.lang.String value)
API name:name
-
type
@Nonnull public final Tool.Builder type(@Nullable java.lang.String value)
The tool type.API name:
type
-
version
@Nonnull public final Tool.Builder version(@Nullable java.lang.String value)
API name:version
-
build
@Nonnull public Tool build()
Builds aTool.- Specified by:
buildin interfaceObjectBuilder<Tool>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-