Class PutRoleResponse

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

public final class PutRoleResponse
extends java.lang.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 Summary

    Constructors 
    Constructor Description
    PutRoleResponse​(boolean created)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    static PutRoleResponse fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    int hashCode()  
    boolean isCreated()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • isCreated

      public boolean isCreated()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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

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