Class ToolAttributes.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.ToolAttributes.Builder
- All Implemented Interfaces:
CopyableBuilder<ToolAttributes.Builder,,ToolAttributes> MutableBuilder<ToolAttributes.Builder,,ToolAttributes> ObjectBuilder<ToolAttributes>
- Enclosing class:
ToolAttributes
public static class ToolAttributes.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ToolAttributes.Builder,ToolAttributes>
Builder for
ToolAttributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ToolAttributes.Builderattributes(String key, JsonData value) Adds an entry toattributes.final ToolAttributes.Builderattributes(Map<String, JsonData> map) Adds all elements ofmaptoattributes.build()Builds aToolAttributes.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ToolAttributes.BuilderinputSchema(String value) API name:input_schemafinal ToolAttributes.BuilderAPI name:strictMethods 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<ToolAttributes.Builder,ToolAttributes> - Returns:
- a new builder instance.
-
attributes
Adds all elements of
maptoattributes. -
attributes
Adds an entry to
attributes. -
inputSchema
API name:input_schema -
strict
API name:strict -
build
Builds aToolAttributes.- Specified by:
buildin interfaceObjectBuilder<ToolAttributes>- Throws:
NullPointerException- if some of the required fields are null.
-