Class ClusterInPlaceUpgradeHistoryProperties

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

public class ClusterInPlaceUpgradeHistoryProperties extends ClusterUpgradeHistoryProperties
Cluster in-place upgrade history properties.
  • Constructor Details

    • ClusterInPlaceUpgradeHistoryProperties

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

    • upgradeType

      public ClusterUpgradeHistoryType upgradeType()
      Get the upgradeType property: Type of upgrade.
      Overrides:
      upgradeType in class ClusterUpgradeHistoryProperties
      Returns:
      the upgradeType value.
    • sourceClusterVersion

      public String sourceClusterVersion()
      Get the sourceClusterVersion property: Version with three part.
      Returns:
      the sourceClusterVersion value.
    • withSourceClusterVersion

      public ClusterInPlaceUpgradeHistoryProperties withSourceClusterVersion(String sourceClusterVersion)
      Set the sourceClusterVersion property: Version with three part.
      Parameters:
      sourceClusterVersion - the sourceClusterVersion value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • sourceOssVersion

      public String sourceOssVersion()
      Get the sourceOssVersion property: Version with three part.
      Returns:
      the sourceOssVersion value.
    • withSourceOssVersion

      public ClusterInPlaceUpgradeHistoryProperties withSourceOssVersion(String sourceOssVersion)
      Set the sourceOssVersion property: Version with three part.
      Parameters:
      sourceOssVersion - the sourceOssVersion value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • sourceBuildNumber

      public String sourceBuildNumber()
      Get the sourceBuildNumber property: Source build number.
      Returns:
      the sourceBuildNumber value.
    • withSourceBuildNumber

      public ClusterInPlaceUpgradeHistoryProperties withSourceBuildNumber(String sourceBuildNumber)
      Set the sourceBuildNumber property: Source build number.
      Parameters:
      sourceBuildNumber - the sourceBuildNumber value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • targetClusterVersion

      public String targetClusterVersion()
      Get the targetClusterVersion property: Version with three part.
      Returns:
      the targetClusterVersion value.
    • withTargetClusterVersion

      public ClusterInPlaceUpgradeHistoryProperties withTargetClusterVersion(String targetClusterVersion)
      Set the targetClusterVersion property: Version with three part.
      Parameters:
      targetClusterVersion - the targetClusterVersion value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • targetOssVersion

      public String targetOssVersion()
      Get the targetOssVersion property: Version with three part.
      Returns:
      the targetOssVersion value.
    • withTargetOssVersion

      public ClusterInPlaceUpgradeHistoryProperties withTargetOssVersion(String targetOssVersion)
      Set the targetOssVersion property: Version with three part.
      Parameters:
      targetOssVersion - the targetOssVersion value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • targetBuildNumber

      public String targetBuildNumber()
      Get the targetBuildNumber property: Target build number.
      Returns:
      the targetBuildNumber value.
    • withTargetBuildNumber

      public ClusterInPlaceUpgradeHistoryProperties withTargetBuildNumber(String targetBuildNumber)
      Set the targetBuildNumber property: Target build number.
      Parameters:
      targetBuildNumber - the targetBuildNumber value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • componentName

      public String componentName()
      Get the componentName property: Component name to upgrade.
      Returns:
      the componentName value.
    • withComponentName

      public ClusterInPlaceUpgradeHistoryProperties withComponentName(String componentName)
      Set the componentName property: Component name to upgrade.
      Parameters:
      componentName - the componentName value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • severity

      Get the severity property: Severity of this upgrade.
      Returns:
      the severity value.
    • withSeverity

      Set the severity property: Severity of this upgrade.
      Parameters:
      severity - the severity value to set.
      Returns:
      the ClusterInPlaceUpgradeHistoryProperties object itself.
    • withUtcTime

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

      Set the upgradeResult property: Result of this upgrade.
      Overrides:
      withUpgradeResult in class ClusterUpgradeHistoryProperties
      Parameters:
      upgradeResult - the upgradeResult value to set.
      Returns:
      the ClusterUpgradeHistoryProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ClusterUpgradeHistoryProperties
      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>
      Overrides:
      toJson in class ClusterUpgradeHistoryProperties
      Throws:
      IOException
    • fromJson

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