AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
StopDeploymentResult.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/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace AppConfig {
28namespace Model {
30 public:
31 AWS_APPCONFIG_API StopDeploymentResult() = default;
34
36
39 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
46 StopDeploymentResult& WithApplicationId(ApplicationIdT&& value) {
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
57 template <typename EnvironmentIdT = Aws::String>
58 void SetEnvironmentId(EnvironmentIdT&& value) {
59 m_environmentIdHasBeenSet = true;
60 m_environmentId = std::forward<EnvironmentIdT>(value);
61 }
62 template <typename EnvironmentIdT = Aws::String>
63 StopDeploymentResult& WithEnvironmentId(EnvironmentIdT&& value) {
64 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDeploymentStrategyId() const { return m_deploymentStrategyId; }
74 template <typename DeploymentStrategyIdT = Aws::String>
75 void SetDeploymentStrategyId(DeploymentStrategyIdT&& value) {
76 m_deploymentStrategyIdHasBeenSet = true;
77 m_deploymentStrategyId = std::forward<DeploymentStrategyIdT>(value);
78 }
79 template <typename DeploymentStrategyIdT = Aws::String>
80 StopDeploymentResult& WithDeploymentStrategyId(DeploymentStrategyIdT&& value) {
81 SetDeploymentStrategyId(std::forward<DeploymentStrategyIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
91 template <typename ConfigurationProfileIdT = Aws::String>
92 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
93 m_configurationProfileIdHasBeenSet = true;
94 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
95 }
96 template <typename ConfigurationProfileIdT = Aws::String>
97 StopDeploymentResult& WithConfigurationProfileId(ConfigurationProfileIdT&& value) {
98 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
99 return *this;
100 }
102
104
107 inline int GetDeploymentNumber() const { return m_deploymentNumber; }
108 inline void SetDeploymentNumber(int value) {
109 m_deploymentNumberHasBeenSet = true;
110 m_deploymentNumber = value;
111 }
113 SetDeploymentNumber(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
123 template <typename ConfigurationNameT = Aws::String>
124 void SetConfigurationName(ConfigurationNameT&& value) {
125 m_configurationNameHasBeenSet = true;
126 m_configurationName = std::forward<ConfigurationNameT>(value);
127 }
128 template <typename ConfigurationNameT = Aws::String>
129 StopDeploymentResult& WithConfigurationName(ConfigurationNameT&& value) {
130 SetConfigurationName(std::forward<ConfigurationNameT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetConfigurationLocationUri() const { return m_configurationLocationUri; }
140 template <typename ConfigurationLocationUriT = Aws::String>
141 void SetConfigurationLocationUri(ConfigurationLocationUriT&& value) {
142 m_configurationLocationUriHasBeenSet = true;
143 m_configurationLocationUri = std::forward<ConfigurationLocationUriT>(value);
144 }
145 template <typename ConfigurationLocationUriT = Aws::String>
146 StopDeploymentResult& WithConfigurationLocationUri(ConfigurationLocationUriT&& value) {
147 SetConfigurationLocationUri(std::forward<ConfigurationLocationUriT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetConfigurationVersion() const { return m_configurationVersion; }
157 template <typename ConfigurationVersionT = Aws::String>
158 void SetConfigurationVersion(ConfigurationVersionT&& value) {
159 m_configurationVersionHasBeenSet = true;
160 m_configurationVersion = std::forward<ConfigurationVersionT>(value);
161 }
162 template <typename ConfigurationVersionT = Aws::String>
163 StopDeploymentResult& WithConfigurationVersion(ConfigurationVersionT&& value) {
164 SetConfigurationVersion(std::forward<ConfigurationVersionT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetDescription() const { return m_description; }
174 template <typename DescriptionT = Aws::String>
175 void SetDescription(DescriptionT&& value) {
176 m_descriptionHasBeenSet = true;
177 m_description = std::forward<DescriptionT>(value);
178 }
179 template <typename DescriptionT = Aws::String>
180 StopDeploymentResult& WithDescription(DescriptionT&& value) {
181 SetDescription(std::forward<DescriptionT>(value));
182 return *this;
183 }
185
187
190 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
191 inline void SetDeploymentDurationInMinutes(int value) {
192 m_deploymentDurationInMinutesHasBeenSet = true;
193 m_deploymentDurationInMinutes = value;
194 }
197 return *this;
198 }
200
202
205 inline GrowthType GetGrowthType() const { return m_growthType; }
206 inline void SetGrowthType(GrowthType value) {
207 m_growthTypeHasBeenSet = true;
208 m_growthType = value;
209 }
211 SetGrowthType(value);
212 return *this;
213 }
215
217
221 inline double GetGrowthFactor() const { return m_growthFactor; }
222 inline void SetGrowthFactor(double value) {
223 m_growthFactorHasBeenSet = true;
224 m_growthFactor = value;
225 }
227 SetGrowthFactor(value);
228 return *this;
229 }
231
233
237 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
238 inline void SetFinalBakeTimeInMinutes(int value) {
239 m_finalBakeTimeInMinutesHasBeenSet = true;
240 m_finalBakeTimeInMinutes = value;
241 }
244 return *this;
245 }
247
249
252 inline DeploymentState GetState() const { return m_state; }
253 inline void SetState(DeploymentState value) {
254 m_stateHasBeenSet = true;
255 m_state = value;
256 }
258 SetState(value);
259 return *this;
260 }
262
264
268 inline const Aws::Vector<DeploymentEvent>& GetEventLog() const { return m_eventLog; }
269 template <typename EventLogT = Aws::Vector<DeploymentEvent>>
270 void SetEventLog(EventLogT&& value) {
271 m_eventLogHasBeenSet = true;
272 m_eventLog = std::forward<EventLogT>(value);
273 }
274 template <typename EventLogT = Aws::Vector<DeploymentEvent>>
275 StopDeploymentResult& WithEventLog(EventLogT&& value) {
276 SetEventLog(std::forward<EventLogT>(value));
277 return *this;
278 }
279 template <typename EventLogT = DeploymentEvent>
280 StopDeploymentResult& AddEventLog(EventLogT&& value) {
281 m_eventLogHasBeenSet = true;
282 m_eventLog.emplace_back(std::forward<EventLogT>(value));
283 return *this;
284 }
286
288
291 inline double GetPercentageComplete() const { return m_percentageComplete; }
292 inline void SetPercentageComplete(double value) {
293 m_percentageCompleteHasBeenSet = true;
294 m_percentageComplete = value;
295 }
298 return *this;
299 }
301
303
306 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
307 template <typename StartedAtT = Aws::Utils::DateTime>
308 void SetStartedAt(StartedAtT&& value) {
309 m_startedAtHasBeenSet = true;
310 m_startedAt = std::forward<StartedAtT>(value);
311 }
312 template <typename StartedAtT = Aws::Utils::DateTime>
313 StopDeploymentResult& WithStartedAt(StartedAtT&& value) {
314 SetStartedAt(std::forward<StartedAtT>(value));
315 return *this;
316 }
318
320
323 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
324 template <typename CompletedAtT = Aws::Utils::DateTime>
325 void SetCompletedAt(CompletedAtT&& value) {
326 m_completedAtHasBeenSet = true;
327 m_completedAt = std::forward<CompletedAtT>(value);
328 }
329 template <typename CompletedAtT = Aws::Utils::DateTime>
330 StopDeploymentResult& WithCompletedAt(CompletedAtT&& value) {
331 SetCompletedAt(std::forward<CompletedAtT>(value));
332 return *this;
333 }
335
337
343 inline const Aws::Vector<AppliedExtension>& GetAppliedExtensions() const { return m_appliedExtensions; }
344 template <typename AppliedExtensionsT = Aws::Vector<AppliedExtension>>
345 void SetAppliedExtensions(AppliedExtensionsT&& value) {
346 m_appliedExtensionsHasBeenSet = true;
347 m_appliedExtensions = std::forward<AppliedExtensionsT>(value);
348 }
349 template <typename AppliedExtensionsT = Aws::Vector<AppliedExtension>>
350 StopDeploymentResult& WithAppliedExtensions(AppliedExtensionsT&& value) {
351 SetAppliedExtensions(std::forward<AppliedExtensionsT>(value));
352 return *this;
353 }
354 template <typename AppliedExtensionsT = AppliedExtension>
355 StopDeploymentResult& AddAppliedExtensions(AppliedExtensionsT&& value) {
356 m_appliedExtensionsHasBeenSet = true;
357 m_appliedExtensions.emplace_back(std::forward<AppliedExtensionsT>(value));
358 return *this;
359 }
361
363
370 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
371 template <typename KmsKeyArnT = Aws::String>
372 void SetKmsKeyArn(KmsKeyArnT&& value) {
373 m_kmsKeyArnHasBeenSet = true;
374 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
375 }
376 template <typename KmsKeyArnT = Aws::String>
377 StopDeploymentResult& WithKmsKeyArn(KmsKeyArnT&& value) {
378 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
379 return *this;
380 }
382
384
388 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
389 template <typename KmsKeyIdentifierT = Aws::String>
390 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
391 m_kmsKeyIdentifierHasBeenSet = true;
392 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
393 }
394 template <typename KmsKeyIdentifierT = Aws::String>
395 StopDeploymentResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
396 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
397 return *this;
398 }
400
402
405 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
406 template <typename VersionLabelT = Aws::String>
407 void SetVersionLabel(VersionLabelT&& value) {
408 m_versionLabelHasBeenSet = true;
409 m_versionLabel = std::forward<VersionLabelT>(value);
410 }
411 template <typename VersionLabelT = Aws::String>
412 StopDeploymentResult& WithVersionLabel(VersionLabelT&& value) {
413 SetVersionLabel(std::forward<VersionLabelT>(value));
414 return *this;
415 }
417
419
420 inline const Aws::String& GetRequestId() const { return m_requestId; }
421 template <typename RequestIdT = Aws::String>
422 void SetRequestId(RequestIdT&& value) {
423 m_requestIdHasBeenSet = true;
424 m_requestId = std::forward<RequestIdT>(value);
425 }
426 template <typename RequestIdT = Aws::String>
427 StopDeploymentResult& WithRequestId(RequestIdT&& value) {
428 SetRequestId(std::forward<RequestIdT>(value));
429 return *this;
430 }
432 private:
433 Aws::String m_applicationId;
434
435 Aws::String m_environmentId;
436
437 Aws::String m_deploymentStrategyId;
438
439 Aws::String m_configurationProfileId;
440
441 int m_deploymentNumber{0};
442
443 Aws::String m_configurationName;
444
445 Aws::String m_configurationLocationUri;
446
447 Aws::String m_configurationVersion;
448
449 Aws::String m_description;
450
451 int m_deploymentDurationInMinutes{0};
452
453 GrowthType m_growthType{GrowthType::NOT_SET};
454
455 double m_growthFactor{0.0};
456
457 int m_finalBakeTimeInMinutes{0};
458
460
462
463 double m_percentageComplete{0.0};
464
465 Aws::Utils::DateTime m_startedAt{};
466
467 Aws::Utils::DateTime m_completedAt{};
468
469 Aws::Vector<AppliedExtension> m_appliedExtensions;
470
471 Aws::String m_kmsKeyArn;
472
473 Aws::String m_kmsKeyIdentifier;
474
475 Aws::String m_versionLabel;
476
477 Aws::String m_requestId;
478 bool m_applicationIdHasBeenSet = false;
479 bool m_environmentIdHasBeenSet = false;
480 bool m_deploymentStrategyIdHasBeenSet = false;
481 bool m_configurationProfileIdHasBeenSet = false;
482 bool m_deploymentNumberHasBeenSet = false;
483 bool m_configurationNameHasBeenSet = false;
484 bool m_configurationLocationUriHasBeenSet = false;
485 bool m_configurationVersionHasBeenSet = false;
486 bool m_descriptionHasBeenSet = false;
487 bool m_deploymentDurationInMinutesHasBeenSet = false;
488 bool m_growthTypeHasBeenSet = false;
489 bool m_growthFactorHasBeenSet = false;
490 bool m_finalBakeTimeInMinutesHasBeenSet = false;
491 bool m_stateHasBeenSet = false;
492 bool m_eventLogHasBeenSet = false;
493 bool m_percentageCompleteHasBeenSet = false;
494 bool m_startedAtHasBeenSet = false;
495 bool m_completedAtHasBeenSet = false;
496 bool m_appliedExtensionsHasBeenSet = false;
497 bool m_kmsKeyArnHasBeenSet = false;
498 bool m_kmsKeyIdentifierHasBeenSet = false;
499 bool m_versionLabelHasBeenSet = false;
500 bool m_requestIdHasBeenSet = false;
501};
502
503} // namespace Model
504} // namespace AppConfig
505} // namespace Aws
void SetAppliedExtensions(AppliedExtensionsT &&value)
const Aws::Vector< AppliedExtension > & GetAppliedExtensions() const
AWS_APPCONFIG_API StopDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPCONFIG_API StopDeploymentResult()=default
const Aws::Vector< DeploymentEvent > & GetEventLog() const
StopDeploymentResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
StopDeploymentResult & WithFinalBakeTimeInMinutes(int value)
const Aws::String & GetConfigurationLocationUri() const
const Aws::String & GetDeploymentStrategyId() const
void SetDeploymentStrategyId(DeploymentStrategyIdT &&value)
StopDeploymentResult & WithState(DeploymentState value)
StopDeploymentResult & WithConfigurationName(ConfigurationNameT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
StopDeploymentResult & WithAppliedExtensions(AppliedExtensionsT &&value)
StopDeploymentResult & WithConfigurationLocationUri(ConfigurationLocationUriT &&value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_APPCONFIG_API StopDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StopDeploymentResult & WithEnvironmentId(EnvironmentIdT &&value)
StopDeploymentResult & WithDescription(DescriptionT &&value)
StopDeploymentResult & WithGrowthType(GrowthType value)
StopDeploymentResult & WithGrowthFactor(double value)
const Aws::String & GetConfigurationProfileId() const
StopDeploymentResult & AddAppliedExtensions(AppliedExtensionsT &&value)
StopDeploymentResult & WithDeploymentDurationInMinutes(int value)
void SetConfigurationProfileId(ConfigurationProfileIdT &&value)
StopDeploymentResult & WithDeploymentStrategyId(DeploymentStrategyIdT &&value)
StopDeploymentResult & WithVersionLabel(VersionLabelT &&value)
StopDeploymentResult & WithDeploymentNumber(int value)
StopDeploymentResult & WithEventLog(EventLogT &&value)
void SetConfigurationVersion(ConfigurationVersionT &&value)
StopDeploymentResult & WithConfigurationVersion(ConfigurationVersionT &&value)
StopDeploymentResult & WithKmsKeyArn(KmsKeyArnT &&value)
StopDeploymentResult & WithStartedAt(StartedAtT &&value)
StopDeploymentResult & WithPercentageComplete(double value)
const Aws::Utils::DateTime & GetCompletedAt() const
StopDeploymentResult & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
StopDeploymentResult & WithCompletedAt(CompletedAtT &&value)
void SetConfigurationName(ConfigurationNameT &&value)
void SetConfigurationLocationUri(ConfigurationLocationUriT &&value)
StopDeploymentResult & AddEventLog(EventLogT &&value)
StopDeploymentResult & WithRequestId(RequestIdT &&value)
StopDeploymentResult & WithApplicationId(ApplicationIdT &&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