setConfig method

Future<void> setConfig(
  1. DataWedgeProfileConfiguration configuration, {
  2. String? commandTag,
  3. bool requestResult = true,
})

Applies a full profile configuration to DataWedge.

configuration is a DataWedgeProfileConfiguration object that defines the complete profile settings including plugins, app associations, etc. Use DataWedgeProfileBuilder to construct the configuration.

Implementation

Future<void> setConfig(
  DataWedgeProfileConfiguration configuration, {
  String? commandTag,
  bool requestResult = true,
}) {
  return sendCommandBundle(
    command: DataWedgeApi.setConfig,
    value: configuration.toMap(),
    commandTag: commandTag ?? 'SET_CONFIG_${configuration.profileName}',
    requestResult: requestResult,
  );
}