AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/GrowthType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppConfig {
23namespace Model {
24
31 public:
32 AWS_APPCONFIG_API DeploymentSummary() = default;
33 AWS_APPCONFIG_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetDeploymentNumber() const { return m_deploymentNumber; }
42 inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
43 inline void SetDeploymentNumber(int value) {
44 m_deploymentNumberHasBeenSet = true;
45 m_deploymentNumber = value;
46 }
49 return *this;
50 }
52
54
57 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
58 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
59 template <typename ConfigurationNameT = Aws::String>
60 void SetConfigurationName(ConfigurationNameT&& value) {
61 m_configurationNameHasBeenSet = true;
62 m_configurationName = std::forward<ConfigurationNameT>(value);
63 }
64 template <typename ConfigurationNameT = Aws::String>
65 DeploymentSummary& WithConfigurationName(ConfigurationNameT&& value) {
66 SetConfigurationName(std::forward<ConfigurationNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetConfigurationVersion() const { return m_configurationVersion; }
76 inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
77 template <typename ConfigurationVersionT = Aws::String>
78 void SetConfigurationVersion(ConfigurationVersionT&& value) {
79 m_configurationVersionHasBeenSet = true;
80 m_configurationVersion = std::forward<ConfigurationVersionT>(value);
81 }
82 template <typename ConfigurationVersionT = Aws::String>
83 DeploymentSummary& WithConfigurationVersion(ConfigurationVersionT&& value) {
84 SetConfigurationVersion(std::forward<ConfigurationVersionT>(value));
85 return *this;
86 }
88
90
93 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
94 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
95 inline void SetDeploymentDurationInMinutes(int value) {
96 m_deploymentDurationInMinutesHasBeenSet = true;
97 m_deploymentDurationInMinutes = value;
98 }
101 return *this;
102 }
104
106
109 inline GrowthType GetGrowthType() const { return m_growthType; }
110 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
111 inline void SetGrowthType(GrowthType value) {
112 m_growthTypeHasBeenSet = true;
113 m_growthType = value;
114 }
116 SetGrowthType(value);
117 return *this;
118 }
120
122
126 inline double GetGrowthFactor() const { return m_growthFactor; }
127 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
128 inline void SetGrowthFactor(double value) {
129 m_growthFactorHasBeenSet = true;
130 m_growthFactor = value;
131 }
132 inline DeploymentSummary& WithGrowthFactor(double value) {
133 SetGrowthFactor(value);
134 return *this;
135 }
137
139
143 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
144 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
145 inline void SetFinalBakeTimeInMinutes(int value) {
146 m_finalBakeTimeInMinutesHasBeenSet = true;
147 m_finalBakeTimeInMinutes = value;
148 }
151 return *this;
152 }
154
156
159 inline DeploymentState GetState() const { return m_state; }
160 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
161 inline void SetState(DeploymentState value) {
162 m_stateHasBeenSet = true;
163 m_state = value;
164 }
166 SetState(value);
167 return *this;
168 }
170
172
175 inline double GetPercentageComplete() const { return m_percentageComplete; }
176 inline bool PercentageCompleteHasBeenSet() const { return m_percentageCompleteHasBeenSet; }
177 inline void SetPercentageComplete(double value) {
178 m_percentageCompleteHasBeenSet = true;
179 m_percentageComplete = value;
180 }
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
192 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
193 template <typename StartedAtT = Aws::Utils::DateTime>
194 void SetStartedAt(StartedAtT&& value) {
195 m_startedAtHasBeenSet = true;
196 m_startedAt = std::forward<StartedAtT>(value);
197 }
198 template <typename StartedAtT = Aws::Utils::DateTime>
199 DeploymentSummary& WithStartedAt(StartedAtT&& value) {
200 SetStartedAt(std::forward<StartedAtT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
210 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
211 template <typename CompletedAtT = Aws::Utils::DateTime>
212 void SetCompletedAt(CompletedAtT&& value) {
213 m_completedAtHasBeenSet = true;
214 m_completedAt = std::forward<CompletedAtT>(value);
215 }
216 template <typename CompletedAtT = Aws::Utils::DateTime>
217 DeploymentSummary& WithCompletedAt(CompletedAtT&& value) {
218 SetCompletedAt(std::forward<CompletedAtT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
228 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
229 template <typename VersionLabelT = Aws::String>
230 void SetVersionLabel(VersionLabelT&& value) {
231 m_versionLabelHasBeenSet = true;
232 m_versionLabel = std::forward<VersionLabelT>(value);
233 }
234 template <typename VersionLabelT = Aws::String>
235 DeploymentSummary& WithVersionLabel(VersionLabelT&& value) {
236 SetVersionLabel(std::forward<VersionLabelT>(value));
237 return *this;
238 }
240 private:
241 int m_deploymentNumber{0};
242
243 Aws::String m_configurationName;
244
245 Aws::String m_configurationVersion;
246
247 int m_deploymentDurationInMinutes{0};
248
249 GrowthType m_growthType{GrowthType::NOT_SET};
250
251 double m_growthFactor{0.0};
252
253 int m_finalBakeTimeInMinutes{0};
254
256
257 double m_percentageComplete{0.0};
258
259 Aws::Utils::DateTime m_startedAt{};
260
261 Aws::Utils::DateTime m_completedAt{};
262
263 Aws::String m_versionLabel;
264 bool m_deploymentNumberHasBeenSet = false;
265 bool m_configurationNameHasBeenSet = false;
266 bool m_configurationVersionHasBeenSet = false;
267 bool m_deploymentDurationInMinutesHasBeenSet = false;
268 bool m_growthTypeHasBeenSet = false;
269 bool m_growthFactorHasBeenSet = false;
270 bool m_finalBakeTimeInMinutesHasBeenSet = false;
271 bool m_stateHasBeenSet = false;
272 bool m_percentageCompleteHasBeenSet = false;
273 bool m_startedAtHasBeenSet = false;
274 bool m_completedAtHasBeenSet = false;
275 bool m_versionLabelHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace AppConfig
280} // namespace Aws
DeploymentSummary & WithPercentageComplete(double value)
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)
const Aws::String & GetVersionLabel() const
void SetConfigurationName(ConfigurationNameT &&value)
DeploymentSummary & WithState(DeploymentState 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