Class CdnWebApplicationFirewallPolicyProperties
- java.lang.Object
-
- com.azure.resourcemanager.cdn.fluent.models.CdnWebApplicationFirewallPolicyProperties
-
public final class CdnWebApplicationFirewallPolicyProperties extends Object
Defines CDN web application firewall policy properties.
-
-
Constructor Summary
Constructors Constructor Description CdnWebApplicationFirewallPolicyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomRuleListcustomRules()Get the customRules property: Describes custom rules inside the policy.List<EndpointResource>endpointLinks()Get the endpointLinks property: Describes Azure CDN endpoints associated with this Web Application Firewall policy.ManagedRuleSetListmanagedRules()Get the managedRules property: Describes managed rules inside the policy.PolicySettingspolicySettings()Get the policySettings property: Describes policySettings for policy.ProvisioningStateprovisioningState()Get the provisioningState property: Provisioning state of the WebApplicationFirewallPolicy.RateLimitRuleListrateLimitRules()Get the rateLimitRules property: Describes rate limit rules inside the policy.PolicyResourceStateresourceState()Get the resourceState property: Resource status of the policy.voidvalidate()Validates the instance.CdnWebApplicationFirewallPolicyPropertieswithCustomRules(CustomRuleList customRules)Set the customRules property: Describes custom rules inside the policy.CdnWebApplicationFirewallPolicyPropertieswithManagedRules(ManagedRuleSetList managedRules)Set the managedRules property: Describes managed rules inside the policy.CdnWebApplicationFirewallPolicyPropertieswithPolicySettings(PolicySettings policySettings)Set the policySettings property: Describes policySettings for policy.CdnWebApplicationFirewallPolicyPropertieswithRateLimitRules(RateLimitRuleList rateLimitRules)Set the rateLimitRules property: Describes rate limit rules inside the policy.
-
-
-
Method Detail
-
policySettings
public PolicySettings policySettings()
Get the policySettings property: Describes policySettings for policy.- Returns:
- the policySettings value.
-
withPolicySettings
public CdnWebApplicationFirewallPolicyProperties withPolicySettings(PolicySettings policySettings)
Set the policySettings property: Describes policySettings for policy.- Parameters:
policySettings- the policySettings value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
rateLimitRules
public RateLimitRuleList 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
public CustomRuleList customRules()
Get the customRules property: Describes custom rules inside the policy.- Returns:
- the customRules value.
-
withCustomRules
public CdnWebApplicationFirewallPolicyProperties withCustomRules(CustomRuleList customRules)
Set the customRules property: Describes custom rules inside the policy.- Parameters:
customRules- the customRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
managedRules
public ManagedRuleSetList managedRules()
Get the managedRules property: Describes managed rules inside the policy.- Returns:
- the managedRules value.
-
withManagedRules
public CdnWebApplicationFirewallPolicyProperties withManagedRules(ManagedRuleSetList managedRules)
Set the managedRules property: Describes managed rules inside the policy.- Parameters:
managedRules- the managedRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyProperties object itself.
-
endpointLinks
public List<EndpointResource> endpointLinks()
Get the endpointLinks property: Describes Azure CDN endpoints associated with this Web Application Firewall policy.- Returns:
- the endpointLinks value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the WebApplicationFirewallPolicy.- Returns:
- the provisioningState value.
-
resourceState
public PolicyResourceState 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.
-
-