Class DeletePrivilegesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeletePrivilegesRequest.Builder>
co.elastic.clients.elasticsearch.security.DeletePrivilegesRequest.Builder
- All Implemented Interfaces:
WithJson<DeletePrivilegesRequest.Builder>
,ObjectBuilder<DeletePrivilegesRequest>
- Enclosing class:
- DeletePrivilegesRequest
public static class DeletePrivilegesRequest.Builder extends RequestBase.AbstractBuilder<DeletePrivilegesRequest.Builder> implements ObjectBuilder<DeletePrivilegesRequest>
Builder for
DeletePrivilegesRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DeletePrivilegesRequest.Builder
application(java.lang.String value)
Required - Application nameDeletePrivilegesRequest
build()
Builds aDeletePrivilegesRequest
.DeletePrivilegesRequest.Builder
name(java.lang.String value, java.lang.String... values)
Required - Privilege nameDeletePrivilegesRequest.Builder
name(java.util.List<java.lang.String> list)
Required - Privilege nameDeletePrivilegesRequest.Builder
refresh(Refresh value)
Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.protected DeletePrivilegesRequest.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
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
-
application
Required - Application nameAPI name:
application
-
name
Required - Privilege nameAPI name:
name
Adds all elements of
list
toname
. -
name
public final DeletePrivilegesRequest.Builder name(java.lang.String value, java.lang.String... values)Required - Privilege nameAPI name:
name
Adds one or more values to
name
. -
refresh
Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.API name:
refresh
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<DeletePrivilegesRequest.Builder>
-
build
Builds aDeletePrivilegesRequest
.- Specified by:
build
in interfaceObjectBuilder<DeletePrivilegesRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-