AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DeploymentSummary.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/DeploymentSourceConfig.h>
9#include <aws/amplifygen3/model/DeploymentStatus.h>
10#include <aws/amplifygen3/model/DeploymentStatusReasonCode.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 AmplifyGen3 {
24namespace Model {
25
32 public:
33 AWS_AMPLIFYGEN3_API DeploymentSummary() = default;
34 AWS_AMPLIFYGEN3_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAppName() const { return m_appName; }
43 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
44 template <typename AppNameT = Aws::String>
45 void SetAppName(AppNameT&& value) {
46 m_appNameHasBeenSet = true;
47 m_appName = std::forward<AppNameT>(value);
48 }
49 template <typename AppNameT = Aws::String>
50 DeploymentSummary& WithAppName(AppNameT&& value) {
51 SetAppName(std::forward<AppNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
61 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
62 template <typename DeploymentIdT = Aws::String>
63 void SetDeploymentId(DeploymentIdT&& value) {
64 m_deploymentIdHasBeenSet = true;
65 m_deploymentId = std::forward<DeploymentIdT>(value);
66 }
67 template <typename DeploymentIdT = Aws::String>
68 DeploymentSummary& WithDeploymentId(DeploymentIdT&& value) {
69 SetDeploymentId(std::forward<DeploymentIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
79 inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
80 template <typename DeploymentArnT = Aws::String>
81 void SetDeploymentArn(DeploymentArnT&& value) {
82 m_deploymentArnHasBeenSet = true;
83 m_deploymentArn = std::forward<DeploymentArnT>(value);
84 }
85 template <typename DeploymentArnT = Aws::String>
86 DeploymentSummary& WithDeploymentArn(DeploymentArnT&& value) {
87 SetDeploymentArn(std::forward<DeploymentArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
97 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
98 template <typename EnvironmentNameT = Aws::String>
99 void SetEnvironmentName(EnvironmentNameT&& value) {
100 m_environmentNameHasBeenSet = true;
101 m_environmentName = std::forward<EnvironmentNameT>(value);
102 }
103 template <typename EnvironmentNameT = Aws::String>
104 DeploymentSummary& WithEnvironmentName(EnvironmentNameT&& value) {
105 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
106 return *this;
107 }
109
111
114 inline DeploymentStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(DeploymentStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline const DeploymentSourceConfig& GetSourceConfig() const { return m_sourceConfig; }
131 inline bool SourceConfigHasBeenSet() const { return m_sourceConfigHasBeenSet; }
132 template <typename SourceConfigT = DeploymentSourceConfig>
133 void SetSourceConfig(SourceConfigT&& value) {
134 m_sourceConfigHasBeenSet = true;
135 m_sourceConfig = std::forward<SourceConfigT>(value);
136 }
137 template <typename SourceConfigT = DeploymentSourceConfig>
138 DeploymentSummary& WithSourceConfig(SourceConfigT&& value) {
139 SetSourceConfig(std::forward<SourceConfigT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDescription() const { return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 template <typename DescriptionT = Aws::String>
151 void SetDescription(DescriptionT&& value) {
152 m_descriptionHasBeenSet = true;
153 m_description = std::forward<DescriptionT>(value);
154 }
155 template <typename DescriptionT = Aws::String>
156 DeploymentSummary& WithDescription(DescriptionT&& value) {
157 SetDescription(std::forward<DescriptionT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetDomainName() const { return m_domainName; }
167 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
168 template <typename DomainNameT = Aws::String>
169 void SetDomainName(DomainNameT&& value) {
170 m_domainNameHasBeenSet = true;
171 m_domainName = std::forward<DomainNameT>(value);
172 }
173 template <typename DomainNameT = Aws::String>
174 DeploymentSummary& WithDomainName(DomainNameT&& value) {
175 SetDomainName(std::forward<DomainNameT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
186 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
187 template <typename CreatedAtT = Aws::Utils::DateTime>
188 void SetCreatedAt(CreatedAtT&& value) {
189 m_createdAtHasBeenSet = true;
190 m_createdAt = std::forward<CreatedAtT>(value);
191 }
192 template <typename CreatedAtT = Aws::Utils::DateTime>
193 DeploymentSummary& WithCreatedAt(CreatedAtT&& value) {
194 SetCreatedAt(std::forward<CreatedAtT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
204 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
205 template <typename StartedAtT = Aws::Utils::DateTime>
206 void SetStartedAt(StartedAtT&& value) {
207 m_startedAtHasBeenSet = true;
208 m_startedAt = std::forward<StartedAtT>(value);
209 }
210 template <typename StartedAtT = Aws::Utils::DateTime>
211 DeploymentSummary& WithStartedAt(StartedAtT&& value) {
212 SetStartedAt(std::forward<StartedAtT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
222 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
223 template <typename EndedAtT = Aws::Utils::DateTime>
224 void SetEndedAt(EndedAtT&& value) {
225 m_endedAtHasBeenSet = true;
226 m_endedAt = std::forward<EndedAtT>(value);
227 }
228 template <typename EndedAtT = Aws::Utils::DateTime>
229 DeploymentSummary& WithEndedAt(EndedAtT&& value) {
230 SetEndedAt(std::forward<EndedAtT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::Utils::DateTime& GetExpiredAt() const { return m_expiredAt; }
241 inline bool ExpiredAtHasBeenSet() const { return m_expiredAtHasBeenSet; }
242 template <typename ExpiredAtT = Aws::Utils::DateTime>
243 void SetExpiredAt(ExpiredAtT&& value) {
244 m_expiredAtHasBeenSet = true;
245 m_expiredAt = std::forward<ExpiredAtT>(value);
246 }
247 template <typename ExpiredAtT = Aws::Utils::DateTime>
248 DeploymentSummary& WithExpiredAt(ExpiredAtT&& value) {
249 SetExpiredAt(std::forward<ExpiredAtT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
259 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
260 template <typename StatusReasonT = Aws::String>
261 void SetStatusReason(StatusReasonT&& value) {
262 m_statusReasonHasBeenSet = true;
263 m_statusReason = std::forward<StatusReasonT>(value);
264 }
265 template <typename StatusReasonT = Aws::String>
266 DeploymentSummary& WithStatusReason(StatusReasonT&& value) {
267 SetStatusReason(std::forward<StatusReasonT>(value));
268 return *this;
269 }
271
273
276 inline DeploymentStatusReasonCode GetStatusReasonCode() const { return m_statusReasonCode; }
277 inline bool StatusReasonCodeHasBeenSet() const { return m_statusReasonCodeHasBeenSet; }
279 m_statusReasonCodeHasBeenSet = true;
280 m_statusReasonCode = value;
281 }
283 SetStatusReasonCode(value);
284 return *this;
285 }
287
289
292 inline const Aws::String& GetBranchName() const { return m_branchName; }
293 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
294 template <typename BranchNameT = Aws::String>
295 void SetBranchName(BranchNameT&& value) {
296 m_branchNameHasBeenSet = true;
297 m_branchName = std::forward<BranchNameT>(value);
298 }
299 template <typename BranchNameT = Aws::String>
300 DeploymentSummary& WithBranchName(BranchNameT&& value) {
301 SetBranchName(std::forward<BranchNameT>(value));
302 return *this;
303 }
305
307
311 inline const Aws::String& GetBranchArn() const { return m_branchArn; }
312 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
313 template <typename BranchArnT = Aws::String>
314 void SetBranchArn(BranchArnT&& value) {
315 m_branchArnHasBeenSet = true;
316 m_branchArn = std::forward<BranchArnT>(value);
317 }
318 template <typename BranchArnT = Aws::String>
319 DeploymentSummary& WithBranchArn(BranchArnT&& value) {
320 SetBranchArn(std::forward<BranchArnT>(value));
321 return *this;
322 }
324 private:
325 Aws::String m_appName;
326
327 Aws::String m_deploymentId;
328
329 Aws::String m_deploymentArn;
330
331 Aws::String m_environmentName;
332
334
335 DeploymentSourceConfig m_sourceConfig;
336
337 Aws::String m_description;
338
339 Aws::String m_domainName;
340
341 Aws::Utils::DateTime m_createdAt{};
342
343 Aws::Utils::DateTime m_startedAt{};
344
345 Aws::Utils::DateTime m_endedAt{};
346
347 Aws::Utils::DateTime m_expiredAt{};
348
349 Aws::String m_statusReason;
350
352
353 Aws::String m_branchName;
354
355 Aws::String m_branchArn;
356 bool m_appNameHasBeenSet = false;
357 bool m_deploymentIdHasBeenSet = false;
358 bool m_deploymentArnHasBeenSet = false;
359 bool m_environmentNameHasBeenSet = false;
360 bool m_statusHasBeenSet = false;
361 bool m_sourceConfigHasBeenSet = false;
362 bool m_descriptionHasBeenSet = false;
363 bool m_domainNameHasBeenSet = false;
364 bool m_createdAtHasBeenSet = false;
365 bool m_startedAtHasBeenSet = false;
366 bool m_endedAtHasBeenSet = false;
367 bool m_expiredAtHasBeenSet = false;
368 bool m_statusReasonHasBeenSet = false;
369 bool m_statusReasonCodeHasBeenSet = false;
370 bool m_branchNameHasBeenSet = false;
371 bool m_branchArnHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace AmplifyGen3
376} // namespace Aws
DeploymentSummary & WithBranchArn(BranchArnT &&value)
AWS_AMPLIFYGEN3_API DeploymentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithEnvironmentName(EnvironmentNameT &&value)
DeploymentSummary & WithBranchName(BranchNameT &&value)
DeploymentSummary & WithDescription(DescriptionT &&value)
DeploymentSummary & WithAppName(AppNameT &&value)
DeploymentStatusReasonCode GetStatusReasonCode() const
const Aws::String & GetDeploymentId() const
const Aws::Utils::DateTime & GetEndedAt() const
DeploymentSummary & WithDeploymentId(DeploymentIdT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
const Aws::String & GetDeploymentArn() const
DeploymentSummary & WithDeploymentArn(DeploymentArnT &&value)
const DeploymentSourceConfig & GetSourceConfig() const
DeploymentSummary & WithStatusReasonCode(DeploymentStatusReasonCode value)
void SetStatusReasonCode(DeploymentStatusReasonCode value)
const Aws::Utils::DateTime & GetExpiredAt() const
AWS_AMPLIFYGEN3_API DeploymentSummary()=default
DeploymentSummary & WithStartedAt(StartedAtT &&value)
AWS_AMPLIFYGEN3_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDeploymentArn(DeploymentArnT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::String & GetEnvironmentName() const
DeploymentSummary & WithStatus(DeploymentStatus value)
void SetDeploymentId(DeploymentIdT &&value)
DeploymentSummary & WithDomainName(DomainNameT &&value)
DeploymentSummary & WithExpiredAt(ExpiredAtT &&value)
DeploymentSummary & WithSourceConfig(SourceConfigT &&value)
DeploymentSummary & WithStatusReason(StatusReasonT &&value)
DeploymentSummary & WithEndedAt(EndedAtT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue