AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
DeploymentSummary.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/DeploymentState.h>
9#include <aws/appconfig/model/DeploymentType.h>
10#include <aws/appconfig/model/GrowthType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppConfig {
24namespace Model {
25
32 public:
33 AWS_APPCONFIG_API DeploymentSummary() = default;
34 AWS_APPCONFIG_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetDeploymentNumber() const { return m_deploymentNumber; }
43 inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
44 inline void SetDeploymentNumber(int value) {
45 m_deploymentNumberHasBeenSet = true;
46 m_deploymentNumber = value;
47 }
50 return *this;
51 }
53
55
58 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
59 inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
60 template <typename ConfigurationProfileIdT = Aws::String>
61 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
62 m_configurationProfileIdHasBeenSet = true;
63 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
64 }
65 template <typename ConfigurationProfileIdT = Aws::String>
66 DeploymentSummary& WithConfigurationProfileId(ConfigurationProfileIdT&& value) {
67 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
77 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
78 template <typename ConfigurationNameT = Aws::String>
79 void SetConfigurationName(ConfigurationNameT&& value) {
80 m_configurationNameHasBeenSet = true;
81 m_configurationName = std::forward<ConfigurationNameT>(value);
82 }
83 template <typename ConfigurationNameT = Aws::String>
84 DeploymentSummary& WithConfigurationName(ConfigurationNameT&& value) {
85 SetConfigurationName(std::forward<ConfigurationNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetConfigurationVersion() const { return m_configurationVersion; }
95 inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
96 template <typename ConfigurationVersionT = Aws::String>
97 void SetConfigurationVersion(ConfigurationVersionT&& value) {
98 m_configurationVersionHasBeenSet = true;
99 m_configurationVersion = std::forward<ConfigurationVersionT>(value);
100 }
101 template <typename ConfigurationVersionT = Aws::String>
102 DeploymentSummary& WithConfigurationVersion(ConfigurationVersionT&& value) {
103 SetConfigurationVersion(std::forward<ConfigurationVersionT>(value));
104 return *this;
105 }
107
109
112 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
113 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
114 inline void SetDeploymentDurationInMinutes(int value) {
115 m_deploymentDurationInMinutesHasBeenSet = true;
116 m_deploymentDurationInMinutes = value;
117 }
120 return *this;
121 }
123
125
128 inline GrowthType GetGrowthType() const { return m_growthType; }
129 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
130 inline void SetGrowthType(GrowthType value) {
131 m_growthTypeHasBeenSet = true;
132 m_growthType = value;
133 }
135 SetGrowthType(value);
136 return *this;
137 }
139
141
145 inline double GetGrowthFactor() const { return m_growthFactor; }
146 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
147 inline void SetGrowthFactor(double value) {
148 m_growthFactorHasBeenSet = true;
149 m_growthFactor = value;
150 }
151 inline DeploymentSummary& WithGrowthFactor(double value) {
152 SetGrowthFactor(value);
153 return *this;
154 }
156
158
162 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
163 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
164 inline void SetFinalBakeTimeInMinutes(int value) {
165 m_finalBakeTimeInMinutesHasBeenSet = true;
166 m_finalBakeTimeInMinutes = value;
167 }
170 return *this;
171 }
173
175
178 inline DeploymentState GetState() const { return m_state; }
179 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
180 inline void SetState(DeploymentState value) {
181 m_stateHasBeenSet = true;
182 m_state = value;
183 }
185 SetState(value);
186 return *this;
187 }
189
191
194 inline double GetPercentageComplete() const { return m_percentageComplete; }
195 inline bool PercentageCompleteHasBeenSet() const { return m_percentageCompleteHasBeenSet; }
196 inline void SetPercentageComplete(double value) {
197 m_percentageCompleteHasBeenSet = true;
198 m_percentageComplete = value;
199 }
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
211 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
212 template <typename StartedAtT = Aws::Utils::DateTime>
213 void SetStartedAt(StartedAtT&& value) {
214 m_startedAtHasBeenSet = true;
215 m_startedAt = std::forward<StartedAtT>(value);
216 }
217 template <typename StartedAtT = Aws::Utils::DateTime>
218 DeploymentSummary& WithStartedAt(StartedAtT&& value) {
219 SetStartedAt(std::forward<StartedAtT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
229 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
230 template <typename CompletedAtT = Aws::Utils::DateTime>
231 void SetCompletedAt(CompletedAtT&& value) {
232 m_completedAtHasBeenSet = true;
233 m_completedAt = std::forward<CompletedAtT>(value);
234 }
235 template <typename CompletedAtT = Aws::Utils::DateTime>
236 DeploymentSummary& WithCompletedAt(CompletedAtT&& value) {
237 SetCompletedAt(std::forward<CompletedAtT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
247 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
248 template <typename VersionLabelT = Aws::String>
249 void SetVersionLabel(VersionLabelT&& value) {
250 m_versionLabelHasBeenSet = true;
251 m_versionLabel = std::forward<VersionLabelT>(value);
252 }
253 template <typename VersionLabelT = Aws::String>
254 DeploymentSummary& WithVersionLabel(VersionLabelT&& value) {
255 SetVersionLabel(std::forward<VersionLabelT>(value));
256 return *this;
257 }
259
261
264 inline DeploymentType GetType() const { return m_type; }
265 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
266 inline void SetType(DeploymentType value) {
267 m_typeHasBeenSet = true;
268 m_type = value;
269 }
271 SetType(value);
272 return *this;
273 }
275 private:
276 int m_deploymentNumber{0};
277
278 Aws::String m_configurationProfileId;
279
280 Aws::String m_configurationName;
281
282 Aws::String m_configurationVersion;
283
284 int m_deploymentDurationInMinutes{0};
285
286 GrowthType m_growthType{GrowthType::NOT_SET};
287
288 double m_growthFactor{0.0};
289
290 int m_finalBakeTimeInMinutes{0};
291
293
294 double m_percentageComplete{0.0};
295
296 Aws::Utils::DateTime m_startedAt{};
297
298 Aws::Utils::DateTime m_completedAt{};
299
300 Aws::String m_versionLabel;
301
303 bool m_deploymentNumberHasBeenSet = false;
304 bool m_configurationProfileIdHasBeenSet = false;
305 bool m_configurationNameHasBeenSet = false;
306 bool m_configurationVersionHasBeenSet = false;
307 bool m_deploymentDurationInMinutesHasBeenSet = false;
308 bool m_growthTypeHasBeenSet = false;
309 bool m_growthFactorHasBeenSet = false;
310 bool m_finalBakeTimeInMinutesHasBeenSet = false;
311 bool m_stateHasBeenSet = false;
312 bool m_percentageCompleteHasBeenSet = false;
313 bool m_startedAtHasBeenSet = false;
314 bool m_completedAtHasBeenSet = false;
315 bool m_versionLabelHasBeenSet = false;
316 bool m_typeHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace AppConfig
321} // namespace Aws
DeploymentSummary & WithPercentageComplete(double value)
DeploymentSummary & WithType(DeploymentType value)
const Aws::String & GetConfigurationProfileId() const
const Aws::String & GetConfigurationName() const
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetConfigurationVersion() const
AWS_APPCONFIG_API DeploymentSummary()=default
AWS_APPCONFIG_API DeploymentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithConfigurationVersion(ConfigurationVersionT &&value)
DeploymentSummary & WithDeploymentDurationInMinutes(int value)
DeploymentSummary & WithFinalBakeTimeInMinutes(int value)
DeploymentSummary & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
const Aws::String & GetVersionLabel() const
void SetConfigurationName(ConfigurationNameT &&value)
DeploymentSummary & WithState(DeploymentState value)
void SetConfigurationProfileId(ConfigurationProfileIdT &&value)
AWS_APPCONFIG_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithDeploymentNumber(int value)
DeploymentSummary & WithVersionLabel(VersionLabelT &&value)
void SetVersionLabel(VersionLabelT &&value)
void SetConfigurationVersion(ConfigurationVersionT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
const Aws::Utils::DateTime & GetStartedAt() const
DeploymentSummary & WithStartedAt(StartedAtT &&value)
DeploymentSummary & WithCompletedAt(CompletedAtT &&value)
DeploymentSummary & WithGrowthFactor(double value)
DeploymentSummary & WithConfigurationName(ConfigurationNameT &&value)
DeploymentSummary & WithGrowthType(GrowthType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue