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 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()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
-
-
-
Constructor Detail
-
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 Detail
-
getApplication
public java.lang.String getApplication()
-
getPrivileges
public java.lang.String[] getPrivileges()
-
getRefreshPolicy
public RefreshPolicy getRefreshPolicy()
-
-