Class ApplicationGatewayFirewallExclusion

java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayFirewallExclusion
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayFirewallExclusion>

public final class ApplicationGatewayFirewallExclusion extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayFirewallExclusion>
Allow to exclude some variable satisfy the condition for the WAF check.
  • Constructor Details

    • ApplicationGatewayFirewallExclusion

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

    • matchVariable

      public String matchVariable()
      Get the matchVariable property: The variable to be excluded.
      Returns:
      the matchVariable value.
    • withMatchVariable

      public ApplicationGatewayFirewallExclusion withMatchVariable(String matchVariable)
      Set the matchVariable property: The variable to be excluded.
      Parameters:
      matchVariable - the matchVariable value to set.
      Returns:
      the ApplicationGatewayFirewallExclusion object itself.
    • selectorMatchOperator

      public String selectorMatchOperator()
      Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.
      Returns:
      the selectorMatchOperator value.
    • withSelectorMatchOperator

      public ApplicationGatewayFirewallExclusion withSelectorMatchOperator(String selectorMatchOperator)
      Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.
      Parameters:
      selectorMatchOperator - the selectorMatchOperator value to set.
      Returns:
      the ApplicationGatewayFirewallExclusion object itself.
    • selector

      public String selector()
      Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.
      Returns:
      the selector value.
    • withSelector

      public ApplicationGatewayFirewallExclusion withSelector(String selector)
      Set the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.
      Parameters:
      selector - the selector value to set.
      Returns:
      the ApplicationGatewayFirewallExclusion object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ApplicationGatewayFirewallExclusion>
      Throws:
      IOException
    • fromJson

      public static ApplicationGatewayFirewallExclusion fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApplicationGatewayFirewallExclusion from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApplicationGatewayFirewallExclusion if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ApplicationGatewayFirewallExclusion.