Class InvalidateApiKeyResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.InvalidateApiKeyResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<InvalidateApiKeyResponse>
- Enclosing class:
- InvalidateApiKeyResponse
public static class InvalidateApiKeyResponse.Builder extends java.lang.Object implements ObjectBuilder<InvalidateApiKeyResponse>
Builder for
InvalidateApiKeyResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errorCount
Required - API name:error_count
-
errorDetails
API name:error_details
-
errorDetails
API name:error_details
-
addErrorDetails
Add a value toerrorDetails(List)
, creating the list if needed. -
errorDetails
public InvalidateApiKeyResponse.Builder errorDetails(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)SeterrorDetails(List)
to a singleton list. -
addErrorDetails
public InvalidateApiKeyResponse.Builder addErrorDetails(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Add a value toerrorDetails(List)
, creating the list if needed. -
invalidatedApiKeys
Required - API name:invalidated_api_keys
-
invalidatedApiKeys
Required - API name:invalidated_api_keys
-
addInvalidatedApiKeys
Add a value toinvalidatedApiKeys(List)
, creating the list if needed. -
previouslyInvalidatedApiKeys
public InvalidateApiKeyResponse.Builder previouslyInvalidatedApiKeys(java.util.List<java.lang.String> value)Required - API name:previously_invalidated_api_keys
-
previouslyInvalidatedApiKeys
Required - API name:previously_invalidated_api_keys
-
addPreviouslyInvalidatedApiKeys
Add a value topreviouslyInvalidatedApiKeys(List)
, creating the list if needed. -
build
Builds aInvalidateApiKeyResponse
.- Specified by:
build
in interfaceObjectBuilder<InvalidateApiKeyResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-