Class GetProfileResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ml.GetProfileResponse.Builder
-
- All Implemented Interfaces:
CopyableBuilder<GetProfileResponse.Builder,GetProfileResponse>,MutableBuilder<GetProfileResponse.Builder,GetProfileResponse>,ObjectBuilder<GetProfileResponse>
- Enclosing class:
- GetProfileResponse
public static class GetProfileResponse.Builder extends ObjectBuilderBase implements CopyableBuilder<GetProfileResponse.Builder,GetProfileResponse>
Builder forGetProfileResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetProfileResponsebuild()Builds aGetProfileResponse.GetProfileResponse.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.GetProfileResponse.Buildernodes(java.lang.String key, java.util.function.Function<Node.Builder,ObjectBuilder<Node>> fn)API name:nodesGetProfileResponse.Buildernodes(java.lang.String key, Node value)API name:nodesGetProfileResponse.Buildernodes(java.util.Map<java.lang.String,Node> map)API name:nodes-
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 GetProfileResponse.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetProfileResponse.Builder,GetProfileResponse>- Returns:
- a new builder instance.
-
nodes
@Nonnull public final GetProfileResponse.Builder nodes(java.util.Map<java.lang.String,Node> map)
API name:nodesAdds all elements of
maptonodes.
-
nodes
@Nonnull public final GetProfileResponse.Builder nodes(java.lang.String key, Node value)
API name:nodesAdds an entry to
nodes.
-
nodes
@Nonnull public final GetProfileResponse.Builder nodes(java.lang.String key, java.util.function.Function<Node.Builder,ObjectBuilder<Node>> fn)
API name:nodesAdds a value to
nodesusing a builder lambda.
-
build
@Nonnull public GetProfileResponse build()
Builds aGetProfileResponse.- Specified by:
buildin interfaceObjectBuilder<GetProfileResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-