Class StorageAccountSkuConversionStatus

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

public final class StorageAccountSkuConversionStatus extends Object implements com.azure.json.JsonSerializable<StorageAccountSkuConversionStatus>
This defines the sku conversion status object for asynchronous sku conversions.
  • Constructor Details

    • StorageAccountSkuConversionStatus

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

    • skuConversionStatus

      public SkuConversionStatus skuConversionStatus()
      Get the skuConversionStatus property: This property indicates the current sku conversion status.
      Returns:
      the skuConversionStatus value.
    • targetSkuName

      public SkuName targetSkuName()
      Get the targetSkuName property: This property represents the target sku name to which the account sku is being converted asynchronously.
      Returns:
      the targetSkuName value.
    • withTargetSkuName

      public StorageAccountSkuConversionStatus withTargetSkuName(SkuName targetSkuName)
      Set the targetSkuName property: This property represents the target sku name to which the account sku is being converted asynchronously.
      Parameters:
      targetSkuName - the targetSkuName value to set.
      Returns:
      the StorageAccountSkuConversionStatus object itself.
    • startTime

      public String startTime()
      Get the startTime property: This property represents the sku conversion start time.
      Returns:
      the startTime value.
    • endTime

      public String endTime()
      Get the endTime property: This property represents the sku conversion end time.
      Returns:
      the endTime 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<StorageAccountSkuConversionStatus>
      Throws:
      IOException
    • fromJson

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