Class ExtensionsResourceStatus

java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ExtensionsResourceStatus
All Implemented Interfaces:
com.azure.json.JsonSerializable<ExtensionsResourceStatus>

public final class ExtensionsResourceStatus extends Object implements com.azure.json.JsonSerializable<ExtensionsResourceStatus>
Instance view status.
  • Constructor Details

    • ExtensionsResourceStatus

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

    • code

      public String code()
      Get the code property: The status code.
      Returns:
      the code value.
    • withCode

      public ExtensionsResourceStatus withCode(String code)
      Set the code property: The status code.
      Parameters:
      code - the code value to set.
      Returns:
      the ExtensionsResourceStatus object itself.
    • level

      Get the level property: The level code.
      Returns:
      the level value.
    • withLevel

      Set the level property: The level code.
      Parameters:
      level - the level value to set.
      Returns:
      the ExtensionsResourceStatus object itself.
    • displayStatus

      public String displayStatus()
      Get the displayStatus property: The short localizable label for the status.
      Returns:
      the displayStatus value.
    • withDisplayStatus

      public ExtensionsResourceStatus withDisplayStatus(String displayStatus)
      Set the displayStatus property: The short localizable label for the status.
      Parameters:
      displayStatus - the displayStatus value to set.
      Returns:
      the ExtensionsResourceStatus object itself.
    • message

      public String message()
      Get the message property: The detailed status message, including for alerts and error messages.
      Returns:
      the message value.
    • withMessage

      public ExtensionsResourceStatus withMessage(String message)
      Set the message property: The detailed status message, including for alerts and error messages.
      Parameters:
      message - the message value to set.
      Returns:
      the ExtensionsResourceStatus object itself.
    • time

      public OffsetDateTime time()
      Get the time property: The time of the status.
      Returns:
      the time value.
    • withTime

      public ExtensionsResourceStatus withTime(OffsetDateTime time)
      Set the time property: The time of the status.
      Parameters:
      time - the time value to set.
      Returns:
      the ExtensionsResourceStatus 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<ExtensionsResourceStatus>
      Throws:
      IOException
    • fromJson

      public static ExtensionsResourceStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ExtensionsResourceStatus from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ExtensionsResourceStatus 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 ExtensionsResourceStatus.