# 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::AlertsManagement::Mgmt::V2019_05_05_preview
  module Models
    #
    # Schedule for a given suppression configuration.
    #
    class SuppressionSchedule

      include MsRestAzure

      # @return [String] Start date for suppression
      attr_accessor :start_date

      # @return [String] End date for suppression
      attr_accessor :end_date

      # @return [String] Start time for suppression
      attr_accessor :start_time

      # @return [String] End date for suppression
      attr_accessor :end_time

      # @return [Array<Integer>] Specifies the values for recurrence pattern
      attr_accessor :recurrence_values


      #
      # Mapper for SuppressionSchedule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SuppressionSchedule',
          type: {
            name: 'Composite',
            class_name: 'SuppressionSchedule',
            model_properties: {
              start_date: {
                client_side_validation: true,
                required: false,
                serialized_name: 'startDate',
                type: {
                  name: 'String'
                }
              },
              end_date: {
                client_side_validation: true,
                required: false,
                serialized_name: 'endDate',
                type: {
                  name: 'String'
                }
              },
              start_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'startTime',
                type: {
                  name: 'String'
                }
              },
              end_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'endTime',
                type: {
                  name: 'String'
                }
              },
              recurrence_values: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recurrenceValues',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'NumberElementType',
                      type: {
                        name: 'Number'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
