Class RollingUpgradeRunningStatus

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

public final class RollingUpgradeRunningStatus extends Object implements com.azure.json.JsonSerializable<RollingUpgradeRunningStatus>
Information about the current running state of the overall upgrade.
  • Constructor Details

    • RollingUpgradeRunningStatus

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

    • code

      public RollingUpgradeStatusCode code()
      Get the code property: Code indicating the current status of the upgrade.
      Returns:
      the code value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Start time of the upgrade.
      Returns:
      the startTime value.
    • lastAction

      public RollingUpgradeActionType lastAction()
      Get the lastAction property: The last action performed on the rolling upgrade.
      Returns:
      the lastAction value.
    • lastActionTime

      public OffsetDateTime lastActionTime()
      Get the lastActionTime property: Last action time of the upgrade.
      Returns:
      the lastActionTime value.
    • 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<RollingUpgradeRunningStatus>
      Throws:
      IOException
    • fromJson

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