Class MigrationParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.MigrationParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrationParameters>
public final class MigrationParameters
extends Object
implements com.azure.json.JsonSerializable<MigrationParameters>
Request body for Migrate operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the classicResourceReference property: Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.static MigrationParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MigrationParameters from the JsonReader.Get the migrationWebApplicationFirewallMappings property: Waf mapping for the migrated profile.Get the profileName property: Name of the new profile that need to be created.sku()Get the sku property: Sku for the migration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClassicResourceReference(ResourceReference classicResourceReference) Set the classicResourceReference property: Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.withMigrationWebApplicationFirewallMappings(List<MigrationWebApplicationFirewallMapping> migrationWebApplicationFirewallMappings) Set the migrationWebApplicationFirewallMappings property: Waf mapping for the migrated profile.withProfileName(String profileName) Set the profileName property: Name of the new profile that need to be created.Set the sku property: Sku for the migration.Methods inherited from class 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
-
MigrationParameters
public MigrationParameters()Creates an instance of MigrationParameters class.
-
-
Method Details
-
sku
-
withSku
Set the sku property: Sku for the migration.- Parameters:
sku- the sku value to set.- Returns:
- the MigrationParameters object itself.
-
classicResourceReference
Get the classicResourceReference property: Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.- Returns:
- the classicResourceReference value.
-
withClassicResourceReference
Set the classicResourceReference property: Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.- Parameters:
classicResourceReference- the classicResourceReference value to set.- Returns:
- the MigrationParameters object itself.
-
profileName
Get the profileName property: Name of the new profile that need to be created.- Returns:
- the profileName value.
-
withProfileName
Set the profileName property: Name of the new profile that need to be created.- Parameters:
profileName- the profileName value to set.- Returns:
- the MigrationParameters object itself.
-
migrationWebApplicationFirewallMappings
Get the migrationWebApplicationFirewallMappings property: Waf mapping for the migrated profile.- Returns:
- the migrationWebApplicationFirewallMappings value.
-
withMigrationWebApplicationFirewallMappings
public MigrationParameters withMigrationWebApplicationFirewallMappings(List<MigrationWebApplicationFirewallMapping> migrationWebApplicationFirewallMappings) Set the migrationWebApplicationFirewallMappings property: Waf mapping for the migrated profile.- Parameters:
migrationWebApplicationFirewallMappings- the migrationWebApplicationFirewallMappings value to set.- Returns:
- the MigrationParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MigrationParameters>- Throws:
IOException
-
fromJson
Reads an instance of MigrationParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MigrationParameters 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 MigrationParameters.
-