OperationError Class

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

Implements

public final class OperationError
implements JsonSerializable<OperationError>

Operation error model.

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: Error's code.

static OperationError fromJson(JsonReader jsonReader)

Reads an instance of OperationError from the JsonReader.

String message()

Get the message property: Error's message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationError withCode(String code)

Set the code property: Error's code.

OperationError withMessage(String message)

Set the message property: Error's message.

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: Error's code.

Returns:

the code value.

fromJson

public static OperationError fromJson(JsonReader jsonReader)

Reads an instance of OperationError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the OperationError.

message

public String message()

Get the message property: Error's message.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public OperationError withCode(String code)

Set the code property: Error's code.

Parameters:

code - the code value to set.

Returns:

the OperationError object itself.

withMessage

public OperationError withMessage(String message)

Set the message property: Error's message.

Parameters:

message - the message value to set.

Returns:

the OperationError object itself.

Applies to