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 Summary
ConstructorsConstructorDescriptionCreates an instance of SecurityPolicyWebApplicationFirewallAssociation class. -
Method Summary
Modifier and TypeMethodDescriptiondomains()Get the domains property: List of domains.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecurityPolicyWebApplicationFirewallAssociation from the JsonReader.Get the patternsToMatch property: List of paths.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDomains(List<ActivatedResourceReference> domains) Set the domains property: List of domains.withPatternsToMatch(List<String> patternsToMatch) Set the patternsToMatch property: List of paths.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
-
SecurityPolicyWebApplicationFirewallAssociation
public SecurityPolicyWebApplicationFirewallAssociation()Creates an instance of SecurityPolicyWebApplicationFirewallAssociation class.
-
-
Method Details
-
domains
Get the domains property: List of domains.- Returns:
- the domains value.
-
withDomains
public SecurityPolicyWebApplicationFirewallAssociation withDomains(List<ActivatedResourceReference> domains) Set the domains property: List of domains.- Parameters:
domains- the domains value to set.- Returns:
- the SecurityPolicyWebApplicationFirewallAssociation object itself.
-
patternsToMatch
-
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
- Specified by:
toJsonin interfacecom.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.
-