# 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::Scheduler::Mgmt::V2016_03_01
  module Models
    #
    # Model object.
    #
    #
    class JobRecurrenceScheduleMonthlyOccurrence

      include MsRestAzure

      # @return [JobScheduleDay] Gets or sets the day. Must be one of monday,
      # tuesday, wednesday, thursday, friday, saturday, sunday. Possible values
      # include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
      # 'Saturday', 'Sunday'
      attr_accessor :day

      # @return [Integer] Gets or sets the occurrence. Must be between -5 and
      # 5.
      attr_accessor :occurrence


      #
      # Mapper for JobRecurrenceScheduleMonthlyOccurrence class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JobRecurrenceScheduleMonthlyOccurrence',
          type: {
            name: 'Composite',
            class_name: 'JobRecurrenceScheduleMonthlyOccurrence',
            model_properties: {
              day: {
                client_side_validation: true,
                required: false,
                serialized_name: 'day',
                type: {
                  name: 'Enum',
                  module: 'JobScheduleDay'
                }
              },
              occurrence: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Occurrence',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
