Class MigrationWebApplicationFirewallMapping

java.lang.Object
com.azure.resourcemanager.cdn.models.MigrationWebApplicationFirewallMapping
All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrationWebApplicationFirewallMapping>

public final class MigrationWebApplicationFirewallMapping extends Object implements com.azure.json.JsonSerializable<MigrationWebApplicationFirewallMapping>
Web Application Firewall Mapping.
  • Constructor Details

    • MigrationWebApplicationFirewallMapping

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

    • migratedFrom

      public ResourceReference migratedFrom()
      Get the migratedFrom property: Migration From Waf policy.
      Returns:
      the migratedFrom value.
    • withMigratedFrom

      public MigrationWebApplicationFirewallMapping withMigratedFrom(ResourceReference migratedFrom)
      Set the migratedFrom property: Migration From Waf policy.
      Parameters:
      migratedFrom - the migratedFrom value to set.
      Returns:
      the MigrationWebApplicationFirewallMapping object itself.
    • migratedTo

      public ResourceReference migratedTo()
      Get the migratedTo property: Migration to Waf policy.
      Returns:
      the migratedTo value.
    • withMigratedTo

      public MigrationWebApplicationFirewallMapping withMigratedTo(ResourceReference migratedTo)
      Set the migratedTo property: Migration to Waf policy.
      Parameters:
      migratedTo - the migratedTo value to set.
      Returns:
      the MigrationWebApplicationFirewallMapping 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<MigrationWebApplicationFirewallMapping>
      Throws:
      IOException
    • fromJson

      public static MigrationWebApplicationFirewallMapping fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MigrationWebApplicationFirewallMapping from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MigrationWebApplicationFirewallMapping if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the MigrationWebApplicationFirewallMapping.