OperationError Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.OperationError

public final class OperationError

Error details for the operation in case of a failure.

Constructor Summary

Constructor Description
OperationError()

Creates an instance of OperationError class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The error code of the operation error.

String message()

Get the message property: The error message of the operation error.

void validate()

Validates the instance.

OperationError withCode(String code)

Set the code property: The error code of the operation error.

OperationError withMessage(String message)

Set the message property: The error message of the operation error.

Methods inherited from java.lang.Object

Constructor Details

OperationError

public OperationError()

Creates an instance of OperationError class.

Method Details

code

public String code()

Get the code property: The error code of the operation error.

Returns:

the code value.

message

public String message()

Get the message property: The error message of the operation error.

Returns:

the message value.

validate

public void validate()

Validates the instance.

withCode

public OperationError withCode(String code)

Set the code property: The error code of the operation error.

Parameters:

code - the code value to set.

Returns:

the OperationError object itself.

withMessage

public OperationError withMessage(String message)

Set the message property: The error message of the operation error.

Parameters:

message - the message value to set.

Returns:

the OperationError object itself.

Applies to