Class RecommendedActionErrorInfo

java.lang.Object
com.azure.resourcemanager.sql.models.RecommendedActionErrorInfo

public final class RecommendedActionErrorInfo extends Object
Contains error information for an Azure SQL Database, Server or Elastic Pool Recommended Action.
  • Constructor Details

    • RecommendedActionErrorInfo

      public RecommendedActionErrorInfo()
      Creates an instance of RecommendedActionErrorInfo class.
  • Method Details

    • errorCode

      public String errorCode()
      Get the errorCode property: Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists.
      Returns:
      the errorCode value.
    • isRetryable

      public IsRetryable isRetryable()
      Get the isRetryable property: Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No.
      Returns:
      the isRetryable value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.