ErrorDetail Class

  • java.lang.Object
    • com.microsoft.azure.management.hybridcompute.v2020_08_02.ErrorDetail

public class ErrorDetail

Error details.

Constructor Summary

Constructor Description
ErrorDetail()

Method Summary

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

Get the error's code.

java.util.List<ErrorDetail> details()

Get additional error details.

java.lang.String message()

Get a human readable error message.

java.lang.String target()

Get indicates which property in the request is responsible for the error.

ErrorDetail withCode(String code)

Set the error's code.

ErrorDetail withDetails(List<ErrorDetail> details)

Set additional error details.

ErrorDetail withMessage(String message)

Set a human readable error message.

ErrorDetail withTarget(String target)

Set indicates which property in the request is responsible for the 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

ErrorDetail

public ErrorDetail()

Method Details

code

public String code()

Get the error's code.

Returns:

the code value

details

public List details()

Get additional error details.

Returns:

the details value

message

public String message()

Get a human readable error message.

Returns:

the message value

target

public String target()

Get indicates which property in the request is responsible for the error.

Returns:

the target value

withCode

public ErrorDetail withCode(String code)

Set the error's code.

Parameters:

code - the code value to set

Returns:

the ErrorDetail object itself.

withDetails

public ErrorDetail withDetails(List details)

Set additional error details.

Parameters:

details - the details value to set

Returns:

the ErrorDetail object itself.

withMessage

public ErrorDetail withMessage(String message)

Set a human readable error message.

Parameters:

message - the message value to set

Returns:

the ErrorDetail object itself.

withTarget

public ErrorDetail withTarget(String target)

Set indicates which property in the request is responsible for the error.

Parameters:

target - the target value to set

Returns:

the ErrorDetail object itself.

Applies to