Class DeletePrivilegesRequest

java.lang.Object
org.elasticsearch.client.security.DeletePrivilegesRequest
All Implemented Interfaces:
Validatable

public final class DeletePrivilegesRequest extends Object implements Validatable
A request to delete application privileges
  • Constructor Details

    • DeletePrivilegesRequest

      public DeletePrivilegesRequest(String application, String... privileges)
      Creates a new DeletePrivilegesRequest using the default RefreshPolicy.getDefault() refresh policy.
      Parameters:
      application - the name of the application for which the privileges will be deleted
      privileges - the privileges to delete
    • DeletePrivilegesRequest

      public DeletePrivilegesRequest(String application, String[] privileges, @Nullable RefreshPolicy refreshPolicy)
      Parameters:
      application - the name of the application for which the privileges will be deleted
      privileges - the privileges to delete
      refreshPolicy - the refresh policy RefreshPolicy for the request, defaults to RefreshPolicy.getDefault()
  • Method Details

    • getApplication

      public String getApplication()
    • getPrivileges

      public String[] getPrivileges()
    • getRefreshPolicy

      public RefreshPolicy getRefreshPolicy()