Class ApplicationGatewayRewriteRuleCondition


  • public final class ApplicationGatewayRewriteRuleCondition
    extends Object
    Set of conditions in the Rewrite Rule in Application Gateway.
    • Constructor Detail

      • ApplicationGatewayRewriteRuleCondition

        public ApplicationGatewayRewriteRuleCondition()
    • Method Detail

      • variable

        public String variable()
        Get the variable property: The condition parameter of the RewriteRuleCondition.
        Returns:
        the variable value.
      • withVariable

        public ApplicationGatewayRewriteRuleCondition withVariable​(String variable)
        Set the variable property: The condition parameter of the RewriteRuleCondition.
        Parameters:
        variable - the variable value to set.
        Returns:
        the ApplicationGatewayRewriteRuleCondition object itself.
      • pattern

        public String pattern()
        Get the pattern property: The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
        Returns:
        the pattern value.
      • withPattern

        public ApplicationGatewayRewriteRuleCondition withPattern​(String pattern)
        Set the pattern property: The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
        Parameters:
        pattern - the pattern value to set.
        Returns:
        the ApplicationGatewayRewriteRuleCondition object itself.
      • ignoreCase

        public Boolean ignoreCase()
        Get the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
        Returns:
        the ignoreCase value.
      • withIgnoreCase

        public ApplicationGatewayRewriteRuleCondition withIgnoreCase​(Boolean ignoreCase)
        Set the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
        Parameters:
        ignoreCase - the ignoreCase value to set.
        Returns:
        the ApplicationGatewayRewriteRuleCondition object itself.
      • negate

        public Boolean negate()
        Get the negate property: Setting this value as truth will force to check the negation of the condition given by the user.
        Returns:
        the negate value.
      • withNegate

        public ApplicationGatewayRewriteRuleCondition withNegate​(Boolean negate)
        Set the negate property: Setting this value as truth will force to check the negation of the condition given by the user.
        Parameters:
        negate - the negate value to set.
        Returns:
        the ApplicationGatewayRewriteRuleCondition object itself.
      • validate

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