Class PutPrivilegesRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.PutPrivilegesRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<PutPrivilegesRequest>
- Enclosing class:
- PutPrivilegesRequest
public static class PutPrivilegesRequest.Builder extends java.lang.Object implements ObjectBuilder<PutPrivilegesRequest>
Builder for
PutPrivilegesRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PutPrivilegesRequestbuild()Builds aPutPrivilegesRequest.PutPrivilegesRequest.Builderprivileges(java.util.Map<java.lang.String,java.util.Map<java.lang.String,Actions>> value)Required - Request body.PutPrivilegesRequest.BuilderputPrivileges(java.lang.String key, java.util.Map<java.lang.String,Actions> value)Add a key/value toprivileges(Map), creating the map if needed.PutPrivilegesRequest.Builderrefresh(jakarta.json.JsonValue value)Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.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
-
refresh
Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
privileges
public PutPrivilegesRequest.Builder privileges(java.util.Map<java.lang.String,java.util.Map<java.lang.String,Actions>> value)Required - Request body.API name:
_value_body -
putPrivileges
public PutPrivilegesRequest.Builder putPrivileges(java.lang.String key, java.util.Map<java.lang.String,Actions> value)Add a key/value toprivileges(Map), creating the map if needed. -
build
Builds aPutPrivilegesRequest.- Specified by:
buildin interfaceObjectBuilder<PutPrivilegesRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-