Class RollingUpgradeProgressInfo

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

public final class RollingUpgradeProgressInfo extends Object implements com.azure.json.JsonSerializable<RollingUpgradeProgressInfo>
Information about the number of virtual machine instances in each upgrade state.
  • Constructor Details

    • RollingUpgradeProgressInfo

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

    • successfulInstanceCount

      public Integer successfulInstanceCount()
      Get the successfulInstanceCount property: The number of instances that have been successfully upgraded.
      Returns:
      the successfulInstanceCount value.
    • failedInstanceCount

      public Integer failedInstanceCount()
      Get the failedInstanceCount property: The number of instances that have failed to be upgraded successfully.
      Returns:
      the failedInstanceCount value.
    • inProgressInstanceCount

      public Integer inProgressInstanceCount()
      Get the inProgressInstanceCount property: The number of instances that are currently being upgraded.
      Returns:
      the inProgressInstanceCount value.
    • pendingInstanceCount

      public Integer pendingInstanceCount()
      Get the pendingInstanceCount property: The number of instances that have not yet begun to be upgraded.
      Returns:
      the pendingInstanceCount 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<RollingUpgradeProgressInfo>
      Throws:
      IOException
    • fromJson

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