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 for
GetToolResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal GetToolResponse.BuilderAPI name:attributesfinal GetToolResponse.Builderattributes(ToolAttributes value) API name:attributesbuild()Builds aGetToolResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GetToolResponse.Builderdescription(String value) The tool description.final GetToolResponse.BuilderAPI name:namefinal GetToolResponse.BuilderThe tool type.final GetToolResponse.BuilderAPI name:versionMethods 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<GetToolResponse.Builder,GetToolResponse> - Returns:
- a new builder instance.
-
attributes
API name:attributes -
attributes
@Nonnull public final GetToolResponse.Builder attributes(Function<ToolAttributes.Builder, ObjectBuilder<ToolAttributes>> fn) API name:attributes -
description
The tool description.API name:
description -
name
API name:name -
type
The tool type.API name:
type -
version
API name:version -
build
Builds aGetToolResponse.- Specified by:
buildin interfaceObjectBuilder<GetToolResponse>- Throws:
NullPointerException- if some of the required fields are null.
-