Class RecommendedActionErrorInfo
java.lang.Object
com.azure.resourcemanager.sql.models.RecommendedActionErrorInfo
Contains error information for an Azure SQL Database, Server or Elastic Pool Recommended Action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RecommendedActionErrorInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the errorCode property: Gets the reason why the recommended action was put to error state.Get the isRetryable property: Gets whether the error could be ignored and recommended action could be retried.voidvalidate()Validates the instance.
-
Constructor Details
-
RecommendedActionErrorInfo
public RecommendedActionErrorInfo()Creates an instance of RecommendedActionErrorInfo class.
-
-
Method Details
-
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
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.
-