Class PostFeatureUpgradeResponse

java.lang.Object
org.elasticsearch.client.migration.PostFeatureUpgradeResponse

public class PostFeatureUpgradeResponse extends Object
Response to a request to begin a feature update
  • Constructor Details

    • PostFeatureUpgradeResponse

      public PostFeatureUpgradeResponse(boolean accepted, List<PostFeatureUpgradeResponse.Feature> features, @Nullable String reason, @Nullable org.elasticsearch.ElasticsearchException elasticsearchException)
      Parameters:
      accepted - Whether the request to begin an upgrade was accepted by the server
      features - List of features that will be upgraded, empty for rejected requests
      reason - If the request was rejected, an explanation of why it was rejected, null otherwise.
      elasticsearchException - If a request was request because of an exception, the exception. Null otherwise.
  • Method Details

    • parse

      public static PostFeatureUpgradeResponse parse(org.elasticsearch.xcontent.XContentParser parser)
    • isAccepted

      public boolean isAccepted()
    • getFeatures

    • getReason

      @Nullable public String getReason()
    • getElasticsearchException

      @Nullable public org.elasticsearch.ElasticsearchException getElasticsearchException()
    • equals

      public boolean equals(Object o)
      We disregard exceptions when determining response equality
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      We disregard exceptions when calculating hash code
      Overrides:
      hashCode in class Object