# 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::SQL::Mgmt::V2017_10_01_preview
  module Models
    #
    # Pairs of Managed Instances in the failover group.
    #
    class ManagedInstancePairInfo

      include MsRestAzure

      # @return [String] Id of Primary Managed Instance in pair.
      attr_accessor :primary_managed_instance_id

      # @return [String] Id of Partner Managed Instance in pair.
      attr_accessor :partner_managed_instance_id


      #
      # Mapper for ManagedInstancePairInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedInstancePairInfo',
          type: {
            name: 'Composite',
            class_name: 'ManagedInstancePairInfo',
            model_properties: {
              primary_managed_instance_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'primaryManagedInstanceId',
                type: {
                  name: 'String'
                }
              },
              partner_managed_instance_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'partnerManagedInstanceId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
