Class PutRoleResponse
- java.lang.Object
-
- org.elasticsearch.client.security.PutRoleResponse
-
public final class PutRoleResponse extends java.lang.ObjectResponse when adding a role to the native roles store. Returns a single boolean field for whether the role was created (true) or updated (false).
-
-
Constructor Summary
Constructors Constructor Description PutRoleResponse(boolean created)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static PutRoleResponsefromXContent(XContentParser parser)inthashCode()booleanisCreated()
-
-
-
Method Detail
-
isCreated
public boolean isCreated()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
fromXContent
public static PutRoleResponse fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-