Class SecurityPolicyWebApplicationFirewallParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.SecurityPolicyPropertiesParameters
com.azure.resourcemanager.cdn.models.SecurityPolicyWebApplicationFirewallParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SecurityPolicyPropertiesParameters>
public final class SecurityPolicyWebApplicationFirewallParameters
extends SecurityPolicyPropertiesParameters
The json object containing security policy waf parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SecurityPolicyWebApplicationFirewallParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the associations property: Waf associations.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecurityPolicyWebApplicationFirewallParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the Security policy to create.voidvalidate()Validates the instance.Get the wafPolicy property: Resource ID.withAssociations(List<SecurityPolicyWebApplicationFirewallAssociation> associations) Set the associations property: Waf associations.withWafPolicy(ResourceReference wafPolicy) Set the wafPolicy property: Resource ID.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
-
SecurityPolicyWebApplicationFirewallParameters
public SecurityPolicyWebApplicationFirewallParameters()Creates an instance of SecurityPolicyWebApplicationFirewallParameters class.
-
-
Method Details
-
type
Get the type property: The type of the Security policy to create.- Overrides:
typein classSecurityPolicyPropertiesParameters- Returns:
- the type value.
-
wafPolicy
Get the wafPolicy property: Resource ID.- Returns:
- the wafPolicy value.
-
withWafPolicy
Set the wafPolicy property: Resource ID.- Parameters:
wafPolicy- the wafPolicy value to set.- Returns:
- the SecurityPolicyWebApplicationFirewallParameters object itself.
-
associations
Get the associations property: Waf associations.- Returns:
- the associations value.
-
withAssociations
public SecurityPolicyWebApplicationFirewallParameters withAssociations(List<SecurityPolicyWebApplicationFirewallAssociation> associations) Set the associations property: Waf associations.- Parameters:
associations- the associations value to set.- Returns:
- the SecurityPolicyWebApplicationFirewallParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSecurityPolicyPropertiesParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SecurityPolicyPropertiesParameters>- Overrides:
toJsonin classSecurityPolicyPropertiesParameters- Throws:
IOException
-
fromJson
public static SecurityPolicyWebApplicationFirewallParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SecurityPolicyWebApplicationFirewallParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SecurityPolicyWebApplicationFirewallParameters 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 SecurityPolicyWebApplicationFirewallParameters.
-