Class ResetFeaturesResponse.ResetFeatureStateStatus

java.lang.Object
org.elasticsearch.client.feature.ResetFeaturesResponse.ResetFeatureStateStatus
Enclosing class:
ResetFeaturesResponse

public static class ResetFeaturesResponse.ResetFeatureStateStatus extends Object
A class representing the status of an attempt to reset a feature's state. The attempt to reset either succeeds and we return the name of the feature and a success flag; or it fails and we return the name of the feature, a status flag, and the exception thrown during the attempt to reset the feature.
  • Method Details

    • parse

      public static ResetFeaturesResponse.ResetFeatureStateStatus parse(org.elasticsearch.xcontent.XContentParser parser, Void ctx)
    • getFeatureName

      public String getFeatureName()
      Returns:
      Name of the feature that we tried to reset
    • getStatus

      public String getStatus()
      Returns:
      "SUCCESS" if the reset attempt succeeded, "FAILURE" otherwise.
    • getException

      @Nullable public Exception getException()
      Returns:
      The exception that caused the reset attempt to fail.