Class ClusterUpgradeHistoryProperties

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeHistoryProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
Direct Known Subclasses:
ClusterAksPatchUpgradeHistoryProperties, ClusterInPlaceUpgradeHistoryProperties

public class ClusterUpgradeHistoryProperties extends Object implements com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
Properties of cluster upgrade history.
  • Constructor Details

    • ClusterUpgradeHistoryProperties

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

    • upgradeType

      public ClusterUpgradeHistoryType upgradeType()
      Get the upgradeType property: Type of upgrade.
      Returns:
      the upgradeType value.
    • utcTime

      public String utcTime()
      Get the utcTime property: Time when created this upgrade history.
      Returns:
      the utcTime value.
    • withUtcTime

      public ClusterUpgradeHistoryProperties withUtcTime(String utcTime)
      Set the utcTime property: Time when created this upgrade history.
      Parameters:
      utcTime - the utcTime value to set.
      Returns:
      the ClusterUpgradeHistoryProperties object itself.
    • upgradeResult

      Get the upgradeResult property: Result of this upgrade.
      Returns:
      the upgradeResult value.
    • withUpgradeResult

      Set the upgradeResult property: Result of this upgrade.
      Parameters:
      upgradeResult - the upgradeResult value to set.
      Returns:
      the ClusterUpgradeHistoryProperties 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<ClusterUpgradeHistoryProperties>
      Throws:
      IOException
    • fromJson

      public static ClusterUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterUpgradeHistoryProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterUpgradeHistoryProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ClusterUpgradeHistoryProperties.