AWS SDK for C++

AWS SDK for C++ Version 1.11.881

Loading...
Searching...
No Matches
InfluxDBBatchConfig.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace IoT {
17namespace Model {
18
27 public:
28 AWS_IOT_API InfluxDBBatchConfig() = default;
32
34
39 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
40 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
41 inline void SetMaxBatchSize(int value) {
42 m_maxBatchSizeHasBeenSet = true;
43 m_maxBatchSize = value;
44 }
46 SetMaxBatchSize(value);
47 return *this;
48 }
50
52
57 inline int GetMaxBatchOpenMs() const { return m_maxBatchOpenMs; }
58 inline bool MaxBatchOpenMsHasBeenSet() const { return m_maxBatchOpenMsHasBeenSet; }
59 inline void SetMaxBatchOpenMs(int value) {
60 m_maxBatchOpenMsHasBeenSet = true;
61 m_maxBatchOpenMs = value;
62 }
64 SetMaxBatchOpenMs(value);
65 return *this;
66 }
68
70
75 inline int GetMaxBatchSizeBytes() const { return m_maxBatchSizeBytes; }
76 inline bool MaxBatchSizeBytesHasBeenSet() const { return m_maxBatchSizeBytesHasBeenSet; }
77 inline void SetMaxBatchSizeBytes(int value) {
78 m_maxBatchSizeBytesHasBeenSet = true;
79 m_maxBatchSizeBytes = value;
80 }
83 return *this;
84 }
86
88
93 inline bool GetBatchAcrossTopics() const { return m_batchAcrossTopics; }
94 inline bool BatchAcrossTopicsHasBeenSet() const { return m_batchAcrossTopicsHasBeenSet; }
95 inline void SetBatchAcrossTopics(bool value) {
96 m_batchAcrossTopicsHasBeenSet = true;
97 m_batchAcrossTopics = value;
98 }
101 return *this;
102 }
104 private:
105 int m_maxBatchSize{0};
106
107 int m_maxBatchOpenMs{0};
108
109 int m_maxBatchSizeBytes{0};
110
111 bool m_batchAcrossTopics{false};
112 bool m_maxBatchSizeHasBeenSet = false;
113 bool m_maxBatchOpenMsHasBeenSet = false;
114 bool m_maxBatchSizeBytesHasBeenSet = false;
115 bool m_batchAcrossTopicsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace IoT
120} // namespace Aws
AWS_IOT_API InfluxDBBatchConfig()=default
AWS_IOT_API InfluxDBBatchConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
InfluxDBBatchConfig & WithBatchAcrossTopics(bool value)
InfluxDBBatchConfig & WithMaxBatchOpenMs(int value)
InfluxDBBatchConfig & WithMaxBatchSizeBytes(int value)
AWS_IOT_API InfluxDBBatchConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InfluxDBBatchConfig & WithMaxBatchSize(int value)
Aws::Utils::Json::JsonValue JsonValue