Class CdnWebApplicationFirewallPolicyInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.cdn.fluent.models.CdnWebApplicationFirewallPolicyInner
-
public class CdnWebApplicationFirewallPolicyInner extends com.azure.core.management.ResourceDefines web application firewall policy for Azure CDN.
-
-
Constructor Summary
Constructors Constructor Description CdnWebApplicationFirewallPolicyInner()
-
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.Stringetag()Get the etag property: Gets a unique read-only string that changes whenever the resource is updated.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.Skusku()Get the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.SystemDatasystemData()Get the systemData property: Read only system data.voidvalidate()Validates the instance.CdnWebApplicationFirewallPolicyInnerwithCustomRules(CustomRuleList customRules)Set the customRules property: Describes custom rules inside the policy.CdnWebApplicationFirewallPolicyInnerwithEtag(String etag)Set the etag property: Gets a unique read-only string that changes whenever the resource is updated.CdnWebApplicationFirewallPolicyInnerwithLocation(String location)CdnWebApplicationFirewallPolicyInnerwithManagedRules(ManagedRuleSetList managedRules)Set the managedRules property: Describes managed rules inside the policy.CdnWebApplicationFirewallPolicyInnerwithPolicySettings(PolicySettings policySettings)Set the policySettings property: Describes policySettings for policy.CdnWebApplicationFirewallPolicyInnerwithRateLimitRules(RateLimitRuleList rateLimitRules)Set the rateLimitRules property: Describes rate limit rules inside the policy.CdnWebApplicationFirewallPolicyInnerwithSku(Sku sku)Set the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.CdnWebApplicationFirewallPolicyInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: Gets a unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withEtag
public CdnWebApplicationFirewallPolicyInner withEtag(String etag)
Set the etag property: Gets a unique read-only string that changes whenever the resource is updated.- Parameters:
etag- the etag value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
sku
public Sku sku()
Get the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.- Returns:
- the sku value.
-
withSku
public CdnWebApplicationFirewallPolicyInner withSku(Sku sku)
Set the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.- Parameters:
sku- the sku value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
policySettings
public PolicySettings policySettings()
Get the policySettings property: Describes policySettings for policy.- Returns:
- the policySettings value.
-
withPolicySettings
public CdnWebApplicationFirewallPolicyInner withPolicySettings(PolicySettings policySettings)
Set the policySettings property: Describes policySettings for policy.- Parameters:
policySettings- the policySettings value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
rateLimitRules
public RateLimitRuleList rateLimitRules()
Get the rateLimitRules property: Describes rate limit rules inside the policy.- Returns:
- the rateLimitRules value.
-
withRateLimitRules
public CdnWebApplicationFirewallPolicyInner withRateLimitRules(RateLimitRuleList rateLimitRules)
Set the rateLimitRules property: Describes rate limit rules inside the policy.- Parameters:
rateLimitRules- the rateLimitRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
customRules
public CustomRuleList customRules()
Get the customRules property: Describes custom rules inside the policy.- Returns:
- the customRules value.
-
withCustomRules
public CdnWebApplicationFirewallPolicyInner withCustomRules(CustomRuleList customRules)
Set the customRules property: Describes custom rules inside the policy.- Parameters:
customRules- the customRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
managedRules
public ManagedRuleSetList managedRules()
Get the managedRules property: Describes managed rules inside the policy.- Returns:
- the managedRules value.
-
withManagedRules
public CdnWebApplicationFirewallPolicyInner withManagedRules(ManagedRuleSetList managedRules)
Set the managedRules property: Describes managed rules inside the policy.- Parameters:
managedRules- the managedRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner 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.
-
systemData
public SystemData systemData()
Get the systemData property: Read only system data.- Returns:
- the systemData value.
-
withLocation
public CdnWebApplicationFirewallPolicyInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public CdnWebApplicationFirewallPolicyInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-