AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchConfig.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
25 public:
26 AWS_IOT_API BatchConfig() = default;
30
32
37 inline int GetMaxBatchOpenMs() const { return m_maxBatchOpenMs; }
38 inline bool MaxBatchOpenMsHasBeenSet() const { return m_maxBatchOpenMsHasBeenSet; }
39 inline void SetMaxBatchOpenMs(int value) {
40 m_maxBatchOpenMsHasBeenSet = true;
41 m_maxBatchOpenMs = value;
42 }
43 inline BatchConfig& WithMaxBatchOpenMs(int value) {
44 SetMaxBatchOpenMs(value);
45 return *this;
46 }
48
50
54 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
55 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
56 inline void SetMaxBatchSize(int value) {
57 m_maxBatchSizeHasBeenSet = true;
58 m_maxBatchSize = value;
59 }
60 inline BatchConfig& WithMaxBatchSize(int value) {
61 SetMaxBatchSize(value);
62 return *this;
63 }
65
67
70 inline int GetMaxBatchSizeBytes() const { return m_maxBatchSizeBytes; }
71 inline bool MaxBatchSizeBytesHasBeenSet() const { return m_maxBatchSizeBytesHasBeenSet; }
72 inline void SetMaxBatchSizeBytes(int value) {
73 m_maxBatchSizeBytesHasBeenSet = true;
74 m_maxBatchSizeBytes = value;
75 }
78 return *this;
79 }
81 private:
82 int m_maxBatchOpenMs{0};
83
84 int m_maxBatchSize{0};
85
86 int m_maxBatchSizeBytes{0};
87 bool m_maxBatchOpenMsHasBeenSet = false;
88 bool m_maxBatchSizeHasBeenSet = false;
89 bool m_maxBatchSizeBytesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace IoT
94} // namespace Aws
void SetMaxBatchSizeBytes(int value)
Definition BatchConfig.h:72
bool MaxBatchOpenMsHasBeenSet() const
Definition BatchConfig.h:38
void SetMaxBatchOpenMs(int value)
Definition BatchConfig.h:39
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API BatchConfig()=default
BatchConfig & WithMaxBatchOpenMs(int value)
Definition BatchConfig.h:43
AWS_IOT_API BatchConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchConfig & WithMaxBatchSizeBytes(int value)
Definition BatchConfig.h:76
void SetMaxBatchSize(int value)
Definition BatchConfig.h:56
BatchConfig & WithMaxBatchSize(int value)
Definition BatchConfig.h:60
bool MaxBatchSizeBytesHasBeenSet() const
Definition BatchConfig.h:71
AWS_IOT_API BatchConfig(Aws::Utils::Json::JsonView jsonValue)
bool MaxBatchSizeHasBeenSet() const
Definition BatchConfig.h:55
Aws::Utils::Json::JsonValue JsonValue