Class UndeployModelResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ml.UndeployModelResponse.Builder
-
- All Implemented Interfaces:
ObjectBuilder<UndeployModelResponse>
- Enclosing class:
- UndeployModelResponse
public static class UndeployModelResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<UndeployModelResponse>
Builder forUndeployModelResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UndeployModelResponsebuild()Builds aUndeployModelResponse.UndeployModelResponse.Buildernodes(java.lang.String key, java.util.function.Function<UndeployModelNode.Builder,ObjectBuilder<UndeployModelNode>> fn)Adds a value tonodesusing a builder lambda.UndeployModelResponse.Buildernodes(java.lang.String key, UndeployModelNode value)Adds an entry tonodes.UndeployModelResponse.Buildernodes(java.util.Map<java.lang.String,UndeployModelNode> map)Adds all elements ofmaptonodes.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
nodes
public final UndeployModelResponse.Builder nodes(java.util.Map<java.lang.String,UndeployModelNode> map)
Adds all elements of
maptonodes.
-
nodes
public final UndeployModelResponse.Builder nodes(java.lang.String key, UndeployModelNode value)
Adds an entry to
nodes.
-
nodes
public final UndeployModelResponse.Builder nodes(java.lang.String key, java.util.function.Function<UndeployModelNode.Builder,ObjectBuilder<UndeployModelNode>> fn)
Adds a value to
nodesusing a builder lambda.
-
build
public UndeployModelResponse build()
Builds aUndeployModelResponse.- Specified by:
buildin interfaceObjectBuilder<UndeployModelResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-