Class WebApplicationFirewallPolicyInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.frontdoor.fluent.models.WebApplicationFirewallPolicyInner

public final class WebApplicationFirewallPolicyInner extends com.azure.core.management.Resource
Defines web application firewall policy.
  • Constructor Details

    • WebApplicationFirewallPolicyInner

      public WebApplicationFirewallPolicyInner()
      Creates an instance of WebApplicationFirewallPolicyInner 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

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

      public Sku sku()
      Get the sku property: The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
      Returns:
      the sku value.
    • withSku

      public WebApplicationFirewallPolicyInner withSku(Sku sku)
      Set the sku property: The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
      Parameters:
      sku - the sku value to set.
      Returns:
      the WebApplicationFirewallPolicyInner object itself.
    • withLocation

      public WebApplicationFirewallPolicyInner 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 settings for the policy.
      Returns:
      the policySettings value.
    • withPolicySettings

      public WebApplicationFirewallPolicyInner withPolicySettings(PolicySettings policySettings)
      Set the policySettings property: Describes settings for the policy.
      Parameters:
      policySettings - the policySettings value to set.
      Returns:
      the WebApplicationFirewallPolicyInner object itself.
    • customRules

      public CustomRuleList customRules()
      Get the customRules property: Describes custom rules inside the policy.
      Returns:
      the customRules value.
    • withCustomRules

      public WebApplicationFirewallPolicyInner withCustomRules(CustomRuleList customRules)
      Set the customRules property: Describes custom rules inside the policy.
      Parameters:
      customRules - the customRules value to set.
      Returns:
      the WebApplicationFirewallPolicyInner object itself.
    • managedRules

      public ManagedRuleSetList managedRules()
      Get the managedRules property: Describes managed rules inside the policy.
      Returns:
      the managedRules value.
    • withManagedRules

      public WebApplicationFirewallPolicyInner withManagedRules(ManagedRuleSetList managedRules)
      Set the managedRules property: Describes managed rules inside the policy.
      Parameters:
      managedRules - the managedRules value to set.
      Returns:
      the WebApplicationFirewallPolicyInner object itself.
    • frontendEndpointLinks

      public List<FrontendEndpointLink> frontendEndpointLinks()
      Get the frontendEndpointLinks property: Describes Frontend Endpoints associated with this Web Application Firewall policy.
      Returns:
      the frontendEndpointLinks value.
    • routingRuleLinks

      public List<RoutingRuleLink> routingRuleLinks()
      Get the routingRuleLinks property: Describes Routing Rules associated with this Web Application Firewall policy.
      Returns:
      the routingRuleLinks value.
    • securityPolicyLinks

      public List<SecurityPolicyLink> securityPolicyLinks()
      Get the securityPolicyLinks property: Describes Security Policy associated with this Web Application Firewall policy.
      Returns:
      the securityPolicyLinks value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Provisioning state of the policy.
      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.