# 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_03_01_preview
  module Models
    #
    # The filter expression to be used in the report.
    #
    class ReportConfigFilter

      include MsRestAzure

      # @return [Array<ReportConfigFilter>] The logical "AND" expression. Must
      # have at least 2 items.
      attr_accessor :and_property

      # @return [Array<ReportConfigFilter>] The logical "OR" expression. Must
      # have at least 2 items.
      attr_accessor :or_property

      # @return [ReportConfigFilter] The logical "NOT" expression.
      attr_accessor :not_property

      # @return [ReportConfigComparisonExpression] Has comparison expression
      # for a dimension
      attr_accessor :dimension

      # @return [ReportConfigComparisonExpression] Has comparison expression
      # for a tag
      attr_accessor :tag


      #
      # Mapper for ReportConfigFilter class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReportConfigFilter',
          type: {
            name: 'Composite',
            class_name: 'ReportConfigFilter',
            model_properties: {
              and_property: {
                client_side_validation: true,
                required: false,
                serialized_name: 'and',
                constraints: {
                  MinItems: 2
                },
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ReportConfigFilterElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ReportConfigFilter'
                      }
                  }
                }
              },
              or_property: {
                client_side_validation: true,
                required: false,
                serialized_name: 'or',
                constraints: {
                  MinItems: 2
                },
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ReportConfigFilterElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ReportConfigFilter'
                      }
                  }
                }
              },
              not_property: {
                client_side_validation: true,
                required: false,
                serialized_name: 'not',
                type: {
                  name: 'Composite',
                  class_name: 'ReportConfigFilter'
                }
              },
              dimension: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dimension',
                type: {
                  name: 'Composite',
                  class_name: 'ReportConfigComparisonExpression'
                }
              },
              tag: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tag',
                type: {
                  name: 'Composite',
                  class_name: 'ReportConfigComparisonExpression'
                }
              }
            }
          }
        }
      end
    end
  end
end
