AWS SDK for C++

AWS SDK for C++ Version 1.11.789

Loading...
Searching...
No Matches
DescribePipeResult.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/pipes/Pipes_EXPORTS.h>
12#include <aws/pipes/model/PipeEnrichmentParameters.h>
13#include <aws/pipes/model/PipeLogConfiguration.h>
14#include <aws/pipes/model/PipeSourceParameters.h>
15#include <aws/pipes/model/PipeState.h>
16#include <aws/pipes/model/PipeTargetParameters.h>
17#include <aws/pipes/model/RequestedPipeStateDescribeResponse.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 Pipes {
31namespace Model {
33 public:
34 AWS_PIPES_API DescribePipeResult() = default;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 DescribePipeResult& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 DescribePipeResult& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 DescribePipeResult& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline RequestedPipeStateDescribeResponse GetDesiredState() const { return m_desiredState; }
95 m_desiredStateHasBeenSet = true;
96 m_desiredState = value;
97 }
99 SetDesiredState(value);
100 return *this;
101 }
103
105
108 inline PipeState GetCurrentState() const { return m_currentState; }
109 inline void SetCurrentState(PipeState value) {
110 m_currentStateHasBeenSet = true;
111 m_currentState = value;
112 }
114 SetCurrentState(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetStateReason() const { return m_stateReason; }
124 template <typename StateReasonT = Aws::String>
125 void SetStateReason(StateReasonT&& value) {
126 m_stateReasonHasBeenSet = true;
127 m_stateReason = std::forward<StateReasonT>(value);
128 }
129 template <typename StateReasonT = Aws::String>
130 DescribePipeResult& WithStateReason(StateReasonT&& value) {
131 SetStateReason(std::forward<StateReasonT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetSource() const { return m_source; }
141 template <typename SourceT = Aws::String>
142 void SetSource(SourceT&& value) {
143 m_sourceHasBeenSet = true;
144 m_source = std::forward<SourceT>(value);
145 }
146 template <typename SourceT = Aws::String>
147 DescribePipeResult& WithSource(SourceT&& value) {
148 SetSource(std::forward<SourceT>(value));
149 return *this;
150 }
152
154
157 inline const PipeSourceParameters& GetSourceParameters() const { return m_sourceParameters; }
158 template <typename SourceParametersT = PipeSourceParameters>
159 void SetSourceParameters(SourceParametersT&& value) {
160 m_sourceParametersHasBeenSet = true;
161 m_sourceParameters = std::forward<SourceParametersT>(value);
162 }
163 template <typename SourceParametersT = PipeSourceParameters>
164 DescribePipeResult& WithSourceParameters(SourceParametersT&& value) {
165 SetSourceParameters(std::forward<SourceParametersT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetEnrichment() const { return m_enrichment; }
175 template <typename EnrichmentT = Aws::String>
176 void SetEnrichment(EnrichmentT&& value) {
177 m_enrichmentHasBeenSet = true;
178 m_enrichment = std::forward<EnrichmentT>(value);
179 }
180 template <typename EnrichmentT = Aws::String>
181 DescribePipeResult& WithEnrichment(EnrichmentT&& value) {
182 SetEnrichment(std::forward<EnrichmentT>(value));
183 return *this;
184 }
186
188
191 inline const PipeEnrichmentParameters& GetEnrichmentParameters() const { return m_enrichmentParameters; }
192 template <typename EnrichmentParametersT = PipeEnrichmentParameters>
193 void SetEnrichmentParameters(EnrichmentParametersT&& value) {
194 m_enrichmentParametersHasBeenSet = true;
195 m_enrichmentParameters = std::forward<EnrichmentParametersT>(value);
196 }
197 template <typename EnrichmentParametersT = PipeEnrichmentParameters>
198 DescribePipeResult& WithEnrichmentParameters(EnrichmentParametersT&& value) {
199 SetEnrichmentParameters(std::forward<EnrichmentParametersT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetTarget() const { return m_target; }
209 template <typename TargetT = Aws::String>
210 void SetTarget(TargetT&& value) {
211 m_targetHasBeenSet = true;
212 m_target = std::forward<TargetT>(value);
213 }
214 template <typename TargetT = Aws::String>
215 DescribePipeResult& WithTarget(TargetT&& value) {
216 SetTarget(std::forward<TargetT>(value));
217 return *this;
218 }
220
222
229 inline const PipeTargetParameters& GetTargetParameters() const { return m_targetParameters; }
230 template <typename TargetParametersT = PipeTargetParameters>
231 void SetTargetParameters(TargetParametersT&& value) {
232 m_targetParametersHasBeenSet = true;
233 m_targetParameters = std::forward<TargetParametersT>(value);
234 }
235 template <typename TargetParametersT = PipeTargetParameters>
236 DescribePipeResult& WithTargetParameters(TargetParametersT&& value) {
237 SetTargetParameters(std::forward<TargetParametersT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
247 template <typename RoleArnT = Aws::String>
248 void SetRoleArn(RoleArnT&& value) {
249 m_roleArnHasBeenSet = true;
250 m_roleArn = std::forward<RoleArnT>(value);
251 }
252 template <typename RoleArnT = Aws::String>
253 DescribePipeResult& WithRoleArn(RoleArnT&& value) {
254 SetRoleArn(std::forward<RoleArnT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
264 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
265 void SetTags(TagsT&& value) {
266 m_tagsHasBeenSet = true;
267 m_tags = std::forward<TagsT>(value);
268 }
269 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 DescribePipeResult& WithTags(TagsT&& value) {
271 SetTags(std::forward<TagsT>(value));
272 return *this;
273 }
274 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
275 DescribePipeResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
276 m_tagsHasBeenSet = true;
277 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
278 return *this;
279 }
281
283
286 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
287 template <typename CreationTimeT = Aws::Utils::DateTime>
288 void SetCreationTime(CreationTimeT&& value) {
289 m_creationTimeHasBeenSet = true;
290 m_creationTime = std::forward<CreationTimeT>(value);
291 }
292 template <typename CreationTimeT = Aws::Utils::DateTime>
293 DescribePipeResult& WithCreationTime(CreationTimeT&& value) {
294 SetCreationTime(std::forward<CreationTimeT>(value));
295 return *this;
296 }
298
300
305 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
306 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
307 void SetLastModifiedTime(LastModifiedTimeT&& value) {
308 m_lastModifiedTimeHasBeenSet = true;
309 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
310 }
311 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
312 DescribePipeResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
313 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
314 return *this;
315 }
317
319
322 inline const PipeLogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
323 template <typename LogConfigurationT = PipeLogConfiguration>
324 void SetLogConfiguration(LogConfigurationT&& value) {
325 m_logConfigurationHasBeenSet = true;
326 m_logConfiguration = std::forward<LogConfigurationT>(value);
327 }
328 template <typename LogConfigurationT = PipeLogConfiguration>
329 DescribePipeResult& WithLogConfiguration(LogConfigurationT&& value) {
330 SetLogConfiguration(std::forward<LogConfigurationT>(value));
331 return *this;
332 }
334
336
343 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
344 template <typename KmsKeyIdentifierT = Aws::String>
345 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
346 m_kmsKeyIdentifierHasBeenSet = true;
347 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
348 }
349 template <typename KmsKeyIdentifierT = Aws::String>
350 DescribePipeResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
351 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
352 return *this;
353 }
355
357
358 inline const Aws::String& GetRequestId() const { return m_requestId; }
359 template <typename RequestIdT = Aws::String>
360 void SetRequestId(RequestIdT&& value) {
361 m_requestIdHasBeenSet = true;
362 m_requestId = std::forward<RequestIdT>(value);
363 }
364 template <typename RequestIdT = Aws::String>
365 DescribePipeResult& WithRequestId(RequestIdT&& value) {
366 SetRequestId(std::forward<RequestIdT>(value));
367 return *this;
368 }
370 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
371
372 private:
373 Aws::String m_arn;
374
375 Aws::String m_name;
376
377 Aws::String m_description;
378
380
381 PipeState m_currentState{PipeState::NOT_SET};
382
383 Aws::String m_stateReason;
384
385 Aws::String m_source;
386
387 PipeSourceParameters m_sourceParameters;
388
389 Aws::String m_enrichment;
390
391 PipeEnrichmentParameters m_enrichmentParameters;
392
393 Aws::String m_target;
394
395 PipeTargetParameters m_targetParameters;
396
397 Aws::String m_roleArn;
398
400
401 Aws::Utils::DateTime m_creationTime{};
402
403 Aws::Utils::DateTime m_lastModifiedTime{};
404
405 PipeLogConfiguration m_logConfiguration;
406
407 Aws::String m_kmsKeyIdentifier;
408
409 Aws::String m_requestId;
410 Aws::Http::HttpResponseCode m_HttpResponseCode;
411 bool m_arnHasBeenSet = false;
412 bool m_nameHasBeenSet = false;
413 bool m_descriptionHasBeenSet = false;
414 bool m_desiredStateHasBeenSet = false;
415 bool m_currentStateHasBeenSet = false;
416 bool m_stateReasonHasBeenSet = false;
417 bool m_sourceHasBeenSet = false;
418 bool m_sourceParametersHasBeenSet = false;
419 bool m_enrichmentHasBeenSet = false;
420 bool m_enrichmentParametersHasBeenSet = false;
421 bool m_targetHasBeenSet = false;
422 bool m_targetParametersHasBeenSet = false;
423 bool m_roleArnHasBeenSet = false;
424 bool m_tagsHasBeenSet = false;
425 bool m_creationTimeHasBeenSet = false;
426 bool m_lastModifiedTimeHasBeenSet = false;
427 bool m_logConfigurationHasBeenSet = false;
428 bool m_kmsKeyIdentifierHasBeenSet = false;
429 bool m_requestIdHasBeenSet = false;
430};
431
432} // namespace Model
433} // namespace Pipes
434} // namespace Aws
void SetCreationTime(CreationTimeT &&value)
DescribePipeResult & WithRoleArn(RoleArnT &&value)
const Aws::String & GetName() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetEnrichment() const
DescribePipeResult & WithSource(SourceT &&value)
DescribePipeResult & WithStateReason(StateReasonT &&value)
const PipeSourceParameters & GetSourceParameters() const
AWS_PIPES_API DescribePipeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PIPES_API DescribePipeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribePipeResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetStateReason(StateReasonT &&value)
DescribePipeResult & WithTarget(TargetT &&value)
DescribePipeResult & WithDescription(DescriptionT &&value)
RequestedPipeStateDescribeResponse GetDesiredState() const
const Aws::String & GetKmsKeyIdentifier() const
DescribePipeResult & WithRequestId(RequestIdT &&value)
DescribePipeResult & WithCurrentState(PipeState value)
const Aws::String & GetRequestId() const
DescribePipeResult & WithLogConfiguration(LogConfigurationT &&value)
DescribePipeResult & WithTargetParameters(TargetParametersT &&value)
void SetSourceParameters(SourceParametersT &&value)
void SetDesiredState(RequestedPipeStateDescribeResponse value)
void SetDescription(DescriptionT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetStateReason() const
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_PIPES_API DescribePipeResult()=default
DescribePipeResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
const PipeEnrichmentParameters & GetEnrichmentParameters() const
DescribePipeResult & WithEnrichmentParameters(EnrichmentParametersT &&value)
void SetLogConfiguration(LogConfigurationT &&value)
void SetEnrichmentParameters(EnrichmentParametersT &&value)
DescribePipeResult & WithName(NameT &&value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
DescribePipeResult & WithTags(TagsT &&value)
const PipeTargetParameters & GetTargetParameters() const
DescribePipeResult & WithArn(ArnT &&value)
const PipeLogConfiguration & GetLogConfiguration() const
const Aws::String & GetTarget() const
DescribePipeResult & WithSourceParameters(SourceParametersT &&value)
void SetTargetParameters(TargetParametersT &&value)
DescribePipeResult & WithDesiredState(RequestedPipeStateDescribeResponse value)
const Aws::String & GetSource() const
DescribePipeResult & WithEnrichment(EnrichmentT &&value)
DescribePipeResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribePipeResult & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetRoleArn() const
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
Aws::Utils::Json::JsonValue JsonValue