Class GetServiceCredentialsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetServiceCredentialsResponse.Builder>
co.elastic.clients.elasticsearch.security.GetServiceCredentialsResponse.Builder
- All Implemented Interfaces:
WithJson<GetServiceCredentialsResponse.Builder>,ObjectBuilder<GetServiceCredentialsResponse>
- Enclosing class:
- GetServiceCredentialsResponse
public static class GetServiceCredentialsResponse.Builder
extends WithJsonObjectBuilderBase<GetServiceCredentialsResponse.Builder>
implements ObjectBuilder<GetServiceCredentialsResponse>
Builder for
GetServiceCredentialsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetServiceCredentialsResponse.count(int value) Required - API name:countnodesCredentials(NodesCredentials value) Required - Service account credentials collected from all nodes of the cluster.Required - Service account credentials collected from all nodes of the cluster.protected GetServiceCredentialsResponse.Builderself()serviceAccount(String value) Required - API name:service_accountRequired - API name:tokensRequired - API name:tokensMethods 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
-
serviceAccount
Required - API name:service_account -
count
Required - API name:count -
tokens
Required - API name:tokensAdds all entries of
maptotokens. -
tokens
Required - API name:tokensAdds an entry to
tokens. -
nodesCredentials
Required - Service account credentials collected from all nodes of the cluster.API name:
nodes_credentials -
nodesCredentials
public final GetServiceCredentialsResponse.Builder nodesCredentials(Function<NodesCredentials.Builder, ObjectBuilder<NodesCredentials>> fn) Required - Service account credentials collected from all nodes of the cluster.API name:
nodes_credentials -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetServiceCredentialsResponse.Builder>
-
build
Builds aGetServiceCredentialsResponse.- Specified by:
buildin interfaceObjectBuilder<GetServiceCredentialsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-