通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RecommendedActionErrorInfo Class

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

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 RecommendedActionErrorInfo class.

Method Summary

Modifier and Type Method and Description
String errorCode()

Get the errorCode property: Gets the reason why the recommended action was put to error state.

static RecommendedActionErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of RecommendedActionErrorInfo from the JsonReader.

IsRetryable isRetryable()

Get the isRetryable property: Gets whether the error could be ignored and recommended action could be retried.

JsonWriter 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:

the errorCode value.

fromJson

public static RecommendedActionErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of RecommendedActionErrorInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RecommendedActionErrorInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RecommendedActionErrorInfo.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to