OperationError Class
- java.
lang. Object - com.
azure. resourcemanager. vmwarecloudsimple. models. OperationError
- com.
Implements
public final class OperationError
implements JsonSerializable<OperationError>
Operation error model.
Constructor Summary
| Constructor | Description |
|---|---|
| OperationError() |
Creates an instance of Operation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: Error's code. |
|
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
| String |
message()
Get the message property: Error's message. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Operation |
withCode(String code)
Set the code property: Error's code. |
|
Operation |
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:
fromJson
public static OperationError fromJson(JsonReader jsonReader)
Reads an instance of OperationError from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Error's message.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCode
public OperationError withCode(String code)
Set the code property: Error's code.
Parameters:
Returns:
withMessage
public OperationError withMessage(String message)
Set the message property: Error's message.
Parameters:
Returns: