CloudErrorBody Class

  • java.lang.Object
    • com.microsoft.azure.management.storagecache.v2020_03_01.CloudErrorBody

public class CloudErrorBody

An error response.

Constructor Summary

Constructor Description
CloudErrorBody()

Method Summary

Modifier and Type Method and Description
java.lang.String code()

Get an identifier for the error.

java.util.List<CloudErrorBody> details()

Get a list of additional details about the error.

java.lang.String message()

Get a message describing the error, intended to be suitable for display in a user interface.

java.lang.String target()

Get the target of the particular error.

CloudErrorBody withCode(String code)

Set an identifier for the error.

CloudErrorBody withDetails(List<CloudErrorBody> details)

Set a list of additional details about the error.

CloudErrorBody withMessage(String message)

Set a message describing the error, intended to be suitable for display in a user interface.

CloudErrorBody withTarget(String target)

Set the target of the particular error.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

CloudErrorBody

public CloudErrorBody()

Method Details

code

public String code()

Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Returns:

the code value

details

public List details()

Get a list of additional details about the error.

Returns:

the details value

message

public String message()

Get a message describing the error, intended to be suitable for display in a user interface.

Returns:

the message value

target

public String target()

Get the target of the particular error. For example, the name of the property in error.

Returns:

the target value

withCode

public CloudErrorBody withCode(String code)

Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Parameters:

code - the code value to set

Returns:

the CloudErrorBody object itself.

withDetails

public CloudErrorBody withDetails(List details)

Set a list of additional details about the error.

Parameters:

details - the details value to set

Returns:

the CloudErrorBody object itself.

withMessage

public CloudErrorBody withMessage(String message)

Set a message describing the error, intended to be suitable for display in a user interface.

Parameters:

message - the message value to set

Returns:

the CloudErrorBody object itself.

withTarget

public CloudErrorBody withTarget(String target)

Set the target of the particular error. For example, the name of the property in error.

Parameters:

target - the target value to set

Returns:

the CloudErrorBody object itself.

Applies to

Azure SDK for Java

Latest