Class StorageAccountMigrationProperties

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

public final class StorageAccountMigrationProperties extends Object implements com.azure.json.JsonSerializable<StorageAccountMigrationProperties>
The properties of a storage account’s ongoing or enqueued migration.
  • Constructor Details

    • StorageAccountMigrationProperties

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

    • targetSkuName

      public SkuName targetSkuName()
      Get the targetSkuName property: Target sku name for the account.
      Returns:
      the targetSkuName value.
    • withTargetSkuName

      public StorageAccountMigrationProperties withTargetSkuName(SkuName targetSkuName)
      Set the targetSkuName property: Target sku name for the account.
      Parameters:
      targetSkuName - the targetSkuName value to set.
      Returns:
      the StorageAccountMigrationProperties object itself.
    • migrationStatus

      public MigrationStatus migrationStatus()
      Get the migrationStatus property: Current status of migration.
      Returns:
      the migrationStatus value.
    • migrationFailedReason

      public String migrationFailedReason()
      Get the migrationFailedReason property: Error code for migration failure.
      Returns:
      the migrationFailedReason value.
    • migrationFailedDetailedReason

      public String migrationFailedDetailedReason()
      Get the migrationFailedDetailedReason property: Reason for migration failure.
      Returns:
      the migrationFailedDetailedReason 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<StorageAccountMigrationProperties>
      Throws:
      IOException
    • fromJson

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