# 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::ServiceFabric::V6_4_0_36
  module Models
    #
    # Describes the frequency based backup schedule.
    #
    class FrequencyBasedBackupScheduleDescription < BackupScheduleDescription

      include MsRestAzure


      def initialize
        @ScheduleKind = "FrequencyBased"
      end

      attr_accessor :ScheduleKind

      # @return [Duration] Defines the interval with which backups are
      # periodically taken. It should be specified in ISO8601 format. Timespan
      # in seconds is not supported and will be ignored while creating the
      # policy.
      attr_accessor :interval


      #
      # Mapper for FrequencyBasedBackupScheduleDescription class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'FrequencyBased',
          type: {
            name: 'Composite',
            class_name: 'FrequencyBasedBackupScheduleDescription',
            model_properties: {
              ScheduleKind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ScheduleKind',
                type: {
                  name: 'String'
                }
              },
              interval: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Interval',
                type: {
                  name: 'TimeSpan'
                }
              }
            }
          }
        }
      end
    end
  end
end
