Class CdnWebApplicationFirewallPolicyProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.CdnWebApplicationFirewallPolicyProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CdnWebApplicationFirewallPolicyProperties>
public final class CdnWebApplicationFirewallPolicyProperties
extends Object
implements com.azure.json.JsonSerializable<CdnWebApplicationFirewallPolicyProperties>
Defines CDN web application firewall policy properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CdnWebApplicationFirewallPolicyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customRules property: Describes custom rules inside the policy.Get the endpointLinks property: Describes Azure CDN endpoints associated with this Web Application Firewall policy.Get the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CdnWebApplicationFirewallPolicyProperties from the JsonReader.Get the managedRules property: Describes managed rules inside the policy.Get the policySettings property: Describes policySettings for policy.Get the provisioningState property: Provisioning state of the WebApplicationFirewallPolicy.Get the rateLimitRules property: Describes rate limit rules inside the policy.Get the resourceState property: Resource status of the policy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCustomRules(CustomRuleList customRules) Set the customRules property: Describes custom rules inside the policy.withExtendedProperties(Map<String, String> extendedProperties) Set the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.withManagedRules(ManagedRuleSetList managedRules) Set the managedRules property: Describes managed rules inside the policy.withPolicySettings(PolicySettings policySettings) Set the policySettings property: Describes policySettings for policy.withRateLimitRules(RateLimitRuleList rateLimitRules) Set the rateLimitRules property: Describes rate limit rules inside the policy.Methods inherited from class java.lang.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
-
CdnWebApplicationFirewallPolicyProperties
public CdnWebApplicationFirewallPolicyProperties()Creates an instance of CdnWebApplicationFirewallPolicyProperties class.
-
-
Method Details
-
policySettings
Get the policySettings property: Describes policySettings for policy.- Returns:
- the policySettings value.
-
withPolicySettings
Set the policySettings property: Describes policySettings for policy.- Parameters:
policySettings- the policySettings value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
rateLimitRules
Get the rateLimitRules property: Describes rate limit rules inside the policy.- Returns:
- the rateLimitRules value.
-
withRateLimitRules
public CdnWebApplicationFirewallPolicyProperties withRateLimitRules(RateLimitRuleList rateLimitRules) Set the rateLimitRules property: Describes rate limit rules inside the policy.- Parameters:
rateLimitRules- the rateLimitRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
customRules
Get the customRules property: Describes custom rules inside the policy.- Returns:
- the customRules value.
-
withCustomRules
Set the customRules property: Describes custom rules inside the policy.- Parameters:
customRules- the customRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
managedRules
Get the managedRules property: Describes managed rules inside the policy.- Returns:
- the managedRules value.
-
withManagedRules
Set the managedRules property: Describes managed rules inside the policy.- Parameters:
managedRules- the managedRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
endpointLinks
Get the endpointLinks property: Describes Azure CDN endpoints associated with this Web Application Firewall policy.- Returns:
- the endpointLinks value.
-
extendedProperties
Get the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.- Returns:
- the extendedProperties value.
-
withExtendedProperties
public CdnWebApplicationFirewallPolicyProperties withExtendedProperties(Map<String, String> extendedProperties) Set the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.- Parameters:
extendedProperties- the extendedProperties value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the WebApplicationFirewallPolicy.- Returns:
- the provisioningState value.
-
resourceState
Get the resourceState property: Resource status of the policy.- Returns:
- the resourceState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CdnWebApplicationFirewallPolicyProperties>- Throws:
IOException
-
fromJson
public static CdnWebApplicationFirewallPolicyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CdnWebApplicationFirewallPolicyProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CdnWebApplicationFirewallPolicyProperties 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 CdnWebApplicationFirewallPolicyProperties.
-