AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
DescribeConnectorOperationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
13#include <aws/kafkaconnect/model/ConnectorOperationState.h>
14#include <aws/kafkaconnect/model/ConnectorOperationStep.h>
15#include <aws/kafkaconnect/model/ConnectorOperationType.h>
16#include <aws/kafkaconnect/model/StateDescription.h>
17#include <aws/kafkaconnect/model/WorkerSetting.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace KafkaConnect {
31namespace Model {
33 public:
34 AWS_KAFKACONNECT_API DescribeConnectorOperationResult() = default;
37
39
42 inline const Aws::String& GetConnectorArn() const { return m_connectorArn; }
43 template <typename ConnectorArnT = Aws::String>
44 void SetConnectorArn(ConnectorArnT&& value) {
45 m_connectorArnHasBeenSet = true;
46 m_connectorArn = std::forward<ConnectorArnT>(value);
47 }
48 template <typename ConnectorArnT = Aws::String>
50 SetConnectorArn(std::forward<ConnectorArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetConnectorOperationArn() const { return m_connectorOperationArn; }
60 template <typename ConnectorOperationArnT = Aws::String>
61 void SetConnectorOperationArn(ConnectorOperationArnT&& value) {
62 m_connectorOperationArnHasBeenSet = true;
63 m_connectorOperationArn = std::forward<ConnectorOperationArnT>(value);
64 }
65 template <typename ConnectorOperationArnT = Aws::String>
67 SetConnectorOperationArn(std::forward<ConnectorOperationArnT>(value));
68 return *this;
69 }
71
73
76 inline ConnectorOperationState GetConnectorOperationState() const { return m_connectorOperationState; }
78 m_connectorOperationStateHasBeenSet = true;
79 m_connectorOperationState = value;
80 }
83 return *this;
84 }
86
88
91 inline ConnectorOperationType GetConnectorOperationType() const { return m_connectorOperationType; }
93 m_connectorOperationTypeHasBeenSet = true;
94 m_connectorOperationType = value;
95 }
98 return *this;
99 }
101
103
106 inline const Aws::Vector<ConnectorOperationStep>& GetOperationSteps() const { return m_operationSteps; }
107 template <typename OperationStepsT = Aws::Vector<ConnectorOperationStep>>
108 void SetOperationSteps(OperationStepsT&& value) {
109 m_operationStepsHasBeenSet = true;
110 m_operationSteps = std::forward<OperationStepsT>(value);
111 }
112 template <typename OperationStepsT = Aws::Vector<ConnectorOperationStep>>
114 SetOperationSteps(std::forward<OperationStepsT>(value));
115 return *this;
116 }
117 template <typename OperationStepsT = ConnectorOperationStep>
119 m_operationStepsHasBeenSet = true;
120 m_operationSteps.emplace_back(std::forward<OperationStepsT>(value));
121 return *this;
122 }
124
126
129 inline const WorkerSetting& GetOriginWorkerSetting() const { return m_originWorkerSetting; }
130 template <typename OriginWorkerSettingT = WorkerSetting>
131 void SetOriginWorkerSetting(OriginWorkerSettingT&& value) {
132 m_originWorkerSettingHasBeenSet = true;
133 m_originWorkerSetting = std::forward<OriginWorkerSettingT>(value);
134 }
135 template <typename OriginWorkerSettingT = WorkerSetting>
137 SetOriginWorkerSetting(std::forward<OriginWorkerSettingT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Map<Aws::String, Aws::String>& GetOriginConnectorConfiguration() const { return m_originConnectorConfiguration; }
147 template <typename OriginConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
148 void SetOriginConnectorConfiguration(OriginConnectorConfigurationT&& value) {
149 m_originConnectorConfigurationHasBeenSet = true;
150 m_originConnectorConfiguration = std::forward<OriginConnectorConfigurationT>(value);
151 }
152 template <typename OriginConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
154 SetOriginConnectorConfiguration(std::forward<OriginConnectorConfigurationT>(value));
155 return *this;
156 }
157 template <typename OriginConnectorConfigurationKeyT = Aws::String, typename OriginConnectorConfigurationValueT = Aws::String>
159 OriginConnectorConfigurationValueT&& value) {
160 m_originConnectorConfigurationHasBeenSet = true;
161 m_originConnectorConfiguration.emplace(std::forward<OriginConnectorConfigurationKeyT>(key),
162 std::forward<OriginConnectorConfigurationValueT>(value));
163 return *this;
164 }
166
168
171 inline const WorkerSetting& GetTargetWorkerSetting() const { return m_targetWorkerSetting; }
172 template <typename TargetWorkerSettingT = WorkerSetting>
173 void SetTargetWorkerSetting(TargetWorkerSettingT&& value) {
174 m_targetWorkerSettingHasBeenSet = true;
175 m_targetWorkerSetting = std::forward<TargetWorkerSettingT>(value);
176 }
177 template <typename TargetWorkerSettingT = WorkerSetting>
179 SetTargetWorkerSetting(std::forward<TargetWorkerSettingT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetTargetConnectorConfiguration() const { return m_targetConnectorConfiguration; }
189 template <typename TargetConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
190 void SetTargetConnectorConfiguration(TargetConnectorConfigurationT&& value) {
191 m_targetConnectorConfigurationHasBeenSet = true;
192 m_targetConnectorConfiguration = std::forward<TargetConnectorConfigurationT>(value);
193 }
194 template <typename TargetConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
196 SetTargetConnectorConfiguration(std::forward<TargetConnectorConfigurationT>(value));
197 return *this;
198 }
199 template <typename TargetConnectorConfigurationKeyT = Aws::String, typename TargetConnectorConfigurationValueT = Aws::String>
201 TargetConnectorConfigurationValueT&& value) {
202 m_targetConnectorConfigurationHasBeenSet = true;
203 m_targetConnectorConfiguration.emplace(std::forward<TargetConnectorConfigurationKeyT>(key),
204 std::forward<TargetConnectorConfigurationValueT>(value));
205 return *this;
206 }
208
210
211 inline const StateDescription& GetErrorInfo() const { return m_errorInfo; }
212 template <typename ErrorInfoT = StateDescription>
213 void SetErrorInfo(ErrorInfoT&& value) {
214 m_errorInfoHasBeenSet = true;
215 m_errorInfo = std::forward<ErrorInfoT>(value);
216 }
217 template <typename ErrorInfoT = StateDescription>
219 SetErrorInfo(std::forward<ErrorInfoT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
229 template <typename CreationTimeT = Aws::Utils::DateTime>
230 void SetCreationTime(CreationTimeT&& value) {
231 m_creationTimeHasBeenSet = true;
232 m_creationTime = std::forward<CreationTimeT>(value);
233 }
234 template <typename CreationTimeT = Aws::Utils::DateTime>
236 SetCreationTime(std::forward<CreationTimeT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
246 template <typename EndTimeT = Aws::Utils::DateTime>
247 void SetEndTime(EndTimeT&& value) {
248 m_endTimeHasBeenSet = true;
249 m_endTime = std::forward<EndTimeT>(value);
250 }
251 template <typename EndTimeT = Aws::Utils::DateTime>
253 SetEndTime(std::forward<EndTimeT>(value));
254 return *this;
255 }
257
259
260 inline const Aws::String& GetRequestId() const { return m_requestId; }
261 template <typename RequestIdT = Aws::String>
262 void SetRequestId(RequestIdT&& value) {
263 m_requestIdHasBeenSet = true;
264 m_requestId = std::forward<RequestIdT>(value);
265 }
266 template <typename RequestIdT = Aws::String>
268 SetRequestId(std::forward<RequestIdT>(value));
269 return *this;
270 }
272 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
273
274 private:
275 Aws::String m_connectorArn;
276
277 Aws::String m_connectorOperationArn;
278
280
282
284
285 WorkerSetting m_originWorkerSetting;
286
287 Aws::Map<Aws::String, Aws::String> m_originConnectorConfiguration;
288
289 WorkerSetting m_targetWorkerSetting;
290
291 Aws::Map<Aws::String, Aws::String> m_targetConnectorConfiguration;
292
293 StateDescription m_errorInfo;
294
295 Aws::Utils::DateTime m_creationTime{};
296
297 Aws::Utils::DateTime m_endTime{};
298
299 Aws::String m_requestId;
300 Aws::Http::HttpResponseCode m_HttpResponseCode;
301 bool m_connectorArnHasBeenSet = false;
302 bool m_connectorOperationArnHasBeenSet = false;
303 bool m_connectorOperationStateHasBeenSet = false;
304 bool m_connectorOperationTypeHasBeenSet = false;
305 bool m_operationStepsHasBeenSet = false;
306 bool m_originWorkerSettingHasBeenSet = false;
307 bool m_originConnectorConfigurationHasBeenSet = false;
308 bool m_targetWorkerSettingHasBeenSet = false;
309 bool m_targetConnectorConfigurationHasBeenSet = false;
310 bool m_errorInfoHasBeenSet = false;
311 bool m_creationTimeHasBeenSet = false;
312 bool m_endTimeHasBeenSet = false;
313 bool m_requestIdHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace KafkaConnect
318} // namespace Aws
DescribeConnectorOperationResult & WithOperationSteps(OperationStepsT &&value)
DescribeConnectorOperationResult & WithRequestId(RequestIdT &&value)
DescribeConnectorOperationResult & WithConnectorOperationState(ConnectorOperationState value)
void SetTargetConnectorConfiguration(TargetConnectorConfigurationT &&value)
DescribeConnectorOperationResult & WithConnectorOperationArn(ConnectorOperationArnT &&value)
DescribeConnectorOperationResult & WithEndTime(EndTimeT &&value)
AWS_KAFKACONNECT_API DescribeConnectorOperationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectorOperationResult & WithErrorInfo(ErrorInfoT &&value)
AWS_KAFKACONNECT_API DescribeConnectorOperationResult()=default
DescribeConnectorOperationResult & WithOriginWorkerSetting(OriginWorkerSettingT &&value)
DescribeConnectorOperationResult & WithTargetConnectorConfiguration(TargetConnectorConfigurationT &&value)
DescribeConnectorOperationResult & WithTargetWorkerSetting(TargetWorkerSettingT &&value)
DescribeConnectorOperationResult & WithOriginConnectorConfiguration(OriginConnectorConfigurationT &&value)
DescribeConnectorOperationResult & WithConnectorArn(ConnectorArnT &&value)
void SetOriginConnectorConfiguration(OriginConnectorConfigurationT &&value)
const Aws::Vector< ConnectorOperationStep > & GetOperationSteps() const
DescribeConnectorOperationResult & WithCreationTime(CreationTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetOriginConnectorConfiguration() const
DescribeConnectorOperationResult & WithConnectorOperationType(ConnectorOperationType value)
DescribeConnectorOperationResult & AddTargetConnectorConfiguration(TargetConnectorConfigurationKeyT &&key, TargetConnectorConfigurationValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTargetConnectorConfiguration() const
DescribeConnectorOperationResult & AddOperationSteps(OperationStepsT &&value)
DescribeConnectorOperationResult & AddOriginConnectorConfiguration(OriginConnectorConfigurationKeyT &&key, OriginConnectorConfigurationValueT &&value)
AWS_KAFKACONNECT_API DescribeConnectorOperationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue