AzureResourceErrorInfo Class

public final class AzureResourceErrorInfo
extends ErrorInfo

The azure resource error info.

Constructor Summary

Constructor Description
AzureResourceErrorInfo()

Creates an instance of AzureResourceErrorInfo class.

Method Summary

Modifier and Type Method and Description
List<AzureResourceErrorInfo> details()

Get the details property: The error details.

static AzureResourceErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceErrorInfo from the JsonReader.

String message()

Get the message property: The error message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureResourceErrorInfo withCode(String code)

Set the code property: The error code.

AzureResourceErrorInfo withDetails(List<AzureResourceErrorInfo> details)

Set the details property: The error details.

AzureResourceErrorInfo withMessage(String message)

Set the message property: The error message.

Methods inherited from ErrorInfo

Methods inherited from java.lang.Object

Constructor Details

AzureResourceErrorInfo

public AzureResourceErrorInfo()

Creates an instance of AzureResourceErrorInfo class.

Method Details

details

public List details()

Get the details property: The error details.

Returns:

the details value.

fromJson

public static AzureResourceErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceErrorInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

message

public String message()

Get the message property: The error message.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzureResourceErrorInfo.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AzureResourceErrorInfo.validate()

withCode

public AzureResourceErrorInfo withCode(String code)

Set the code property: The error code.

Overrides:

AzureResourceErrorInfo.withCode(String code)

Parameters:

code

withDetails

public AzureResourceErrorInfo withDetails(List details)

Set the details property: The error details.

Parameters:

details - the details value to set.

Returns:

the AzureResourceErrorInfo object itself.

withMessage

public AzureResourceErrorInfo withMessage(String message)

Set the message property: The error message.

Parameters:

message - the message value to set.

Returns:

the AzureResourceErrorInfo object itself.

Applies to