# 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::V2019_01_01
  module Models
    #
    # The schedule associated with a export.
    #
    class ExportSchedule

      include MsRestAzure

      # @return [StatusType] The status of the schedule. Whether active or not.
      # If inactive, the export'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 [ExportRecurrencePeriod] 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 ExportSchedule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ExportSchedule',
          type: {
            name: 'Composite',
            class_name: 'ExportSchedule',
            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: false,
                serialized_name: 'recurrencePeriod',
                type: {
                  name: 'Composite',
                  class_name: 'ExportRecurrencePeriod'
                }
              }
            }
          }
        }
      end
    end
  end
end
