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 for
GetProfileResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetProfileResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.nodes(String key, Function<Node.Builder, ObjectBuilder<Node>> fn) API name:nodesAPI name:nodesAPI name:nodesMethods 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<GetProfileResponse.Builder,GetProfileResponse> - Returns:
- a new builder instance.
-
nodes
API name:nodesAdds all elements of
maptonodes. -
nodes
API name:nodesAdds an entry to
nodes. -
nodes
@Nonnull public final GetProfileResponse.Builder nodes(String key, Function<Node.Builder, ObjectBuilder<Node>> fn) API name:nodesAdds a value to
nodesusing a builder lambda. -
build
Builds aGetProfileResponse.- Specified by:
buildin interfaceObjectBuilder<GetProfileResponse>- Throws:
NullPointerException- if some of the required fields are null.
-