Class PolicySettings

java.lang.Object
com.microsoft.azure.management.network.PolicySettings

public class PolicySettings extends Object
Defines contents of a web application firewall global configuration.
  • Constructor Details

    • PolicySettings

      public PolicySettings()
  • Method Details

    • state

      Get the state of the policy. Possible values include: 'Disabled', 'Enabled'.
      Returns:
      the state value
    • withState

      Set the state of the policy. Possible values include: 'Disabled', 'Enabled'.
      Parameters:
      state - the state value to set
      Returns:
      the PolicySettings object itself.
    • mode

      Get the mode of the policy. Possible values include: 'Prevention', 'Detection'.
      Returns:
      the mode value
    • withMode

      Set the mode of the policy. Possible values include: 'Prevention', 'Detection'.
      Parameters:
      mode - the mode value to set
      Returns:
      the PolicySettings object itself.
    • requestBodyCheck

      public Boolean requestBodyCheck()
      Get whether to allow WAF to check request Body.
      Returns:
      the requestBodyCheck value
    • withRequestBodyCheck

      public PolicySettings withRequestBodyCheck(Boolean requestBodyCheck)
      Set whether to allow WAF to check request Body.
      Parameters:
      requestBodyCheck - the requestBodyCheck value to set
      Returns:
      the PolicySettings object itself.
    • maxRequestBodySizeInKb

      public Integer maxRequestBodySizeInKb()
      Get maximum request body size in Kb for WAF.
      Returns:
      the maxRequestBodySizeInKb value
    • withMaxRequestBodySizeInKb

      public PolicySettings withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
      Set maximum request body size in Kb for WAF.
      Parameters:
      maxRequestBodySizeInKb - the maxRequestBodySizeInKb value to set
      Returns:
      the PolicySettings object itself.
    • fileUploadLimitInMb

      public Integer fileUploadLimitInMb()
      Get maximum file upload size in Mb for WAF.
      Returns:
      the fileUploadLimitInMb value
    • withFileUploadLimitInMb

      public PolicySettings withFileUploadLimitInMb(Integer fileUploadLimitInMb)
      Set maximum file upload size in Mb for WAF.
      Parameters:
      fileUploadLimitInMb - the fileUploadLimitInMb value to set
      Returns:
      the PolicySettings object itself.