RecommendedActionErrorInfo Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. RecommendedActionErrorInfo
- com.
Implements
public final class RecommendedActionErrorInfo
implements JsonSerializable<RecommendedActionErrorInfo>
Contains error information for an Azure SQL Database, Server or Elastic Pool Recommended Action.
Constructor Summary
Constructor | Description |
---|---|
RecommendedActionErrorInfo() |
Creates an instance of Recommended |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
errorCode()
Get the error |
static
Recommended |
fromJson(JsonReader jsonReader)
Reads an instance of Recommended |
Is |
isRetryable()
Get the is |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
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:
fromJson
public static RecommendedActionErrorInfo fromJson(JsonReader jsonReader)
Reads an instance of RecommendedActionErrorInfo from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java