Class RollingUpgradeStatusInfoProperties

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

public final class RollingUpgradeStatusInfoProperties extends Object implements com.azure.json.JsonSerializable<RollingUpgradeStatusInfoProperties>
The status of the latest virtual machine scale set rolling upgrade.
  • Constructor Details

    • RollingUpgradeStatusInfoProperties

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

    • policy

      public RollingUpgradePolicy policy()
      Get the policy property: The rolling upgrade policies applied for this upgrade.
      Returns:
      the policy value.
    • runningStatus

      public RollingUpgradeRunningStatus runningStatus()
      Get the runningStatus property: Information about the current running state of the overall upgrade.
      Returns:
      the runningStatus value.
    • progress

      public RollingUpgradeProgressInfo progress()
      Get the progress property: Information about the number of virtual machine instances in each upgrade state.
      Returns:
      the progress value.
    • error

      public ApiError error()
      Get the error property: Error details for this upgrade, if there are any.
      Returns:
      the error 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<RollingUpgradeStatusInfoProperties>
      Throws:
      IOException
    • fromJson

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