Class InvalidateTokenResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InvalidateTokenResponse.Builder>
co.elastic.clients.elasticsearch.security.InvalidateTokenResponse.Builder
- All Implemented Interfaces:
WithJson<InvalidateTokenResponse.Builder>
,ObjectBuilder<InvalidateTokenResponse>
- Enclosing class:
- InvalidateTokenResponse
public static class InvalidateTokenResponse.Builder
extends WithJsonObjectBuilderBase<InvalidateTokenResponse.Builder>
implements ObjectBuilder<InvalidateTokenResponse>
Builder for
InvalidateTokenResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aInvalidateTokenResponse
.errorCount
(long value) Required - The number of errors that were encountered when invalidating the tokens.errorDetails
(ErrorCause value, ErrorCause... values) Details about the errors.Details about the errors.errorDetails
(List<ErrorCause> list) Details about the errors.invalidatedTokens
(long value) Required - The number of the tokens that were invalidated as part of this request.previouslyInvalidatedTokens
(long value) Required - The number of tokens that were already invalidated.protected InvalidateTokenResponse.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 - The number of errors that were encountered when invalidating the tokens.API name:
error_count
-
errorDetails
Details about the errors. This field is not present in the response whenerror_count
is0
.API name:
error_details
Adds all elements of
list
toerrorDetails
. -
errorDetails
Details about the errors. This field is not present in the response whenerror_count
is0
.API name:
error_details
Adds one or more values to
errorDetails
. -
errorDetails
public final InvalidateTokenResponse.Builder errorDetails(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Details about the errors. This field is not present in the response whenerror_count
is0
.API name:
error_details
Adds a value to
errorDetails
using a builder lambda. -
invalidatedTokens
Required - The number of the tokens that were invalidated as part of this request.API name:
invalidated_tokens
-
previouslyInvalidatedTokens
Required - The number of tokens that were already invalidated.API name:
previously_invalidated_tokens
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<InvalidateTokenResponse.Builder>
-
build
Builds aInvalidateTokenResponse
.- Specified by:
build
in interfaceObjectBuilder<InvalidateTokenResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-