public KinesisFlowSettings WithBackoffStrategy(RetryBackoffStrategy backoffStrategy) => new KinesisFlowSettings( parallelism: this.Parallelism, maxBatchSize: this.MaxBatchSize, backoffStrategy: backoffStrategy, retryInitialTimeout: this.RetryInitialTimeout, maxRecordsPerSecond: this.MaxRecordsPerSecond, maxBytesPerSecond: this.MaxBytesPerSecond, maxRetries: this.MaxRetries);
public KinesisFlowSettings( int parallelism, int maxBatchSize, RetryBackoffStrategy backoffStrategy, TimeSpan retryInitialTimeout, int maxRecordsPerSecond, int maxBytesPerSecond, int maxRetries) { Parallelism = parallelism; MaxBatchSize = maxBatchSize; BackoffStrategy = backoffStrategy; MaxRecordsPerSecond = maxRecordsPerSecond; MaxBytesPerSecond = maxBytesPerSecond; MaxRetries = maxRetries; RetryInitialTimeout = retryInitialTimeout; }