Class PutRoleResponse

java.lang.Object
org.elasticsearch.client.security.PutRoleResponse

public final class PutRoleResponse extends Object
Response 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 Details

    • PutRoleResponse

      public PutRoleResponse(boolean created)
  • Method Details

    • isCreated

      public boolean isCreated()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • fromXContent

      public static PutRoleResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException