copyWith method
IForeventsAPIConfig
copyWith(
{ - String? projectKey,
- String? projectSecret,
- String? baseUrl,
- int? batchSize,
- int? batchIntervalMs,
- int? connectTimeoutMs,
- int? receiveTimeoutMs,
- int? sendTimeoutMs,
- bool? enableRetry,
- int? maxRetries,
- int? retryDelayMs,
- bool? enableLogging,
- bool? throwOnError,
- bool? requeueFailedEvents,
})
Implementation
IForeventsAPIConfig copyWith({
String? projectKey,
String? projectSecret,
String? baseUrl,
int? batchSize,
int? batchIntervalMs,
int? connectTimeoutMs,
int? receiveTimeoutMs,
int? sendTimeoutMs,
bool? enableRetry,
int? maxRetries,
int? retryDelayMs,
bool? enableLogging,
bool? throwOnError,
bool? requeueFailedEvents,
}) {
return IForeventsAPIConfig(
projectKey: projectKey ?? this.projectKey,
projectSecret: projectSecret ?? this.projectSecret,
baseUrl: baseUrl ?? this.baseUrl,
batchSize: batchSize ?? this.batchSize,
batchIntervalMs: batchIntervalMs ?? this.batchIntervalMs,
connectTimeoutMs: connectTimeoutMs ?? this.connectTimeoutMs,
receiveTimeoutMs: receiveTimeoutMs ?? this.receiveTimeoutMs,
sendTimeoutMs: sendTimeoutMs ?? this.sendTimeoutMs,
enableRetry: enableRetry ?? this.enableRetry,
maxRetries: maxRetries ?? this.maxRetries,
retryDelayMs: retryDelayMs ?? this.retryDelayMs,
enableLogging: enableLogging ?? this.enableLogging,
throwOnError: throwOnError ?? this.throwOnError,
requeueFailedEvents: requeueFailedEvents ?? this.requeueFailedEvents,
);
}