AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentSummary.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appconfig/model/GrowthType.h>
10#include <aws/appconfig/model/DeploymentState.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppConfig
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_APPCONFIG_API DeploymentSummary();
38 AWS_APPCONFIG_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
48 inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
49 inline void SetDeploymentNumber(int value) { m_deploymentNumberHasBeenSet = true; m_deploymentNumber = value; }
50 inline DeploymentSummary& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
52
54
57 inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
58 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
59 inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
60 inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
61 inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
62 inline DeploymentSummary& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
63 inline DeploymentSummary& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
64 inline DeploymentSummary& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
66
68
71 inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
72 inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
73 inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = value; }
74 inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = std::move(value); }
75 inline void SetConfigurationVersion(const char* value) { m_configurationVersionHasBeenSet = true; m_configurationVersion.assign(value); }
77 inline DeploymentSummary& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
78 inline DeploymentSummary& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
80
82
85 inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
86 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
87 inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
90
92
95 inline const GrowthType& GetGrowthType() const{ return m_growthType; }
96 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
97 inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
98 inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); }
99 inline DeploymentSummary& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
100 inline DeploymentSummary& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
102
104
108 inline double GetGrowthFactor() const{ return m_growthFactor; }
109 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
110 inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
111 inline DeploymentSummary& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
113
115
119 inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
120 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
121 inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
124
126
129 inline const DeploymentState& GetState() const{ return m_state; }
130 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
131 inline void SetState(const DeploymentState& value) { m_stateHasBeenSet = true; m_state = value; }
132 inline void SetState(DeploymentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
133 inline DeploymentSummary& WithState(const DeploymentState& value) { SetState(value); return *this;}
134 inline DeploymentSummary& WithState(DeploymentState&& value) { SetState(std::move(value)); return *this;}
136
138
141 inline double GetPercentageComplete() const{ return m_percentageComplete; }
142 inline bool PercentageCompleteHasBeenSet() const { return m_percentageCompleteHasBeenSet; }
143 inline void SetPercentageComplete(double value) { m_percentageCompleteHasBeenSet = true; m_percentageComplete = value; }
144 inline DeploymentSummary& WithPercentageComplete(double value) { SetPercentageComplete(value); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
152 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
153 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
154 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
155 inline DeploymentSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
156 inline DeploymentSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
164 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
165 inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
166 inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
167 inline DeploymentSummary& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
168 inline DeploymentSummary& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
170
172
175 inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
176 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
177 inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
178 inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
179 inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
180 inline DeploymentSummary& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
181 inline DeploymentSummary& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
182 inline DeploymentSummary& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
184 private:
185
186 int m_deploymentNumber;
187 bool m_deploymentNumberHasBeenSet = false;
188
189 Aws::String m_configurationName;
190 bool m_configurationNameHasBeenSet = false;
191
192 Aws::String m_configurationVersion;
193 bool m_configurationVersionHasBeenSet = false;
194
195 int m_deploymentDurationInMinutes;
196 bool m_deploymentDurationInMinutesHasBeenSet = false;
197
198 GrowthType m_growthType;
199 bool m_growthTypeHasBeenSet = false;
200
201 double m_growthFactor;
202 bool m_growthFactorHasBeenSet = false;
203
204 int m_finalBakeTimeInMinutes;
205 bool m_finalBakeTimeInMinutesHasBeenSet = false;
206
207 DeploymentState m_state;
208 bool m_stateHasBeenSet = false;
209
210 double m_percentageComplete;
211 bool m_percentageCompleteHasBeenSet = false;
212
213 Aws::Utils::DateTime m_startedAt;
214 bool m_startedAtHasBeenSet = false;
215
216 Aws::Utils::DateTime m_completedAt;
217 bool m_completedAtHasBeenSet = false;
218
219 Aws::String m_versionLabel;
220 bool m_versionLabelHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace AppConfig
225} // namespace Aws
DeploymentSummary & WithPercentageComplete(double value)
DeploymentSummary & WithConfigurationVersion(const char *value)
DeploymentSummary & WithGrowthType(const GrowthType &value)
DeploymentSummary & WithConfigurationVersion(const Aws::String &value)
DeploymentSummary & WithStartedAt(const Aws::Utils::DateTime &value)
DeploymentSummary & WithVersionLabel(Aws::String &&value)
const Aws::String & GetConfigurationName() const
DeploymentSummary & WithConfigurationName(const char *value)
void SetState(DeploymentState &&value)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetConfigurationVersion() const
AWS_APPCONFIG_API DeploymentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfigurationVersion(Aws::String &&value)
DeploymentSummary & WithDeploymentDurationInMinutes(int value)
const DeploymentState & GetState() const
void SetState(const DeploymentState &value)
DeploymentSummary & WithFinalBakeTimeInMinutes(int value)
const Aws::String & GetVersionLabel() const
void SetCompletedAt(Aws::Utils::DateTime &&value)
void SetConfigurationVersion(const Aws::String &value)
DeploymentSummary & WithState(DeploymentState &&value)
DeploymentSummary & WithConfigurationName(const Aws::String &value)
AWS_APPCONFIG_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithDeploymentNumber(int value)
DeploymentSummary & WithConfigurationName(Aws::String &&value)
void SetConfigurationName(Aws::String &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
DeploymentSummary & WithCompletedAt(Aws::Utils::DateTime &&value)
void SetGrowthType(const GrowthType &value)
void SetConfigurationVersion(const char *value)
void SetVersionLabel(const Aws::String &value)
const Aws::Utils::DateTime & GetCompletedAt() const
const Aws::Utils::DateTime & GetStartedAt() const
DeploymentSummary & WithVersionLabel(const char *value)
void SetStartedAt(Aws::Utils::DateTime &&value)
DeploymentSummary & WithConfigurationVersion(Aws::String &&value)
void SetCompletedAt(const Aws::Utils::DateTime &value)
DeploymentSummary & WithGrowthFactor(double value)
DeploymentSummary & WithGrowthType(GrowthType &&value)
DeploymentSummary & WithCompletedAt(const Aws::Utils::DateTime &value)
DeploymentSummary & WithStartedAt(Aws::Utils::DateTime &&value)
DeploymentSummary & WithVersionLabel(const Aws::String &value)
void SetConfigurationName(const Aws::String &value)
DeploymentSummary & WithState(const DeploymentState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue