Class InvalidateTokenRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<InvalidateTokenRequest.Builder>
co.elastic.clients.elasticsearch.security.InvalidateTokenRequest.Builder
- All Implemented Interfaces:
WithJson<InvalidateTokenRequest.Builder>
,ObjectBuilder<InvalidateTokenRequest>
- Enclosing class:
- InvalidateTokenRequest
public static class InvalidateTokenRequest.Builder
extends RequestBase.AbstractBuilder<InvalidateTokenRequest.Builder>
implements ObjectBuilder<InvalidateTokenRequest>
Builder for
InvalidateTokenRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aInvalidateTokenRequest
.The name of an authentication realm.refreshToken
(String value) A refresh token.protected InvalidateTokenRequest.Builder
self()
An access token.The username of a user.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
-
realmName
The name of an authentication realm. This parameter cannot be used with eitherrefresh_token
ortoken
.API name:
realm_name
-
refreshToken
A refresh token. This parameter cannot be used if any ofrefresh_token
,realm_name
, orusername
are used.API name:
refresh_token
-
token
An access token. This parameter cannot be used if any ofrefresh_token
,realm_name
, orusername
are used.API name:
token
-
username
The username of a user. This parameter cannot be used with eitherrefresh_token
ortoken
.API name:
username
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<InvalidateTokenRequest.Builder>
-
build
Builds aInvalidateTokenRequest
.- Specified by:
build
in interfaceObjectBuilder<InvalidateTokenRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-