Class BulkRolesResponse.Item

java.lang.Object
org.elasticsearch.xpack.core.security.action.role.BulkRolesResponse.Item
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Enclosing class:
BulkRolesResponse

public static class BulkRolesResponse.Item extends Object implements org.elasticsearch.xcontent.ToXContentObject
  • Method Details

    • getCause

      public Exception getCause()
    • getResultType

      public String getResultType()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • success

      public static BulkRolesResponse.Item success(String roleName, DocWriteResponse.Result result)
    • failure

      public static BulkRolesResponse.Item failure(String roleName, Exception cause)
    • getRoleName

      public String getRoleName()
    • isFailed

      public boolean isFailed()
    • getFailureMessage

      public String getFailureMessage()