Class InvalidateTokenResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.InvalidateTokenResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<InvalidateTokenResponse>
- Enclosing class:
- InvalidateTokenResponse
public static class InvalidateTokenResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<InvalidateTokenResponse>
Builder for
InvalidateTokenResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description InvalidateTokenResponsebuild()Builds aInvalidateTokenResponse.InvalidateTokenResponse.BuildererrorCount(long value)Required - API name:error_countInvalidateTokenResponse.BuildererrorDetails(ErrorCause value, ErrorCause... values)API name:error_detailsInvalidateTokenResponse.BuildererrorDetails(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:error_detailsInvalidateTokenResponse.BuildererrorDetails(java.util.List<ErrorCause> list)API name:error_detailsInvalidateTokenResponse.BuilderinvalidatedTokens(long value)Required - API name:invalidated_tokensInvalidateTokenResponse.BuilderpreviouslyInvalidatedTokens(long value)Required - API name:previously_invalidated_tokensMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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_detailsAdds all elements of
listtoerrorDetails. -
errorDetails
API name:error_detailsAdds one or more values to
errorDetails. -
errorDetails
public final InvalidateTokenResponse.Builder errorDetails(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:error_detailsAdds a value to
errorDetailsusing a builder lambda. -
invalidatedTokens
Required - API name:invalidated_tokens -
previouslyInvalidatedTokens
Required - API name:previously_invalidated_tokens -
build
Builds aInvalidateTokenResponse.- Specified by:
buildin interfaceObjectBuilder<InvalidateTokenResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-