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.

String message()

Get the message property: The error message.

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.

message

public String message()

Get the message property: The error message.

Returns:

the message value.

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