Class PutPrivilegesRequest
java.lang.Object
org.elasticsearch.client.security.PutPrivilegesRequest
- All Implemented Interfaces:
Validatable
,ToXContent
,ToXContentObject
public final class PutPrivilegesRequest extends java.lang.Object implements Validatable, ToXContentObject
Request object for creating/updating application privileges.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PutPrivilegesRequest(java.util.List<ApplicationPrivilege> privileges, RefreshPolicy refreshPolicy)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.util.List<ApplicationPrivilege>>
getPrivileges()
RefreshPolicy
getRefreshPolicy()
int
hashCode()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Constructor Details
-
PutPrivilegesRequest
public PutPrivilegesRequest(java.util.List<ApplicationPrivilege> privileges, @Nullable RefreshPolicy refreshPolicy)
-
-
Method Details
-
getPrivileges
- Returns:
- a map of application name to list of
ApplicationPrivilege
s
-
getRefreshPolicy
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-