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 Details

    • MigrationParameters

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

    • sku

      public Sku sku()
      Get the sku property: Sku for the migration.
      Returns:
      the sku value.
    • withSku

      public MigrationParameters withSku(Sku sku)
      Set the sku property: Sku for the migration.
      Parameters:
      sku - the sku value to set.
      Returns:
      the MigrationParameters object itself.
    • classicResourceReference

      public ResourceReference 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

      public MigrationParameters withClassicResourceReference(ResourceReference classicResourceReference)
      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

      public String profileName()
      Get the profileName property: Name of the new profile that need to be created.
      Returns:
      the profileName value.
    • withProfileName

      public MigrationParameters withProfileName(String profileName)
      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

      public List<MigrationWebApplicationFirewallMapping> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MigrationParameters>
      Throws:
      IOException
    • fromJson

      public static MigrationParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.