Class ExtendedStatusInfo
java.lang.Object
com.azure.resourcemanager.reservations.models.ExtendedStatusInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExtendedStatusInfo>
public final class ExtendedStatusInfo
extends Object
implements com.azure.json.JsonSerializable<ExtendedStatusInfo>
The ExtendedStatusInfo model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedStatusInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ExtendedStatusInfo from the JsonReader.message()
Get the message property: The message giving detailed information about the status code.Get the statusCode property: The statusCode property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMessage
(String message) Set the message property: The message giving detailed information about the status code.withStatusCode
(ReservationStatusCode statusCode) Set the statusCode property: The statusCode property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExtendedStatusInfo
public ExtendedStatusInfo()Creates an instance of ExtendedStatusInfo class.
-
-
Method Details
-
statusCode
Get the statusCode property: The statusCode property.- Returns:
- the statusCode value.
-
withStatusCode
Set the statusCode property: The statusCode property.- Parameters:
statusCode
- the statusCode value to set.- Returns:
- the ExtendedStatusInfo object itself.
-
message
Get the message property: The message giving detailed information about the status code.- Returns:
- the message value.
-
withMessage
Set the message property: The message giving detailed information about the status code.- Parameters:
message
- the message value to set.- Returns:
- the ExtendedStatusInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ExtendedStatusInfo>
- Throws:
IOException
-
fromJson
Reads an instance of ExtendedStatusInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ExtendedStatusInfo 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 ExtendedStatusInfo.
-