# 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::CostManagement::Mgmt::V2018_05_31
  module Models
    #
    # The schedule associated with a report config.
    #
    class ReportConfigSchedule

      include MsRestAzure

      # @return [StatusType] The status of the schedule. Whether active or not.
      # If inactive, the report's scheduled execution is paused. Possible
      # values include: 'Active', 'Inactive'
      attr_accessor :status

      # @return [RecurrenceType] The schedule recurrence. Possible values
      # include: 'Daily', 'Weekly', 'Monthly', 'Annually'
      attr_accessor :recurrence

      # @return [ReportConfigRecurrencePeriod] Has start and end date of the
      # recurrence. The start date must be in future. If present, the end date
      # must be greater than start date.
      attr_accessor :recurrence_period


      #
      # Mapper for ReportConfigSchedule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReportConfigSchedule',
          type: {
            name: 'Composite',
            class_name: 'ReportConfigSchedule',
            model_properties: {
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              recurrence: {
                client_side_validation: true,
                required: true,
                serialized_name: 'recurrence',
                type: {
                  name: 'String'
                }
              },
              recurrence_period: {
                client_side_validation: true,
                required: true,
                serialized_name: 'recurrencePeriod',
                type: {
                  name: 'Composite',
                  class_name: 'ReportConfigRecurrencePeriod'
                }
              }
            }
          }
        }
      end
    end
  end
end
