# 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 schedule for bandwidth setting.
    #
    class BandwidthSchedule

      include MsRestAzure

      # @return [Time] The start time of the schdule.
      attr_accessor :start

      # @return [Time] The stop time of the schedule.
      attr_accessor :stop

      # @return [Integer] The rate in Mbps.
      attr_accessor :rate_in_mbps

      # @return [Array<DayOfWeek>] The days of the week when this schedule is
      # applicable.
      attr_accessor :days


      #
      # Mapper for BandwidthSchedule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'BandwidthSchedule',
          type: {
            name: 'Composite',
            class_name: 'BandwidthSchedule',
            model_properties: {
              start: {
                client_side_validation: true,
                required: true,
                serialized_name: 'start',
                type: {
                  name: 'Composite',
                  class_name: 'Time'
                }
              },
              stop: {
                client_side_validation: true,
                required: true,
                serialized_name: 'stop',
                type: {
                  name: 'Composite',
                  class_name: 'Time'
                }
              },
              rate_in_mbps: {
                client_side_validation: true,
                required: true,
                serialized_name: 'rateInMbps',
                type: {
                  name: 'Number'
                }
              },
              days: {
                client_side_validation: true,
                required: true,
                serialized_name: 'days',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'DayOfWeekElementType',
                      type: {
                        name: 'Enum',
                        module: 'DayOfWeek'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
