Class StorageMigrationOptionsProperties
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.StorageMigrationOptionsProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageMigrationOptionsProperties>
public final class StorageMigrationOptionsProperties
extends Object
implements com.azure.json.JsonSerializable<StorageMigrationOptionsProperties>
StorageMigrationOptions resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StorageMigrationOptionsProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the azurefilesConnectionString property: AzureFiles connection string.Get the azurefilesShare property: AzureFiles share.Get the blockWriteAccessToSite property: <code>true</code> if the app should be read only during copy operation; otherwise, <code>false</code>.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of StorageMigrationOptionsProperties from the JsonReader.Get the switchSiteAfterMigration property: <code>true</code>if the app should be switched over; otherwise, <code>false</code>.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAzurefilesConnectionString
(String azurefilesConnectionString) Set the azurefilesConnectionString property: AzureFiles connection string.withAzurefilesShare
(String azurefilesShare) Set the azurefilesShare property: AzureFiles share.withBlockWriteAccessToSite
(Boolean blockWriteAccessToSite) Set the blockWriteAccessToSite property: <code>true</code> if the app should be read only during copy operation; otherwise, <code>false</code>.withSwitchSiteAfterMigration
(Boolean switchSiteAfterMigration) Set the switchSiteAfterMigration property: <code>true</code>if the app should be switched over; otherwise, <code>false</code>.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StorageMigrationOptionsProperties
public StorageMigrationOptionsProperties()Creates an instance of StorageMigrationOptionsProperties class.
-
-
Method Details
-
azurefilesConnectionString
Get the azurefilesConnectionString property: AzureFiles connection string.- Returns:
- the azurefilesConnectionString value.
-
withAzurefilesConnectionString
public StorageMigrationOptionsProperties withAzurefilesConnectionString(String azurefilesConnectionString) Set the azurefilesConnectionString property: AzureFiles connection string.- Parameters:
azurefilesConnectionString
- the azurefilesConnectionString value to set.- Returns:
- the StorageMigrationOptionsProperties object itself.
-
switchSiteAfterMigration
Get the switchSiteAfterMigration property: <code>true</code>if the app should be switched over; otherwise, <code>false</code>.- Returns:
- the switchSiteAfterMigration value.
-
withSwitchSiteAfterMigration
public StorageMigrationOptionsProperties withSwitchSiteAfterMigration(Boolean switchSiteAfterMigration) Set the switchSiteAfterMigration property: <code>true</code>if the app should be switched over; otherwise, <code>false</code>.- Parameters:
switchSiteAfterMigration
- the switchSiteAfterMigration value to set.- Returns:
- the StorageMigrationOptionsProperties object itself.
-
blockWriteAccessToSite
Get the blockWriteAccessToSite property: <code>true</code> if the app should be read only during copy operation; otherwise, <code>false</code>.- Returns:
- the blockWriteAccessToSite value.
-
withBlockWriteAccessToSite
Set the blockWriteAccessToSite property: <code>true</code> if the app should be read only during copy operation; otherwise, <code>false</code>.- Parameters:
blockWriteAccessToSite
- the blockWriteAccessToSite value to set.- Returns:
- the StorageMigrationOptionsProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<StorageMigrationOptionsProperties>
- Throws:
IOException
-
fromJson
public static StorageMigrationOptionsProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of StorageMigrationOptionsProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of StorageMigrationOptionsProperties 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 StorageMigrationOptionsProperties.
-