# 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::StorSimple8000Series::Mgmt::V2017_06_01
  module Models
    #
    # The OData filters to be used for backups.
    #
    class BackupFilter

      include MsRestAzure

      # @return [String] Specifies the backupPolicyId of the backups to be
      # filtered. Only 'Equality' operator is supported for this property.
      attr_accessor :backup_policy_id

      # @return [String] Specifies the volumeId of the backups to be filtered.
      # Only 'Equality' operator is supported for this property.
      attr_accessor :volume_id

      # @return [DateTime] Specifies the creation time of the backups to be
      # filtered. Only 'Greater Than or Equal To' and 'Lesser Than or Equal To'
      # operators are supported for this property.
      attr_accessor :created_time


      #
      # Mapper for BackupFilter class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'BackupFilter',
          type: {
            name: 'Composite',
            class_name: 'BackupFilter',
            model_properties: {
              backup_policy_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'backupPolicyId',
                type: {
                  name: 'String'
                }
              },
              volume_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'volumeId',
                type: {
                  name: 'String'
                }
              },
              created_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'createdTime',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
