# 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 RetryPolicy

      include MsRestAzure

      # @return [RetryType] Gets or sets the retry strategy to be used.
      # Possible values include: 'None', 'Fixed'
      attr_accessor :retry_type

      # @return [Duration] Gets or sets the retry interval between retries,
      # specify duration in ISO 8601 format.
      attr_accessor :retry_interval

      # @return [Integer] Gets or sets the number of times a retry should be
      # attempted.
      attr_accessor :retry_count


      #
      # Mapper for RetryPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RetryPolicy',
          type: {
            name: 'Composite',
            class_name: 'RetryPolicy',
            model_properties: {
              retry_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retryType',
                type: {
                  name: 'Enum',
                  module: 'RetryType'
                }
              },
              retry_interval: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retryInterval',
                type: {
                  name: 'TimeSpan'
                }
              },
              retry_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retryCount',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
