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 Details

    • ExtendedStatusInfo

      public ExtendedStatusInfo()
      Creates an instance of ExtendedStatusInfo class.
  • Method Details

    • statusCode

      public ReservationStatusCode statusCode()
      Get the statusCode property: The statusCode property.
      Returns:
      the statusCode value.
    • withStatusCode

      public ExtendedStatusInfo withStatusCode(ReservationStatusCode statusCode)
      Set the statusCode property: The statusCode property.
      Parameters:
      statusCode - the statusCode value to set.
      Returns:
      the ExtendedStatusInfo object itself.
    • message

      public String message()
      Get the message property: The message giving detailed information about the status code.
      Returns:
      the message value.
    • withMessage

      public ExtendedStatusInfo withMessage(String message)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ExtendedStatusInfo>
      Throws:
      IOException
    • fromJson

      public static ExtendedStatusInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.