AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
BatchConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace EventBridgeV2 {
17namespace Model {
18
25 public:
26 AWS_EVENTBRIDGEV2_API BatchConfiguration() = default;
27 AWS_EVENTBRIDGEV2_API BatchConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
28 AWS_EVENTBRIDGEV2_API BatchConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
30
32
40 inline int64_t GetMaxBatchSize() const { return m_maxBatchSize; }
41 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
42 inline void SetMaxBatchSize(int64_t value) {
43 m_maxBatchSizeHasBeenSet = true;
44 m_maxBatchSize = value;
45 }
46 inline BatchConfiguration& WithMaxBatchSize(int64_t value) {
47 SetMaxBatchSize(value);
48 return *this;
49 }
51
53
60 inline int64_t GetMaxBatchWindowInSeconds() const { return m_maxBatchWindowInSeconds; }
61 inline bool MaxBatchWindowInSecondsHasBeenSet() const { return m_maxBatchWindowInSecondsHasBeenSet; }
62 inline void SetMaxBatchWindowInSeconds(int64_t value) {
63 m_maxBatchWindowInSecondsHasBeenSet = true;
64 m_maxBatchWindowInSeconds = value;
65 }
68 return *this;
69 }
71 private:
72 int64_t m_maxBatchSize{0};
73
74 int64_t m_maxBatchWindowInSeconds{0};
75 bool m_maxBatchSizeHasBeenSet = false;
76 bool m_maxBatchWindowInSecondsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EventBridgeV2
81} // namespace Aws
AWS_EVENTBRIDGEV2_API BatchConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
BatchConfiguration & WithMaxBatchWindowInSeconds(int64_t value)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
BatchConfiguration & WithMaxBatchSize(int64_t value)
AWS_EVENTBRIDGEV2_API BatchConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API BatchConfiguration()=default