OperationStatusError Class
- java.
lang. Object - com.
azure. resourcemanager. baremetalinfrastructure. models. OperationStatusError
- com.
Implements
public final class OperationStatusError
implements JsonSerializable<OperationStatusError>
An error from the Azure Bare Metal Infrastructure service.
Constructor Summary
| Constructor | Description |
|---|---|
| OperationStatusError() |
Creates an instance of Operation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: Server-defined set of error codes. |
|
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
| String |
message()
Get the message property: Human-readable representation of the error. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Operation |
withCode(String code)
Set the code property: Server-defined set of error codes. |
|
Operation |
withMessage(String message)
Set the message property: Human-readable representation of the error. |
Methods inherited from java.lang.Object
Constructor Details
OperationStatusError
public OperationStatusError()
Creates an instance of OperationStatusError class.
Method Details
code
public String code()
Get the code property: Server-defined set of error codes.
Returns:
fromJson
public static OperationStatusError fromJson(JsonReader jsonReader)
Reads an instance of OperationStatusError from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Human-readable representation of the error.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCode
public OperationStatusError withCode(String code)
Set the code property: Server-defined set of error codes.
Parameters:
Returns:
withMessage
public OperationStatusError withMessage(String message)
Set the message property: Human-readable representation of the error.
Parameters:
Returns: