Class PutRoleRequest
java.lang.Object
org.elasticsearch.client.security.PutRoleRequest
- All Implemented Interfaces:
Validatable,ToXContent,ToXContentObject
public final class PutRoleRequest extends java.lang.Object implements Validatable, ToXContentObject
Request object to create or update a role.
-
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 PutRoleRequest(Role role, RefreshPolicy refreshPolicy) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)RefreshPolicygetRefreshPolicy()RolegetRole()inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Constructor Details
-
Method Details
-
getRole
-
getRefreshPolicy
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- 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
-