AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ConfigurationNameT = Aws::String>
60 void SetConfigurationName(ConfigurationNameT&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::forward<ConfigurationNameT>(value); }
61 template<typename ConfigurationNameT = Aws::String>
62 DeploymentSummary& WithConfigurationName(ConfigurationNameT&& value) { SetConfigurationName(std::forward<ConfigurationNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetConfigurationVersion() const { return m_configurationVersion; }
70 inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
71 template<typename ConfigurationVersionT = Aws::String>
72 void SetConfigurationVersion(ConfigurationVersionT&& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = std::forward<ConfigurationVersionT>(value); }
73 template<typename ConfigurationVersionT = Aws::String>
74 DeploymentSummary& WithConfigurationVersion(ConfigurationVersionT&& value) { SetConfigurationVersion(std::forward<ConfigurationVersionT>(value)); return *this;}
76
78
81 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
82 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
83 inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
86
88
91 inline GrowthType GetGrowthType() const { return m_growthType; }
92 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
93 inline void SetGrowthType(GrowthType value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
94 inline DeploymentSummary& WithGrowthType(GrowthType value) { SetGrowthType(value); return *this;}
96
98
102 inline double GetGrowthFactor() const { return m_growthFactor; }
103 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
104 inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
105 inline DeploymentSummary& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
107
109
113 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
114 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
115 inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
118
120
123 inline DeploymentState GetState() const { return m_state; }
124 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
125 inline void SetState(DeploymentState value) { m_stateHasBeenSet = true; m_state = value; }
126 inline DeploymentSummary& WithState(DeploymentState value) { SetState(value); return *this;}
128
130
133 inline double GetPercentageComplete() const { return m_percentageComplete; }
134 inline bool PercentageCompleteHasBeenSet() const { return m_percentageCompleteHasBeenSet; }
135 inline void SetPercentageComplete(double value) { m_percentageCompleteHasBeenSet = true; m_percentageComplete = value; }
136 inline DeploymentSummary& WithPercentageComplete(double value) { SetPercentageComplete(value); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
144 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
145 template<typename StartedAtT = Aws::Utils::DateTime>
146 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
147 template<typename StartedAtT = Aws::Utils::DateTime>
148 DeploymentSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
156 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
157 template<typename CompletedAtT = Aws::Utils::DateTime>
158 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
159 template<typename CompletedAtT = Aws::Utils::DateTime>
160 DeploymentSummary& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
162
164
167 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
168 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
169 template<typename VersionLabelT = Aws::String>
170 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
171 template<typename VersionLabelT = Aws::String>
172 DeploymentSummary& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
174 private:
175
176 int m_deploymentNumber{0};
177 bool m_deploymentNumberHasBeenSet = false;
178
179 Aws::String m_configurationName;
180 bool m_configurationNameHasBeenSet = false;
181
182 Aws::String m_configurationVersion;
183 bool m_configurationVersionHasBeenSet = false;
184
185 int m_deploymentDurationInMinutes{0};
186 bool m_deploymentDurationInMinutesHasBeenSet = false;
187
188 GrowthType m_growthType{GrowthType::NOT_SET};
189 bool m_growthTypeHasBeenSet = false;
190
191 double m_growthFactor{0.0};
192 bool m_growthFactorHasBeenSet = false;
193
194 int m_finalBakeTimeInMinutes{0};
195 bool m_finalBakeTimeInMinutesHasBeenSet = false;
196
198 bool m_stateHasBeenSet = false;
199
200 double m_percentageComplete{0.0};
201 bool m_percentageCompleteHasBeenSet = false;
202
203 Aws::Utils::DateTime m_startedAt{};
204 bool m_startedAtHasBeenSet = false;
205
206 Aws::Utils::DateTime m_completedAt{};
207 bool m_completedAtHasBeenSet = false;
208
209 Aws::String m_versionLabel;
210 bool m_versionLabelHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace AppConfig
215} // 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