Class GetMemoryStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetMemoryStatsResponse.Builder>
co.elastic.clients.elasticsearch.ml.GetMemoryStatsResponse.Builder
- All Implemented Interfaces:
WithJson<GetMemoryStatsResponse.Builder>,ObjectBuilder<GetMemoryStatsResponse>
- Enclosing class:
- GetMemoryStatsResponse
public static class GetMemoryStatsResponse.Builder extends WithJsonObjectBuilderBase<GetMemoryStatsResponse.Builder> implements ObjectBuilder<GetMemoryStatsResponse>
Builder for
GetMemoryStatsResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetMemoryStatsResponsebuild()Builds aGetMemoryStatsResponse.GetMemoryStatsResponse.BuilderclusterName(java.lang.String value)Required - API name:cluster_nameGetMemoryStatsResponse.Buildernodes(java.lang.String key, Memory value)Required - API name:nodesGetMemoryStatsResponse.Buildernodes(java.lang.String key, java.util.function.Function<Memory.Builder,ObjectBuilder<Memory>> fn)Required - API name:nodesGetMemoryStatsResponse.Buildernodes(java.util.Map<java.lang.String,Memory> map)Required - API name:nodesGetMemoryStatsResponse.BuildernodeStats(NodeStatistics value)Required - API name:_nodesGetMemoryStatsResponse.BuildernodeStats(java.util.function.Function<NodeStatistics.Builder,ObjectBuilder<NodeStatistics>> fn)Required - API name:_nodesprotected GetMemoryStatsResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeStats
Required - API name:_nodes -
nodeStats
public final GetMemoryStatsResponse.Builder nodeStats(java.util.function.Function<NodeStatistics.Builder,ObjectBuilder<NodeStatistics>> fn)Required - API name:_nodes -
clusterName
Required - API name:cluster_name -
nodes
Required - API name:nodesAdds all entries of
maptonodes. -
nodes
Required - API name:nodesAdds an entry to
nodes. -
nodes
public final GetMemoryStatsResponse.Builder nodes(java.lang.String key, java.util.function.Function<Memory.Builder,ObjectBuilder<Memory>> fn)Required - API name:nodesAdds an entry to
nodesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetMemoryStatsResponse.Builder>
-
build
Builds aGetMemoryStatsResponse.- Specified by:
buildin interfaceObjectBuilder<GetMemoryStatsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-