Class MigrationParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.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.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.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.
-
Constructor Details
-
MigrationParameters
public MigrationParameters()Creates an instance of MigrationParameters class.
-
-
Method Details
-
sku
Get the sku property: Sku for the migration.- Returns:
- the sku value.
-
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.
-