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
-
Constructor Summary
Constructors Constructor Description DeletePrivilegesRequest(java.lang.String application, java.lang.String... privileges)
Creates a newDeletePrivilegesRequest
using 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.String
getApplication()
java.lang.String[]
getPrivileges()
RefreshPolicy
getRefreshPolicy()
-
Constructor Details
-
DeletePrivilegesRequest
public DeletePrivilegesRequest(java.lang.String application, java.lang.String... privileges)Creates a newDeletePrivilegesRequest
using 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 policyRefreshPolicy
for the request, defaults toRefreshPolicy.getDefault()
-
-
Method Details
-
getApplication
public java.lang.String getApplication() -
getPrivileges
public java.lang.String[] getPrivileges() -
getRefreshPolicy
-