# 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 start and end date for recurrence schedule.
    #
    class ReportConfigRecurrencePeriod

      include MsRestAzure

      # @return [DateTime] The start date of recurrence.
      attr_accessor :from

      # @return [DateTime] The end date of recurrence. If not provided, we
      # default this to 10 years from the start date.
      attr_accessor :to


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