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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aInvalidateTokenResponse
.errorCount
(long 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
invalidatedTokens
(long value) Required - API name:invalidated_tokens
previouslyInvalidatedTokens
(long value) Required - API name:previously_invalidated_tokens
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 - 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 InvalidateTokenResponse.Builder errorDetails(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:error_details
Adds a value to
errorDetails
using a builder lambda. -
invalidatedTokens
Required - API name:invalidated_tokens
-
previouslyInvalidatedTokens
Required - 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.
-