Class DeletePrivilegesRequest
java.lang.Object
org.elasticsearch.client.security.DeletePrivilegesRequest
- All Implemented Interfaces:
Validatable
public final class DeletePrivilegesRequest extends java.lang.Object implements Validatable
A request to delete application privileges
-
Field Summary
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY -
Constructor Summary
Constructors Constructor Description DeletePrivilegesRequest(java.lang.String application, java.lang.String... privileges)Creates a newDeletePrivilegesRequestusing the defaultRefreshPolicy.getDefault()refresh policy.DeletePrivilegesRequest(java.lang.String application, java.lang.String[] privileges, RefreshPolicy refreshPolicy)Creates a newDeletePrivilegesRequest. -
Method Summary
Modifier and Type Method Description java.lang.StringgetApplication()java.lang.String[]getPrivileges()RefreshPolicygetRefreshPolicy()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.client.Validatable
validate
-
Constructor Details
-
DeletePrivilegesRequest
public DeletePrivilegesRequest(java.lang.String application, java.lang.String... privileges)Creates a newDeletePrivilegesRequestusing the defaultRefreshPolicy.getDefault()refresh policy.- Parameters:
application- the name of the application for which the privileges will be deletedprivileges- the privileges to delete
-
DeletePrivilegesRequest
public DeletePrivilegesRequest(java.lang.String application, java.lang.String[] privileges, @Nullable RefreshPolicy refreshPolicy)Creates a newDeletePrivilegesRequest.- Parameters:
application- the name of the application for which the privileges will be deletedprivileges- the privileges to deleterefreshPolicy- the refresh policyRefreshPolicyfor the request, defaults toRefreshPolicy.getDefault()
-
-
Method Details
-
getApplication
public java.lang.String getApplication() -
getPrivileges
public java.lang.String[] getPrivileges() -
getRefreshPolicy
-