# 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::DataFactory::Mgmt::V2018_06_01
  module Models
    #
    # Execution policy for an activity.
    #
    class RetryPolicy

      include MsRestAzure

      # @return Maximum ordinary retry attempts. Default is 0. Type: integer
      # (or Expression with resultType integer), minimum: 0.
      attr_accessor :count

      # @return [Integer] Interval between retries in seconds. Default is 30.
      attr_accessor :interval_in_seconds


      #
      # 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: {
              count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'count',
                type: {
                  name: 'Object'
                }
              },
              interval_in_seconds: {
                client_side_validation: true,
                required: false,
                serialized_name: 'intervalInSeconds',
                constraints: {
                  InclusiveMaximum: 86400,
                  InclusiveMinimum: 30
                },
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
