Class DeleteServiceTokenRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.DeleteServiceTokenRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<DeleteServiceTokenRequest>
- Enclosing class:
- DeleteServiceTokenRequest
public static class DeleteServiceTokenRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<DeleteServiceTokenRequest>
Builder for
DeleteServiceTokenRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DeleteServiceTokenRequest
build()
Builds aDeleteServiceTokenRequest
.DeleteServiceTokenRequest.Builder
name(java.lang.String value)
Required - An identifier for the token nameDeleteServiceTokenRequest.Builder
namespace(java.lang.String value)
Required - An identifier for the namespaceDeleteServiceTokenRequest.Builder
refresh(Refresh value)
Iftrue
then refresh the affected shards to make this operation visible to search, ifwait_for
(the default) then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.DeleteServiceTokenRequest.Builder
service(java.lang.String value)
Required - An identifier for the service nameMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required - An identifier for the token nameAPI name:
name
-
namespace
Required - An identifier for the namespaceAPI name:
namespace
-
refresh
Iftrue
then refresh the affected shards to make this operation visible to search, ifwait_for
(the default) then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.API name:
refresh
-
service
Required - An identifier for the service nameAPI name:
service
-
build
Builds aDeleteServiceTokenRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteServiceTokenRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-