# 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::ADHybridHealthService::Mgmt::V2014_01_01
  module Models
    #
    # The attribute mapping details.
    #
    class AttributeMapping

      include MsRestAzure

      # @return [AttributeMppingSource] The mapping source.
      attr_accessor :mapping_source

      # @return [AttributeMappingType] The attribute mapping type. Possible
      # values include: 'Constant', 'Direct', 'DnPart', 'Script'
      attr_accessor :type

      # @return [String] The destination attribute.
      attr_accessor :destination_attribute

      # @return [String] The context Id.
      attr_accessor :context_id


      #
      # Mapper for AttributeMapping class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AttributeMapping',
          type: {
            name: 'Composite',
            class_name: 'AttributeMapping',
            model_properties: {
              mapping_source: {
                client_side_validation: true,
                required: false,
                serialized_name: 'mappingSource',
                type: {
                  name: 'Composite',
                  class_name: 'AttributeMppingSource'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              destination_attribute: {
                client_side_validation: true,
                required: false,
                serialized_name: 'destinationAttribute',
                type: {
                  name: 'String'
                }
              },
              context_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'contextId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
