# 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::CostManagement::Mgmt::V2019_01_01
  module Models
    #
    # The comparison expression to be used in the query.
    #
    class QueryComparisonExpression

      include MsRestAzure

      # @return [String] The name of the column to use in comparison.
      attr_accessor :name

      # @return [String] The operator to use for comparison. Default value:
      # 'In' .
      attr_accessor :operator

      # @return [Array<String>] Array of values to use for comparison
      attr_accessor :values


      #
      # Mapper for QueryComparisonExpression class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'QueryComparisonExpression',
          type: {
            name: 'Composite',
            class_name: 'QueryComparisonExpression',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              operator: {
                client_side_validation: true,
                required: true,
                is_constant: true,
                serialized_name: 'operator',
                default_value: 'In',
                type: {
                  name: 'String'
                }
              },
              values: {
                client_side_validation: true,
                required: true,
                serialized_name: 'values',
                constraints: {
                  MinItems: 1
                },
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
