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.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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_countis0.API name:
error_detailsAdds all elements of
listtoerrorDetails. -
errorDetails
Details about the errors. This field is not present in the response whenerror_countis0.API name:
error_detailsAdds 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_countis0.API name:
error_detailsAdds a value to
errorDetailsusing 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:
selfin classWithJsonObjectBuilderBase<InvalidateTokenResponse.Builder>
-
build
Builds aInvalidateTokenResponse.- Specified by:
buildin interfaceObjectBuilder<InvalidateTokenResponse>- Throws:
NullPointerException- if some of the required fields are null.
-