ErrorDetail Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedvmware.models.ErrorDetail

public final class ErrorDetail

Error details.

Constructor Summary

Constructor Description
ErrorDetail()

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The error's code.

List<ErrorDetail> details()

Get the details property: Additional error details.

String message()

Get the message property: A human readable error message.

String target()

Get the target property: Indicates which property in the request is responsible for the error.

void validate()

Validates the instance.

ErrorDetail withCode(String code)

Set the code property: The error's code.

ErrorDetail withDetails(List<ErrorDetail> details)

Set the details property: Additional error details.

ErrorDetail withMessage(String message)

Set the message property: A human readable error message.

ErrorDetail withTarget(String target)

Set the target property: Indicates which property in the request is responsible for the error.

Methods inherited from java.lang.Object

Constructor Details

ErrorDetail

public ErrorDetail()

Method Details

code

public String code()

Get the code property: The error's code.

Returns:

the code value.

details

public List<ErrorDetail> details()

Get the details property: Additional error details.

Returns:

the details value.

message

public String message()

Get the message property: A human readable error message.

Returns:

the message value.

target

public String target()

Get the target property: Indicates which property in the request is responsible for the error.

Returns:

the target value.

validate

public void validate()

Validates the instance.

withCode

public ErrorDetail withCode(String code)

Set the code property: The error's code.

Parameters:

code - the code value to set.

Returns:

the ErrorDetail object itself.

withDetails

public ErrorDetail withDetails(List<ErrorDetail> details)

Set the details property: Additional error details.

Parameters:

details - the details value to set.

Returns:

the ErrorDetail object itself.

withMessage

public ErrorDetail withMessage(String message)

Set the message property: A human readable error message.

Parameters:

message - the message value to set.

Returns:

the ErrorDetail object itself.

withTarget

public ErrorDetail withTarget(String target)

Set the target property: 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