Class ToolItems.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.ToolItems.Builder
- All Implemented Interfaces:
CopyableBuilder<ToolItems.Builder,,ToolItems> MutableBuilder<ToolItems.Builder,,ToolItems> ObjectBuilder<ToolItems>
- Enclosing class:
ToolItems
public static class ToolItems.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ToolItems.Builder,ToolItems>
Builder for
ToolItems.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ToolItems.BuilderAPI name:attributesfinal ToolItems.Builderattributes(ToolAttributes value) API name:attributesbuild()Builds aToolItems.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ToolItems.Builderdescription(String value) API name:descriptionfinal ToolItems.BuilderAPI name:include_output_in_agent_responsefinal ToolItems.BuilderAdds an entry tometadata.final ToolItems.BuilderAdds all elements ofmaptometadata.final ToolItems.BuilderAPI name:namefinal ToolItems.Builderparameters(String key, JsonData value) API name:parametersfinal ToolItems.Builderparameters(Map<String, JsonData> map) API name:parametersfinal ToolItems.BuilderAPI name:typeMethods 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<ToolItems.Builder,ToolItems> - Returns:
- a new builder instance.
-
attributes
API name:attributes -
attributes
@Nonnull public final ToolItems.Builder attributes(Function<ToolAttributes.Builder, ObjectBuilder<ToolAttributes>> fn) API name:attributes -
description
API name:description -
includeOutputInAgentResponse
API name:include_output_in_agent_response -
metadata
Adds all elements of
maptometadata. -
metadata
Adds an entry to
metadata. -
name
API name:name -
parameters
API name:parametersAdds all elements of
maptoparameters. -
parameters
API name:parametersAdds an entry to
parameters. -
type
API name:type -
build
Builds aToolItems.- Specified by:
buildin interfaceObjectBuilder<ToolItems>- Throws:
NullPointerException- if some of the required fields are null.
-