AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/AppliedExtension.h>
9#include <aws/appconfig/model/DeploymentEvent.h>
10#include <aws/appconfig/model/DeploymentState.h>
11#include <aws/appconfig/model/GrowthType.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace AppConfig {
29namespace Model {
31 public:
32 AWS_APPCONFIG_API GetDeploymentResult() = default;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 template <typename ApplicationIdT = Aws::String>
42 void SetApplicationId(ApplicationIdT&& value) {
43 m_applicationIdHasBeenSet = true;
44 m_applicationId = std::forward<ApplicationIdT>(value);
45 }
46 template <typename ApplicationIdT = Aws::String>
47 GetDeploymentResult& WithApplicationId(ApplicationIdT&& value) {
48 SetApplicationId(std::forward<ApplicationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
58 template <typename EnvironmentIdT = Aws::String>
59 void SetEnvironmentId(EnvironmentIdT&& value) {
60 m_environmentIdHasBeenSet = true;
61 m_environmentId = std::forward<EnvironmentIdT>(value);
62 }
63 template <typename EnvironmentIdT = Aws::String>
64 GetDeploymentResult& WithEnvironmentId(EnvironmentIdT&& value) {
65 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDeploymentStrategyId() const { return m_deploymentStrategyId; }
75 template <typename DeploymentStrategyIdT = Aws::String>
76 void SetDeploymentStrategyId(DeploymentStrategyIdT&& value) {
77 m_deploymentStrategyIdHasBeenSet = true;
78 m_deploymentStrategyId = std::forward<DeploymentStrategyIdT>(value);
79 }
80 template <typename DeploymentStrategyIdT = Aws::String>
81 GetDeploymentResult& WithDeploymentStrategyId(DeploymentStrategyIdT&& value) {
82 SetDeploymentStrategyId(std::forward<DeploymentStrategyIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
92 template <typename ConfigurationProfileIdT = Aws::String>
93 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
94 m_configurationProfileIdHasBeenSet = true;
95 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
96 }
97 template <typename ConfigurationProfileIdT = Aws::String>
98 GetDeploymentResult& WithConfigurationProfileId(ConfigurationProfileIdT&& value) {
99 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
100 return *this;
101 }
103
105
108 inline int GetDeploymentNumber() const { return m_deploymentNumber; }
109 inline void SetDeploymentNumber(int value) {
110 m_deploymentNumberHasBeenSet = true;
111 m_deploymentNumber = value;
112 }
114 SetDeploymentNumber(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
124 template <typename ConfigurationNameT = Aws::String>
125 void SetConfigurationName(ConfigurationNameT&& value) {
126 m_configurationNameHasBeenSet = true;
127 m_configurationName = std::forward<ConfigurationNameT>(value);
128 }
129 template <typename ConfigurationNameT = Aws::String>
130 GetDeploymentResult& WithConfigurationName(ConfigurationNameT&& value) {
131 SetConfigurationName(std::forward<ConfigurationNameT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetConfigurationLocationUri() const { return m_configurationLocationUri; }
141 template <typename ConfigurationLocationUriT = Aws::String>
142 void SetConfigurationLocationUri(ConfigurationLocationUriT&& value) {
143 m_configurationLocationUriHasBeenSet = true;
144 m_configurationLocationUri = std::forward<ConfigurationLocationUriT>(value);
145 }
146 template <typename ConfigurationLocationUriT = Aws::String>
147 GetDeploymentResult& WithConfigurationLocationUri(ConfigurationLocationUriT&& value) {
148 SetConfigurationLocationUri(std::forward<ConfigurationLocationUriT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetConfigurationVersion() const { return m_configurationVersion; }
158 template <typename ConfigurationVersionT = Aws::String>
159 void SetConfigurationVersion(ConfigurationVersionT&& value) {
160 m_configurationVersionHasBeenSet = true;
161 m_configurationVersion = std::forward<ConfigurationVersionT>(value);
162 }
163 template <typename ConfigurationVersionT = Aws::String>
164 GetDeploymentResult& WithConfigurationVersion(ConfigurationVersionT&& value) {
165 SetConfigurationVersion(std::forward<ConfigurationVersionT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetDescription() const { return m_description; }
175 template <typename DescriptionT = Aws::String>
176 void SetDescription(DescriptionT&& value) {
177 m_descriptionHasBeenSet = true;
178 m_description = std::forward<DescriptionT>(value);
179 }
180 template <typename DescriptionT = Aws::String>
181 GetDeploymentResult& WithDescription(DescriptionT&& value) {
182 SetDescription(std::forward<DescriptionT>(value));
183 return *this;
184 }
186
188
191 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
192 inline void SetDeploymentDurationInMinutes(int value) {
193 m_deploymentDurationInMinutesHasBeenSet = true;
194 m_deploymentDurationInMinutes = value;
195 }
198 return *this;
199 }
201
203
206 inline GrowthType GetGrowthType() const { return m_growthType; }
207 inline void SetGrowthType(GrowthType value) {
208 m_growthTypeHasBeenSet = true;
209 m_growthType = value;
210 }
212 SetGrowthType(value);
213 return *this;
214 }
216
218
222 inline double GetGrowthFactor() const { return m_growthFactor; }
223 inline void SetGrowthFactor(double value) {
224 m_growthFactorHasBeenSet = true;
225 m_growthFactor = value;
226 }
227 inline GetDeploymentResult& WithGrowthFactor(double value) {
228 SetGrowthFactor(value);
229 return *this;
230 }
232
234
238 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
239 inline void SetFinalBakeTimeInMinutes(int value) {
240 m_finalBakeTimeInMinutesHasBeenSet = true;
241 m_finalBakeTimeInMinutes = value;
242 }
245 return *this;
246 }
248
250
253 inline DeploymentState GetState() const { return m_state; }
254 inline void SetState(DeploymentState value) {
255 m_stateHasBeenSet = true;
256 m_state = value;
257 }
259 SetState(value);
260 return *this;
261 }
263
265
269 inline const Aws::Vector<DeploymentEvent>& GetEventLog() const { return m_eventLog; }
270 template <typename EventLogT = Aws::Vector<DeploymentEvent>>
271 void SetEventLog(EventLogT&& value) {
272 m_eventLogHasBeenSet = true;
273 m_eventLog = std::forward<EventLogT>(value);
274 }
275 template <typename EventLogT = Aws::Vector<DeploymentEvent>>
276 GetDeploymentResult& WithEventLog(EventLogT&& value) {
277 SetEventLog(std::forward<EventLogT>(value));
278 return *this;
279 }
280 template <typename EventLogT = DeploymentEvent>
281 GetDeploymentResult& AddEventLog(EventLogT&& value) {
282 m_eventLogHasBeenSet = true;
283 m_eventLog.emplace_back(std::forward<EventLogT>(value));
284 return *this;
285 }
287
289
292 inline double GetPercentageComplete() const { return m_percentageComplete; }
293 inline void SetPercentageComplete(double value) {
294 m_percentageCompleteHasBeenSet = true;
295 m_percentageComplete = value;
296 }
299 return *this;
300 }
302
304
307 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
308 template <typename StartedAtT = Aws::Utils::DateTime>
309 void SetStartedAt(StartedAtT&& value) {
310 m_startedAtHasBeenSet = true;
311 m_startedAt = std::forward<StartedAtT>(value);
312 }
313 template <typename StartedAtT = Aws::Utils::DateTime>
314 GetDeploymentResult& WithStartedAt(StartedAtT&& value) {
315 SetStartedAt(std::forward<StartedAtT>(value));
316 return *this;
317 }
319
321
324 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
325 template <typename CompletedAtT = Aws::Utils::DateTime>
326 void SetCompletedAt(CompletedAtT&& value) {
327 m_completedAtHasBeenSet = true;
328 m_completedAt = std::forward<CompletedAtT>(value);
329 }
330 template <typename CompletedAtT = Aws::Utils::DateTime>
331 GetDeploymentResult& WithCompletedAt(CompletedAtT&& value) {
332 SetCompletedAt(std::forward<CompletedAtT>(value));
333 return *this;
334 }
336
338
344 inline const Aws::Vector<AppliedExtension>& GetAppliedExtensions() const { return m_appliedExtensions; }
345 template <typename AppliedExtensionsT = Aws::Vector<AppliedExtension>>
346 void SetAppliedExtensions(AppliedExtensionsT&& value) {
347 m_appliedExtensionsHasBeenSet = true;
348 m_appliedExtensions = std::forward<AppliedExtensionsT>(value);
349 }
350 template <typename AppliedExtensionsT = Aws::Vector<AppliedExtension>>
351 GetDeploymentResult& WithAppliedExtensions(AppliedExtensionsT&& value) {
352 SetAppliedExtensions(std::forward<AppliedExtensionsT>(value));
353 return *this;
354 }
355 template <typename AppliedExtensionsT = AppliedExtension>
356 GetDeploymentResult& AddAppliedExtensions(AppliedExtensionsT&& value) {
357 m_appliedExtensionsHasBeenSet = true;
358 m_appliedExtensions.emplace_back(std::forward<AppliedExtensionsT>(value));
359 return *this;
360 }
362
364
371 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
372 template <typename KmsKeyArnT = Aws::String>
373 void SetKmsKeyArn(KmsKeyArnT&& value) {
374 m_kmsKeyArnHasBeenSet = true;
375 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
376 }
377 template <typename KmsKeyArnT = Aws::String>
378 GetDeploymentResult& WithKmsKeyArn(KmsKeyArnT&& value) {
379 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
380 return *this;
381 }
383
385
389 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
390 template <typename KmsKeyIdentifierT = Aws::String>
391 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
392 m_kmsKeyIdentifierHasBeenSet = true;
393 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
394 }
395 template <typename KmsKeyIdentifierT = Aws::String>
396 GetDeploymentResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
397 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
398 return *this;
399 }
401
403
406 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
407 template <typename VersionLabelT = Aws::String>
408 void SetVersionLabel(VersionLabelT&& value) {
409 m_versionLabelHasBeenSet = true;
410 m_versionLabel = std::forward<VersionLabelT>(value);
411 }
412 template <typename VersionLabelT = Aws::String>
413 GetDeploymentResult& WithVersionLabel(VersionLabelT&& value) {
414 SetVersionLabel(std::forward<VersionLabelT>(value));
415 return *this;
416 }
418
420
421 inline const Aws::String& GetRequestId() const { return m_requestId; }
422 template <typename RequestIdT = Aws::String>
423 void SetRequestId(RequestIdT&& value) {
424 m_requestIdHasBeenSet = true;
425 m_requestId = std::forward<RequestIdT>(value);
426 }
427 template <typename RequestIdT = Aws::String>
428 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
429 SetRequestId(std::forward<RequestIdT>(value));
430 return *this;
431 }
433 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
434
435 private:
436 Aws::String m_applicationId;
437
438 Aws::String m_environmentId;
439
440 Aws::String m_deploymentStrategyId;
441
442 Aws::String m_configurationProfileId;
443
444 int m_deploymentNumber{0};
445
446 Aws::String m_configurationName;
447
448 Aws::String m_configurationLocationUri;
449
450 Aws::String m_configurationVersion;
451
452 Aws::String m_description;
453
454 int m_deploymentDurationInMinutes{0};
455
456 GrowthType m_growthType{GrowthType::NOT_SET};
457
458 double m_growthFactor{0.0};
459
460 int m_finalBakeTimeInMinutes{0};
461
463
465
466 double m_percentageComplete{0.0};
467
468 Aws::Utils::DateTime m_startedAt{};
469
470 Aws::Utils::DateTime m_completedAt{};
471
472 Aws::Vector<AppliedExtension> m_appliedExtensions;
473
474 Aws::String m_kmsKeyArn;
475
476 Aws::String m_kmsKeyIdentifier;
477
478 Aws::String m_versionLabel;
479
480 Aws::String m_requestId;
481 Aws::Http::HttpResponseCode m_HttpResponseCode;
482 bool m_applicationIdHasBeenSet = false;
483 bool m_environmentIdHasBeenSet = false;
484 bool m_deploymentStrategyIdHasBeenSet = false;
485 bool m_configurationProfileIdHasBeenSet = false;
486 bool m_deploymentNumberHasBeenSet = false;
487 bool m_configurationNameHasBeenSet = false;
488 bool m_configurationLocationUriHasBeenSet = false;
489 bool m_configurationVersionHasBeenSet = false;
490 bool m_descriptionHasBeenSet = false;
491 bool m_deploymentDurationInMinutesHasBeenSet = false;
492 bool m_growthTypeHasBeenSet = false;
493 bool m_growthFactorHasBeenSet = false;
494 bool m_finalBakeTimeInMinutesHasBeenSet = false;
495 bool m_stateHasBeenSet = false;
496 bool m_eventLogHasBeenSet = false;
497 bool m_percentageCompleteHasBeenSet = false;
498 bool m_startedAtHasBeenSet = false;
499 bool m_completedAtHasBeenSet = false;
500 bool m_appliedExtensionsHasBeenSet = false;
501 bool m_kmsKeyArnHasBeenSet = false;
502 bool m_kmsKeyIdentifierHasBeenSet = false;
503 bool m_versionLabelHasBeenSet = false;
504 bool m_requestIdHasBeenSet = false;
505};
506
507} // namespace Model
508} // namespace AppConfig
509} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDeploymentResult & WithCompletedAt(CompletedAtT &&value)
GetDeploymentResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
const Aws::String & GetConfigurationLocationUri() const
const Aws::String & GetConfigurationProfileId() const
const Aws::String & GetDeploymentStrategyId() const
void SetConfigurationName(ConfigurationNameT &&value)
const Aws::Vector< AppliedExtension > & GetAppliedExtensions() const
const Aws::Vector< DeploymentEvent > & GetEventLog() const
const Aws::Utils::DateTime & GetStartedAt() const
GetDeploymentResult & WithEnvironmentId(EnvironmentIdT &&value)
GetDeploymentResult & WithDescription(DescriptionT &&value)
GetDeploymentResult & WithConfigurationName(ConfigurationNameT &&value)
GetDeploymentResult & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
GetDeploymentResult & AddAppliedExtensions(AppliedExtensionsT &&value)
void SetAppliedExtensions(AppliedExtensionsT &&value)
GetDeploymentResult & WithPercentageComplete(double value)
const Aws::String & GetConfigurationVersion() const
void SetDeploymentStrategyId(DeploymentStrategyIdT &&value)
AWS_APPCONFIG_API GetDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithConfigurationVersion(ConfigurationVersionT &&value)
GetDeploymentResult & WithAppliedExtensions(AppliedExtensionsT &&value)
void SetConfigurationProfileId(ConfigurationProfileIdT &&value)
GetDeploymentResult & WithApplicationId(ApplicationIdT &&value)
void SetConfigurationVersion(ConfigurationVersionT &&value)
AWS_APPCONFIG_API GetDeploymentResult()=default
GetDeploymentResult & WithGrowthType(GrowthType value)
void SetConfigurationLocationUri(ConfigurationLocationUriT &&value)
AWS_APPCONFIG_API GetDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithConfigurationLocationUri(ConfigurationLocationUriT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
void SetApplicationId(ApplicationIdT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
GetDeploymentResult & WithGrowthFactor(double value)
GetDeploymentResult & WithStartedAt(StartedAtT &&value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
GetDeploymentResult & WithVersionLabel(VersionLabelT &&value)
GetDeploymentResult & WithKmsKeyArn(KmsKeyArnT &&value)
GetDeploymentResult & WithFinalBakeTimeInMinutes(int value)
GetDeploymentResult & WithRequestId(RequestIdT &&value)
GetDeploymentResult & WithDeploymentNumber(int value)
GetDeploymentResult & AddEventLog(EventLogT &&value)
GetDeploymentResult & WithState(DeploymentState value)
GetDeploymentResult & WithEventLog(EventLogT &&value)
GetDeploymentResult & WithDeploymentDurationInMinutes(int value)
GetDeploymentResult & WithDeploymentStrategyId(DeploymentStrategyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue