Class InvalidateTokenResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.InvalidateTokenResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<InvalidateTokenResponse>
- Enclosing class:
- InvalidateTokenResponse
public static class InvalidateTokenResponse.Builder extends java.lang.Object implements ObjectBuilder<InvalidateTokenResponse>
Builder for
InvalidateTokenResponse
.-
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 InvalidateTokenResponse.Builder errorDetails(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)SeterrorDetails(List)
to a singleton list. -
addErrorDetails
public InvalidateTokenResponse.Builder addErrorDetails(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Add a value toerrorDetails(List)
, creating the list if needed. -
invalidatedTokens
Required - API name:invalidated_tokens
-
previouslyInvalidatedTokens
Required - API name:previously_invalidated_tokens
-
build
Builds aInvalidateTokenResponse
.- Specified by:
build
in interfaceObjectBuilder<InvalidateTokenResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-