# 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 bandwidth setting.
    #
    class BandwidthSetting < BaseModel

      include MsRestAzure

      # @return [Array<BandwidthSchedule>] The schedules.
      attr_accessor :schedules

      # @return [Integer] The number of volumes that uses the bandwidth
      # setting.
      attr_accessor :volume_count


      #
      # Mapper for BandwidthSetting class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'BandwidthSetting',
          type: {
            name: 'Composite',
            class_name: 'BandwidthSetting',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              kind: {
                client_side_validation: true,
                required: false,
                serialized_name: 'kind',
                type: {
                  name: 'Enum',
                  module: 'Kind'
                }
              },
              schedules: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.schedules',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'BandwidthScheduleElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'BandwidthSchedule'
                      }
                  }
                }
              },
              volume_count: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.volumeCount',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
