# 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
    #
    # Connector write settings.
    #
    class StoreWriteSettings

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["AzureFileStorageWriteSettings"] = "AzureFileStorageWriteSettings"
      @@discriminatorMap["FileServerWriteSettings"] = "FileServerWriteSettings"
      @@discriminatorMap["AzureDataLakeStoreWriteSettings"] = "AzureDataLakeStoreWriteSettings"
      @@discriminatorMap["AzureBlobFSWriteSettings"] = "AzureBlobFSWriteSettings"
      @@discriminatorMap["AzureBlobStorageWriteSettings"] = "AzureBlobStorageWriteSettings"
      @@discriminatorMap["SftpWriteSettings"] = "SftpWriteSettings"

      def initialize
        @type = "StoreWriteSettings"
      end

      attr_accessor :type

      # @return Unmatched properties from the message are deserialized this
      # collection
      attr_accessor :additional_properties

      # @return The maximum concurrent connection count for the source data
      # store. Type: integer (or Expression with resultType integer).
      attr_accessor :max_concurrent_connections

      # @return The type of copy behavior for copy sink.
      attr_accessor :copy_behavior


      #
      # Mapper for StoreWriteSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'StoreWriteSettings',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'StoreWriteSettings',
            class_name: 'StoreWriteSettings',
            model_properties: {
              additional_properties: {
                client_side_validation: true,
                required: false,
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ObjectElementType',
                      type: {
                        name: 'Object'
                      }
                  }
                }
              },
              max_concurrent_connections: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxConcurrentConnections',
                type: {
                  name: 'Object'
                }
              },
              copy_behavior: {
                client_side_validation: true,
                required: false,
                serialized_name: 'copyBehavior',
                type: {
                  name: 'Object'
                }
              }
            }
          }
        }
      end
    end
  end
end
