     }
     
     /**
+     Sets configuration variables to the global config
+     - parameter variables: An array of configuration enums
+     */
+    public func set(_ variables: [GlobalConfigProperty]) throws {
+        let _ = try variables.map({ try set($0) })
+    }
+
+    /**
      Sets a value to a configuration variable
      - parameter variable: A configuration enum variable
      */


import ckafka

/// A struct used for creating and manipulating global Kafka
/// configurations
public struct GlobalConfig {
    
    // MARK: - Public Properties
    

    init(byDiplicatingConfig config: GlobalConfig? = nil) throws {
        
        if let config = config {
            handle = rd_kafka_conf_dup(config.handle)
        } else {
            handle = rd_kafka_conf_new()
        }
        
    }
