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>
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    PutPrivilegesRequest build()
    PutPrivilegesRequest.Builder privileges​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Actions>> value)
    Required - Request body.
    PutPrivilegesRequest.Builder putPrivileges​(java.lang.String key, java.util.Map<java.lang.String,​Actions> value)
    Add a key/value to privileges(Map), creating the map if needed.
    PutPrivilegesRequest.Builder refresh​(jakarta.json.JsonValue value)
    If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then 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

      public PutPrivilegesRequest.Builder refresh​(@Nullable jakarta.json.JsonValue value)
      If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then 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 to privileges(Map), creating the map if needed.
    • build

      public PutPrivilegesRequest build()
      Specified by:
      build in interface ObjectBuilder<PutPrivilegesRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.