Class ClearCachedServiceTokensResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClearCachedServiceTokensResponse.Builder>
co.elastic.clients.elasticsearch.security.ClearCachedServiceTokensResponse.Builder
- All Implemented Interfaces:
WithJson<ClearCachedServiceTokensResponse.Builder>
,ObjectBuilder<ClearCachedServiceTokensResponse>
- Enclosing class:
- ClearCachedServiceTokensResponse
public static class ClearCachedServiceTokensResponse.Builder
extends WithJsonObjectBuilderBase<ClearCachedServiceTokensResponse.Builder>
implements ObjectBuilder<ClearCachedServiceTokensResponse>
Builder for
ClearCachedServiceTokensResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aClearCachedServiceTokensResponse
.clusterName
(String value) Required - API name:cluster_name
nodes
(String key, ClusterNode value) Required - API name:nodes
nodes
(String key, Function<ClusterNode.Builder, ObjectBuilder<ClusterNode>> fn) Required - API name:nodes
nodes
(Map<String, ClusterNode> map) Required - API name:nodes
nodeStats
(NodeStatistics value) Required - API name:_nodes
Required - API name:_nodes
protected ClearCachedServiceTokensResponse.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeStats
Required - API name:_nodes
-
nodeStats
public final ClearCachedServiceTokensResponse.Builder nodeStats(Function<NodeStatistics.Builder, ObjectBuilder<NodeStatistics>> fn) Required - API name:_nodes
-
clusterName
Required - API name:cluster_name
-
nodes
Required - API name:nodes
Adds all entries of
map
tonodes
. -
nodes
Required - API name:nodes
Adds an entry to
nodes
. -
nodes
public final ClearCachedServiceTokensResponse.Builder nodes(String key, Function<ClusterNode.Builder, ObjectBuilder<ClusterNode>> fn) Required - API name:nodes
Adds an entry to
nodes
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ClearCachedServiceTokensResponse.Builder>
-
build
Builds aClearCachedServiceTokensResponse
.- Specified by:
build
in interfaceObjectBuilder<ClearCachedServiceTokensResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-