# 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
    #
    # Json write settings.
    #
    class JsonWriteSettings < FormatWriteSettings

      include MsRestAzure


      def initialize
        @type = "JsonWriteSettings"
      end

      attr_accessor :type

      # @return [JsonWriteFilePattern] File pattern of JSON. This setting
      # controls the way a collection of JSON objects will be treated. The
      # default value is 'setOfObjects'. It is case-sensitive. Possible values
      # include: 'setOfObjects', 'arrayOfObjects'
      attr_accessor :file_pattern


      #
      # Mapper for JsonWriteSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JsonWriteSettings',
          type: {
            name: 'Composite',
            class_name: 'JsonWriteSettings',
            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'
                      }
                  }
                }
              },
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              file_pattern: {
                client_side_validation: true,
                required: false,
                serialized_name: 'filePattern',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
