/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the buffering options that can be applied before data is delivered
* to the HTTP endpoint destination. Kinesis Data Firehose treats these options as
* hints, and it might choose to use more optimal values. The
* SizeInMBs
and IntervalInSeconds
parameters are
* optional. However, if specify a value for one of them, you must also provide a
* value for the other. See Also:
AWS
* API Reference
Buffer incoming data to the specified size, in MBs, before delivering it to * the destination. The default value is 5.
We recommend setting this * parameter to a value greater than the amount of data you typically ingest into * the delivery stream in 10 seconds. For example, if you typically ingest data at * 1 MB/sec, the value should be 10 MB or higher.
*/ inline int GetSizeInMBs() const{ return m_sizeInMBs; } /** *Buffer incoming data to the specified size, in MBs, before delivering it to * the destination. The default value is 5.
We recommend setting this * parameter to a value greater than the amount of data you typically ingest into * the delivery stream in 10 seconds. For example, if you typically ingest data at * 1 MB/sec, the value should be 10 MB or higher.
*/ inline bool SizeInMBsHasBeenSet() const { return m_sizeInMBsHasBeenSet; } /** *Buffer incoming data to the specified size, in MBs, before delivering it to * the destination. The default value is 5.
We recommend setting this * parameter to a value greater than the amount of data you typically ingest into * the delivery stream in 10 seconds. For example, if you typically ingest data at * 1 MB/sec, the value should be 10 MB or higher.
*/ inline void SetSizeInMBs(int value) { m_sizeInMBsHasBeenSet = true; m_sizeInMBs = value; } /** *Buffer incoming data to the specified size, in MBs, before delivering it to * the destination. The default value is 5.
We recommend setting this * parameter to a value greater than the amount of data you typically ingest into * the delivery stream in 10 seconds. For example, if you typically ingest data at * 1 MB/sec, the value should be 10 MB or higher.
*/ inline HttpEndpointBufferingHints& WithSizeInMBs(int value) { SetSizeInMBs(value); return *this;} /** *Buffer incoming data for the specified period of time, in seconds, before * delivering it to the destination. The default value is 300 (5 minutes).
*/ inline int GetIntervalInSeconds() const{ return m_intervalInSeconds; } /** *Buffer incoming data for the specified period of time, in seconds, before * delivering it to the destination. The default value is 300 (5 minutes).
*/ inline bool IntervalInSecondsHasBeenSet() const { return m_intervalInSecondsHasBeenSet; } /** *Buffer incoming data for the specified period of time, in seconds, before * delivering it to the destination. The default value is 300 (5 minutes).
*/ inline void SetIntervalInSeconds(int value) { m_intervalInSecondsHasBeenSet = true; m_intervalInSeconds = value; } /** *Buffer incoming data for the specified period of time, in seconds, before * delivering it to the destination. The default value is 300 (5 minutes).
*/ inline HttpEndpointBufferingHints& WithIntervalInSeconds(int value) { SetIntervalInSeconds(value); return *this;} private: int m_sizeInMBs; bool m_sizeInMBsHasBeenSet; int m_intervalInSeconds; bool m_intervalInSecondsHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws