Class InvalidateApiKeyResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InvalidateApiKeyResponse.Builder>
co.elastic.clients.elasticsearch.security.InvalidateApiKeyResponse.Builder
- All Implemented Interfaces:
WithJson<InvalidateApiKeyResponse.Builder>
,ObjectBuilder<InvalidateApiKeyResponse>
- Enclosing class:
- InvalidateApiKeyResponse
public static class InvalidateApiKeyResponse.Builder
extends WithJsonObjectBuilderBase<InvalidateApiKeyResponse.Builder>
implements ObjectBuilder<InvalidateApiKeyResponse>
Builder for
InvalidateApiKeyResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aInvalidateApiKeyResponse
.errorCount
(int value) Required - API name:error_count
errorDetails
(ErrorCause value, ErrorCause... values) API name:error_details
API name:error_details
errorDetails
(List<ErrorCause> list) API name:error_details
invalidatedApiKeys
(String value, String... values) Required - API name:invalidated_api_keys
invalidatedApiKeys
(List<String> list) Required - API name:invalidated_api_keys
previouslyInvalidatedApiKeys
(String value, String... values) Required - API name:previously_invalidated_api_keys
Required - API name:previously_invalidated_api_keys
protected InvalidateApiKeyResponse.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
-
errorCount
Required - API name:error_count
-
errorDetails
API name:error_details
Adds all elements of
list
toerrorDetails
. -
errorDetails
API name:error_details
Adds one or more values to
errorDetails
. -
errorDetails
public final InvalidateApiKeyResponse.Builder errorDetails(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:error_details
Adds a value to
errorDetails
using a builder lambda. -
invalidatedApiKeys
Required - API name:invalidated_api_keys
Adds all elements of
list
toinvalidatedApiKeys
. -
invalidatedApiKeys
Required - API name:invalidated_api_keys
Adds one or more values to
invalidatedApiKeys
. -
previouslyInvalidatedApiKeys
Required - API name:previously_invalidated_api_keys
Adds all elements of
list
topreviouslyInvalidatedApiKeys
. -
previouslyInvalidatedApiKeys
public final InvalidateApiKeyResponse.Builder previouslyInvalidatedApiKeys(String value, String... values) Required - API name:previously_invalidated_api_keys
Adds one or more values to
previouslyInvalidatedApiKeys
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<InvalidateApiKeyResponse.Builder>
-
build
Builds aInvalidateApiKeyResponse
.- Specified by:
build
in interfaceObjectBuilder<InvalidateApiKeyResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-