# 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::CDN::Mgmt::V2020_09_01
  module Models
    #
    # Defines the PostArgs condition for the delivery rule.
    #
    class DeliveryRulePostArgsCondition < DeliveryRuleCondition

      include MsRestAzure


      def initialize
        @name = "PostArgs"
      end

      attr_accessor :name

      # @return [PostArgsMatchConditionParameters] Defines the parameters for
      # the condition.
      attr_accessor :parameters


      #
      # Mapper for DeliveryRulePostArgsCondition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PostArgs',
          type: {
            name: 'Composite',
            class_name: 'DeliveryRulePostArgsCondition',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              parameters: {
                client_side_validation: true,
                required: true,
                serialized_name: 'parameters',
                default_value: {},
                type: {
                  name: 'Composite',
                  class_name: 'PostArgsMatchConditionParameters'
                }
              }
            }
          }
        }
      end
    end
  end
end
