Class CdnWebApplicationFirewallPolicyInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.cdn.fluent.models.CdnWebApplicationFirewallPolicyInner

public final class CdnWebApplicationFirewallPolicyInner extends com.azure.core.management.Resource
Defines web application firewall policy for Azure CDN.
  • Constructor Details

    • CdnWebApplicationFirewallPolicyInner

      public CdnWebApplicationFirewallPolicyInner()
      Creates an instance of CdnWebApplicationFirewallPolicyInner class.
  • Method Details

    • 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

      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

      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.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Read only system data.
      Returns:
      the systemData value.
    • withLocation

      public CdnWebApplicationFirewallPolicyInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      Overrides:
      withTags in class com.azure.core.management.Resource
    • 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.
    • extendedProperties

      public Map<String,String> extendedProperties()
      Get the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.
      Returns:
      the extendedProperties value.
    • withExtendedProperties

      public CdnWebApplicationFirewallPolicyInner 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 CdnWebApplicationFirewallPolicyInner object itself.
    • 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.