Class ClusterAvailableInPlaceUpgradeProperties

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradeProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableInPlaceUpgradeProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterAvailableUpgradeProperties>
Direct Known Subclasses:
ClusterAvailableUpgradeHotfixUpgradeProperties, ClusterAvailableUpgradePatchVersionUpgradeProperties

public class ClusterAvailableInPlaceUpgradeProperties extends ClusterAvailableUpgradeProperties
Cluster available in-place upgrade.
  • Constructor Details

    • ClusterAvailableInPlaceUpgradeProperties

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

    • upgradeType

      public ClusterAvailableUpgradeType upgradeType()
      Get the upgradeType property: Type of upgrade.
      Overrides:
      upgradeType in class ClusterAvailableUpgradeProperties
      Returns:
      the upgradeType value.
    • description

      public String description()
      Get the description property: Hotfix version upgrade description.
      Returns:
      the description value.
    • withDescription

      public ClusterAvailableInPlaceUpgradeProperties withDescription(String description)
      Set the description property: Hotfix version upgrade description.
      Parameters:
      description - the description value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • sourceOssVersion

      public String sourceOssVersion()
      Get the sourceOssVersion property: Source OSS version of current cluster component.
      Returns:
      the sourceOssVersion value.
    • withSourceOssVersion

      public ClusterAvailableInPlaceUpgradeProperties withSourceOssVersion(String sourceOssVersion)
      Set the sourceOssVersion property: Source OSS version of current cluster component.
      Parameters:
      sourceOssVersion - the sourceOssVersion value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • sourceClusterVersion

      public String sourceClusterVersion()
      Get the sourceClusterVersion property: Source cluster version of current cluster component.
      Returns:
      the sourceClusterVersion value.
    • withSourceClusterVersion

      public ClusterAvailableInPlaceUpgradeProperties withSourceClusterVersion(String sourceClusterVersion)
      Set the sourceClusterVersion property: Source cluster version of current cluster component.
      Parameters:
      sourceClusterVersion - the sourceClusterVersion value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • sourceBuildNumber

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

      public ClusterAvailableInPlaceUpgradeProperties withSourceBuildNumber(String sourceBuildNumber)
      Set the sourceBuildNumber property: Source build number of current cluster component.
      Parameters:
      sourceBuildNumber - the sourceBuildNumber value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • targetOssVersion

      public String targetOssVersion()
      Get the targetOssVersion property: Target OSS version of component to be upgraded.
      Returns:
      the targetOssVersion value.
    • withTargetOssVersion

      public ClusterAvailableInPlaceUpgradeProperties withTargetOssVersion(String targetOssVersion)
      Set the targetOssVersion property: Target OSS version of component to be upgraded.
      Parameters:
      targetOssVersion - the targetOssVersion value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • targetClusterVersion

      public String targetClusterVersion()
      Get the targetClusterVersion property: Target cluster version of component to be upgraded.
      Returns:
      the targetClusterVersion value.
    • withTargetClusterVersion

      public ClusterAvailableInPlaceUpgradeProperties withTargetClusterVersion(String targetClusterVersion)
      Set the targetClusterVersion property: Target cluster version of component to be upgraded.
      Parameters:
      targetClusterVersion - the targetClusterVersion value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • targetBuildNumber

      public String targetBuildNumber()
      Get the targetBuildNumber property: Target build number of component to be upgraded.
      Returns:
      the targetBuildNumber value.
    • withTargetBuildNumber

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

      public String componentName()
      Get the componentName property: Name of component to be upgraded.
      Returns:
      the componentName value.
    • withComponentName

      public ClusterAvailableInPlaceUpgradeProperties withComponentName(String componentName)
      Set the componentName property: Name of component to be upgraded.
      Parameters:
      componentName - the componentName value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • severity

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

      public ClusterAvailableInPlaceUpgradeProperties withSeverity(Severity severity)
      Set the severity property: Severity of this upgrade.
      Parameters:
      severity - the severity value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • extendedProperties

      public String extendedProperties()
      Get the extendedProperties property: Extended properties of current available upgrade version.
      Returns:
      the extendedProperties value.
    • withExtendedProperties

      public ClusterAvailableInPlaceUpgradeProperties withExtendedProperties(String extendedProperties)
      Set the extendedProperties property: Extended properties of current available upgrade version.
      Parameters:
      extendedProperties - the extendedProperties value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • createdTime

      public OffsetDateTime createdTime()
      Get the createdTime property: Created time of current available upgrade version.
      Returns:
      the createdTime value.
    • withCreatedTime

      public ClusterAvailableInPlaceUpgradeProperties withCreatedTime(OffsetDateTime createdTime)
      Set the createdTime property: Created time of current available upgrade version.
      Parameters:
      createdTime - the createdTime value to set.
      Returns:
      the ClusterAvailableInPlaceUpgradeProperties object itself.
    • validate

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

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