Class GetStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetStatsResponse.Builder>
co.elastic.clients.elasticsearch.security.GetStatsResponse.Builder
- All Implemented Interfaces:
WithJson<GetStatsResponse.Builder>,ObjectBuilder<GetStatsResponse>
- Enclosing class:
- GetStatsResponse
public static class GetStatsResponse.Builder
extends WithJsonObjectBuilderBase<GetStatsResponse.Builder>
implements ObjectBuilder<GetStatsResponse>
Builder for
GetStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetStatsResponse.final GetStatsResponse.Buildernodes(String key, NodeSecurityStats value) Required - A map of node IDs to security statistics for that node.final GetStatsResponse.BuilderRequired - A map of node IDs to security statistics for that node.final GetStatsResponse.Buildernodes(Map<String, NodeSecurityStats> map) Required - A map of node IDs to security statistics for that node.protected GetStatsResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodes
Required - A map of node IDs to security statistics for that node.API name:
nodesAdds all entries of
maptonodes. -
nodes
Required - A map of node IDs to security statistics for that node.API name:
nodesAdds an entry to
nodes. -
nodes
public final GetStatsResponse.Builder nodes(String key, Function<NodeSecurityStats.Builder, ObjectBuilder<NodeSecurityStats>> fn) Required - A map of node IDs to security statistics for that node.API name:
nodesAdds an entry to
nodesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetStatsResponse.Builder>
-
build
Builds aGetStatsResponse.- Specified by:
buildin interfaceObjectBuilder<GetStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-