Class StorageAccountMigrationInner
java.lang.Object
com.azure.resourcemanager.storage.fluent.models.StorageAccountMigrationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageAccountMigrationInner>
public final class StorageAccountMigrationInner
extends Object
implements com.azure.json.JsonSerializable<StorageAccountMigrationInner>
The parameters or status associated with an ongoing or enqueued storage account migration in order to update its
current SKU or region.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StorageAccountMigrationInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageAccountMigrationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageAccountMigrationInner from the JsonReader.id()Get the id property: Migration Resource Id.Get the migrationFailedDetailedReason property: Reason for migration failure.Get the migrationFailedReason property: Error code for migration failure.Get the migrationStatus property: Current status of migration.name()Get the name property: current value is 'default' for customer initiated migration.Get the targetSkuName property: Target sku name for the account.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: SrpAccountMigrationType in ARM contract which is 'accountMigrations'.voidvalidate()Validates the instance.Set the name property: current value is 'default' for customer initiated migration.withTargetSkuName(SkuName targetSkuName) Set the targetSkuName property: Target sku name for the account.Set the type property: SrpAccountMigrationType in ARM contract which is 'accountMigrations'.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StorageAccountMigrationInner
public StorageAccountMigrationInner()Creates an instance of StorageAccountMigrationInner class.
-
-
Method Details
-
id
Get the id property: Migration Resource Id.- Returns:
- the id value.
-
name
Get the name property: current value is 'default' for customer initiated migration.- Returns:
- the name value.
-
withName
Set the name property: current value is 'default' for customer initiated migration.- Parameters:
name- the name value to set.- Returns:
- the StorageAccountMigrationInner object itself.
-
type
Get the type property: SrpAccountMigrationType in ARM contract which is 'accountMigrations'.- Returns:
- the type value.
-
withType
Set the type property: SrpAccountMigrationType in ARM contract which is 'accountMigrations'.- Parameters:
type- the type value to set.- Returns:
- the StorageAccountMigrationInner object itself.
-
targetSkuName
Get the targetSkuName property: Target sku name for the account.- Returns:
- the targetSkuName value.
-
withTargetSkuName
Set the targetSkuName property: Target sku name for the account.- Parameters:
targetSkuName- the targetSkuName value to set.- Returns:
- the StorageAccountMigrationInner object itself.
-
migrationStatus
Get the migrationStatus property: Current status of migration.- Returns:
- the migrationStatus value.
-
migrationFailedReason
Get the migrationFailedReason property: Error code for migration failure.- Returns:
- the migrationFailedReason value.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StorageAccountMigrationInner>- Throws:
IOException
-
fromJson
public static StorageAccountMigrationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of StorageAccountMigrationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StorageAccountMigrationInner 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 StorageAccountMigrationInner.
-