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 booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.util.List<ApplicationPrivilege>>getPrivileges()RefreshPolicygetRefreshPolicy()inthashCode()XContentBuildertoXContent(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
ApplicationPrivileges
-
getRefreshPolicy
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-