Class PutPrivilegesRequestBuilder

java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<PutPrivilegesRequest,PutPrivilegesResponse>
org.elasticsearch.xpack.core.security.action.privilege.PutPrivilegesRequestBuilder
All Implemented Interfaces:
RequestBuilder<PutPrivilegesRequest,PutPrivilegesResponse>, WriteRequestBuilder<PutPrivilegesRequestBuilder>

public final class PutPrivilegesRequestBuilder extends ActionRequestBuilder<PutPrivilegesRequest,PutPrivilegesResponse> implements WriteRequestBuilder<PutPrivilegesRequestBuilder>
Request builder for PutPrivilegesRequest
  • Constructor Details

  • Method Details

    • source

      public PutPrivilegesRequestBuilder source(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) throws IOException
      Populate the put privileges request using the given source, application name and privilege name The source must contain a top-level object, keyed by application name. The value for each application-name, is an object keyed by privilege name. The value for each privilege-name is a privilege object which much match the application and privilege names in which it is nested.
      Throws:
      IOException