Class GetAgentResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.GetAgentResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GetAgentResponse.Builder,,GetAgentResponse> MutableBuilder<GetAgentResponse.Builder,,GetAgentResponse> ObjectBuilder<GetAgentResponse>
- Enclosing class:
GetAgentResponse
public static class GetAgentResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GetAgentResponse.Builder,GetAgentResponse>
Builder for
GetAgentResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetAgentResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GetAgentResponse.BuildercreatedTime(Long value) The created time.final GetAgentResponse.Builderdescription(String value) The agent description.final GetAgentResponse.BuilderWhether the agent is hidden.final GetAgentResponse.BuilderlastUpdatedTime(Long value) The last updated time.final GetAgentResponse.BuilderAPI name:namefinal GetAgentResponse.BuilderAPI name:toolsfinal GetAgentResponse.BuilderAPI name:toolsfinal GetAgentResponse.BuilderAPI name:toolsfinal GetAgentResponse.BuilderThe agent type.Methods 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<GetAgentResponse.Builder,GetAgentResponse> - Returns:
- a new builder instance.
-
createdTime
The created time.API name:
created_time -
description
The agent description.API name:
description -
isHidden
Whether the agent is hidden.API name:
is_hidden -
lastUpdatedTime
The last updated time.API name:
last_updated_time -
name
API name:name -
tools
API name:toolsAdds all elements of
listtotools. -
tools
API name:toolsAdds one or more values to
tools. -
tools
@Nonnull public final GetAgentResponse.Builder tools(Function<ToolItems.Builder, ObjectBuilder<ToolItems>> fn) API name:toolsAdds a value to
toolsusing a builder lambda. -
type
The agent type.API name:
type -
build
Builds aGetAgentResponse.- Specified by:
buildin interfaceObjectBuilder<GetAgentResponse>- Throws:
NullPointerException- if some of the required fields are null.
-