/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Configures retry behavior in case Kinesis Data Firehose is unable to deliver
* documents to Amazon OpenSearch Service. See Also:
AWS
* API Reference
After an initial failure to deliver to Amazon OpenSearch Service, the total * amount of time during which Kinesis Data Firehose retries delivery (including * the first attempt). After this time has elapsed, the failed documents are * written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 * (zero) results in no retries.
*/ inline int GetDurationInSeconds() const{ return m_durationInSeconds; } /** *After an initial failure to deliver to Amazon OpenSearch Service, the total * amount of time during which Kinesis Data Firehose retries delivery (including * the first attempt). After this time has elapsed, the failed documents are * written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 * (zero) results in no retries.
*/ inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; } /** *After an initial failure to deliver to Amazon OpenSearch Service, the total * amount of time during which Kinesis Data Firehose retries delivery (including * the first attempt). After this time has elapsed, the failed documents are * written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 * (zero) results in no retries.
*/ inline void SetDurationInSeconds(int value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; } /** *After an initial failure to deliver to Amazon OpenSearch Service, the total * amount of time during which Kinesis Data Firehose retries delivery (including * the first attempt). After this time has elapsed, the failed documents are * written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 * (zero) results in no retries.
*/ inline AmazonopensearchserviceRetryOptions& WithDurationInSeconds(int value) { SetDurationInSeconds(value); return *this;} private: int m_durationInSeconds; bool m_durationInSecondsHasBeenSet = false; }; } // namespace Model } // namespace Firehose } // namespace Aws