AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdatePipeSourceKinesisStreamParameters.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/pipes/model/DeadLetterConfig.h>
9#include <aws/pipes/model/OnPartialBatchItemFailureStreams.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pipes
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PIPES_API UpdatePipeSourceKinesisStreamParameters() = default;
39 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetBatchSize() const { return m_batchSize; }
47 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
48 inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
49 inline UpdatePipeSourceKinesisStreamParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;}
51
53
56 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
57 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
58 template<typename DeadLetterConfigT = DeadLetterConfig>
59 void SetDeadLetterConfig(DeadLetterConfigT&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::forward<DeadLetterConfigT>(value); }
60 template<typename DeadLetterConfigT = DeadLetterConfig>
61 UpdatePipeSourceKinesisStreamParameters& WithDeadLetterConfig(DeadLetterConfigT&& value) { SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value)); return *this;}
63
65
70 inline OnPartialBatchItemFailureStreams GetOnPartialBatchItemFailure() const { return m_onPartialBatchItemFailure; }
71 inline bool OnPartialBatchItemFailureHasBeenSet() const { return m_onPartialBatchItemFailureHasBeenSet; }
72 inline void SetOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams value) { m_onPartialBatchItemFailureHasBeenSet = true; m_onPartialBatchItemFailure = value; }
75
77
80 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
81 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
82 inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
85
87
92 inline int GetMaximumRecordAgeInSeconds() const { return m_maximumRecordAgeInSeconds; }
93 inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
94 inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; }
97
99
105 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
106 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
107 inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
110
112
116 inline int GetParallelizationFactor() const { return m_parallelizationFactor; }
117 inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
118 inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; }
121 private:
122
123 int m_batchSize{0};
124 bool m_batchSizeHasBeenSet = false;
125
126 DeadLetterConfig m_deadLetterConfig;
127 bool m_deadLetterConfigHasBeenSet = false;
128
130 bool m_onPartialBatchItemFailureHasBeenSet = false;
131
132 int m_maximumBatchingWindowInSeconds{0};
133 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
134
135 int m_maximumRecordAgeInSeconds{0};
136 bool m_maximumRecordAgeInSecondsHasBeenSet = false;
137
138 int m_maximumRetryAttempts{0};
139 bool m_maximumRetryAttemptsHasBeenSet = false;
140
141 int m_parallelizationFactor{0};
142 bool m_parallelizationFactorHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace Pipes
147} // namespace Aws
UpdatePipeSourceKinesisStreamParameters & WithMaximumBatchingWindowInSeconds(int value)
UpdatePipeSourceKinesisStreamParameters & WithParallelizationFactor(int value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PIPES_API UpdatePipeSourceKinesisStreamParameters(Aws::Utils::Json::JsonView jsonValue)
AWS_PIPES_API UpdatePipeSourceKinesisStreamParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdatePipeSourceKinesisStreamParameters & WithOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams value)
UpdatePipeSourceKinesisStreamParameters & WithMaximumRecordAgeInSeconds(int value)
UpdatePipeSourceKinesisStreamParameters & WithDeadLetterConfig(DeadLetterConfigT &&value)
UpdatePipeSourceKinesisStreamParameters & WithMaximumRetryAttempts(int value)
Aws::Utils::Json::JsonValue JsonValue