# 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::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
  module Models
    #
    # Provider specific input for InMage failover.
    #
    class InMageFailoverProviderInput < ProviderSpecificFailoverInput

      include MsRestAzure


      def initialize
        @instanceType = "InMage"
      end

      attr_accessor :instanceType

      # @return [RecoveryPointType] The recovery point type. Values from
      # LatestTime, LatestTag or Custom. In the case of custom, the recovery
      # point provided by RecoveryPointId will be used. In the other two cases,
      # recovery point id will be ignored. Possible values include:
      # 'LatestTime', 'LatestTag', 'Custom'
      attr_accessor :recovery_point_type

      # @return [String] The recovery point id to be passed to failover to a
      # particular recovery point. In case of latest recovery point, null
      # should be passed.
      attr_accessor :recovery_point_id


      #
      # Mapper for InMageFailoverProviderInput class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'InMage',
          type: {
            name: 'Composite',
            class_name: 'InMageFailoverProviderInput',
            model_properties: {
              instanceType: {
                client_side_validation: true,
                required: true,
                serialized_name: 'instanceType',
                type: {
                  name: 'String'
                }
              },
              recovery_point_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recoveryPointType',
                type: {
                  name: 'Enum',
                  module: 'RecoveryPointType'
                }
              },
              recovery_point_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recoveryPointId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
