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 forGetAgentResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetAgentResponsebuild()Builds aGetAgentResponse.GetAgentResponse.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.GetAgentResponse.BuildercreatedTime(java.lang.Long value)The created time.GetAgentResponse.Builderdescription(java.lang.String value)The agent description.GetAgentResponse.BuilderisHidden(java.lang.Boolean value)Whether the agent is hidden.GetAgentResponse.BuilderlastUpdatedTime(java.lang.Long value)The last updated time.GetAgentResponse.Buildername(java.lang.String value)API name:nameGetAgentResponse.Buildertools(java.util.function.Function<ToolItems.Builder,ObjectBuilder<ToolItems>> fn)API name:toolsGetAgentResponse.Buildertools(java.util.List<ToolItems> list)API name:toolsGetAgentResponse.Buildertools(ToolItems value, ToolItems... values)API name:toolsGetAgentResponse.Buildertype(java.lang.String value)The agent type.-
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 GetAgentResponse.Builder 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
@Nonnull public final GetAgentResponse.Builder createdTime(@Nullable java.lang.Long value)
The created time.API name:
created_time
-
description
@Nonnull public final GetAgentResponse.Builder description(@Nullable java.lang.String value)
The agent description.API name:
description
-
isHidden
@Nonnull public final GetAgentResponse.Builder isHidden(@Nullable java.lang.Boolean value)
Whether the agent is hidden.API name:
is_hidden
-
lastUpdatedTime
@Nonnull public final GetAgentResponse.Builder lastUpdatedTime(@Nullable java.lang.Long value)
The last updated time.API name:
last_updated_time
-
name
@Nonnull public final GetAgentResponse.Builder name(@Nullable java.lang.String value)
API name:name
-
tools
@Nonnull public final GetAgentResponse.Builder tools(java.util.List<ToolItems> list)
API name:toolsAdds all elements of
listtotools.
-
tools
@Nonnull public final GetAgentResponse.Builder tools(ToolItems value, ToolItems... values)
API name:toolsAdds one or more values to
tools.
-
tools
@Nonnull public final GetAgentResponse.Builder tools(java.util.function.Function<ToolItems.Builder,ObjectBuilder<ToolItems>> fn)
API name:toolsAdds a value to
toolsusing a builder lambda.
-
type
@Nonnull public final GetAgentResponse.Builder type(@Nullable java.lang.String value)
The agent type.API name:
type
-
build
@Nonnull public GetAgentResponse build()
Builds aGetAgentResponse.- Specified by:
buildin interfaceObjectBuilder<GetAgentResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-