Class PutPrivilegesRequest.Builder

All Implemented Interfaces:
Enclosing class:

public static class PutPrivilegesRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<PutPrivilegesRequest>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • refresh

      public final PutPrivilegesRequest.Builder refresh​(@Nullable Refresh 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 final PutPrivilegesRequest.Builder privileges​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Actions>> map)
      Required - Request body.

      API name: _value_body

      Adds all entries of map to privileges.

    • privileges

      public final PutPrivilegesRequest.Builder privileges​(java.lang.String key, java.util.Map<java.lang.String,​Actions> value)
      Required - Request body.

      API name: _value_body

      Adds an entry to privileges.

    • build

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