# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Network::Mgmt::V2019_11_01
  module Models
    #
    # Set of conditions in the Rewrite Rule in Application Gateway.
    #
    class ApplicationGatewayRewriteRuleCondition

      include MsRestAzure

      # @return [String] The condition parameter of the RewriteRuleCondition.
      attr_accessor :variable

      # @return [String] The pattern, either fixed string or regular
      # expression, that evaluates the truthfulness of the condition.
      attr_accessor :pattern

      # @return [Boolean] Setting this paramter to truth value with force the
      # pattern to do a case in-sensitive comparison.
      attr_accessor :ignore_case

      # @return [Boolean] Setting this value as truth will force to check the
      # negation of the condition given by the user.
      attr_accessor :negate


      #
      # Mapper for ApplicationGatewayRewriteRuleCondition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ApplicationGatewayRewriteRuleCondition',
          type: {
            name: 'Composite',
            class_name: 'ApplicationGatewayRewriteRuleCondition',
            model_properties: {
              variable: {
                client_side_validation: true,
                required: false,
                serialized_name: 'variable',
                type: {
                  name: 'String'
                }
              },
              pattern: {
                client_side_validation: true,
                required: false,
                serialized_name: 'pattern',
                type: {
                  name: 'String'
                }
              },
              ignore_case: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ignoreCase',
                type: {
                  name: 'Boolean'
                }
              },
              negate: {
                client_side_validation: true,
                required: false,
                serialized_name: 'negate',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
