Class SecurityPolicyWebApplicationFirewallAssociation

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

public final class SecurityPolicyWebApplicationFirewallAssociation extends Object implements com.azure.json.JsonSerializable<SecurityPolicyWebApplicationFirewallAssociation>
settings for security policy patterns to match.
  • Constructor Details

    • SecurityPolicyWebApplicationFirewallAssociation

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

    • domains

      public List<ActivatedResourceReference> domains()
      Get the domains property: List of domains.
      Returns:
      the domains value.
    • withDomains

      Set the domains property: List of domains.
      Parameters:
      domains - the domains value to set.
      Returns:
      the SecurityPolicyWebApplicationFirewallAssociation object itself.
    • patternsToMatch

      public List<String> patternsToMatch()
      Get the patternsToMatch property: List of paths.
      Returns:
      the patternsToMatch value.
    • withPatternsToMatch

      public SecurityPolicyWebApplicationFirewallAssociation withPatternsToMatch(List<String> patternsToMatch)
      Set the patternsToMatch property: List of paths.
      Parameters:
      patternsToMatch - the patternsToMatch value to set.
      Returns:
      the SecurityPolicyWebApplicationFirewallAssociation 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<SecurityPolicyWebApplicationFirewallAssociation>
      Throws:
      IOException
    • fromJson

      public static SecurityPolicyWebApplicationFirewallAssociation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SecurityPolicyWebApplicationFirewallAssociation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SecurityPolicyWebApplicationFirewallAssociation 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 SecurityPolicyWebApplicationFirewallAssociation.