AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AliasSummary.h>
9#include <aws/amplifygen3/model/DeploymentBackend.h>
10#include <aws/amplifygen3/model/DeploymentBranch.h>
11#include <aws/amplifygen3/model/DeploymentSourceConfig.h>
12#include <aws/amplifygen3/model/DeploymentStatus.h>
13#include <aws/amplifygen3/model/DeploymentStatusReasonCode.h>
14#include <aws/amplifygen3/model/DeploymentSteps.h>
15#include <aws/amplifygen3/model/EnvironmentVariableOutput.h>
16#include <aws/core/http/HttpResponse.h>
17#include <aws/core/utils/DateTime.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace AmplifyGen3 {
33namespace Model {
35 public:
36 AWS_AMPLIFYGEN3_API GetDeploymentResult() = default;
39
41
44 inline const Aws::String& GetAppName() const { return m_appName; }
45 template <typename AppNameT = Aws::String>
46 void SetAppName(AppNameT&& value) {
47 m_appNameHasBeenSet = true;
48 m_appName = std::forward<AppNameT>(value);
49 }
50 template <typename AppNameT = Aws::String>
51 GetDeploymentResult& WithAppName(AppNameT&& value) {
52 SetAppName(std::forward<AppNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
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 GetDeploymentResult& 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 template <typename DeploymentArnT = Aws::String>
80 void SetDeploymentArn(DeploymentArnT&& value) {
81 m_deploymentArnHasBeenSet = true;
82 m_deploymentArn = std::forward<DeploymentArnT>(value);
83 }
84 template <typename DeploymentArnT = Aws::String>
85 GetDeploymentResult& WithDeploymentArn(DeploymentArnT&& value) {
86 SetDeploymentArn(std::forward<DeploymentArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
96 template <typename EnvironmentNameT = Aws::String>
97 void SetEnvironmentName(EnvironmentNameT&& value) {
98 m_environmentNameHasBeenSet = true;
99 m_environmentName = std::forward<EnvironmentNameT>(value);
100 }
101 template <typename EnvironmentNameT = Aws::String>
102 GetDeploymentResult& WithEnvironmentName(EnvironmentNameT&& value) {
103 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
104 return *this;
105 }
107
109
112 inline const DeploymentSourceConfig& GetSourceConfig() const { return m_sourceConfig; }
113 template <typename SourceConfigT = DeploymentSourceConfig>
114 void SetSourceConfig(SourceConfigT&& value) {
115 m_sourceConfigHasBeenSet = true;
116 m_sourceConfig = std::forward<SourceConfigT>(value);
117 }
118 template <typename SourceConfigT = DeploymentSourceConfig>
119 GetDeploymentResult& WithSourceConfig(SourceConfigT&& value) {
120 SetSourceConfig(std::forward<SourceConfigT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetDescription() const { return m_description; }
130 template <typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) {
132 m_descriptionHasBeenSet = true;
133 m_description = std::forward<DescriptionT>(value);
134 }
135 template <typename DescriptionT = Aws::String>
136 GetDeploymentResult& WithDescription(DescriptionT&& value) {
137 SetDescription(std::forward<DescriptionT>(value));
138 return *this;
139 }
141
143
146 inline DeploymentStatus GetStatus() const { return m_status; }
147 inline void SetStatus(DeploymentStatus value) {
148 m_statusHasBeenSet = true;
149 m_status = value;
150 }
152 SetStatus(value);
153 return *this;
154 }
156
158
161 inline const Aws::String& GetDomainName() const { return m_domainName; }
162 template <typename DomainNameT = Aws::String>
163 void SetDomainName(DomainNameT&& value) {
164 m_domainNameHasBeenSet = true;
165 m_domainName = std::forward<DomainNameT>(value);
166 }
167 template <typename DomainNameT = Aws::String>
168 GetDeploymentResult& WithDomainName(DomainNameT&& value) {
169 SetDomainName(std::forward<DomainNameT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<AliasSummary>& GetAliases() const { return m_aliases; }
179 template <typename AliasesT = Aws::Vector<AliasSummary>>
180 void SetAliases(AliasesT&& value) {
181 m_aliasesHasBeenSet = true;
182 m_aliases = std::forward<AliasesT>(value);
183 }
184 template <typename AliasesT = Aws::Vector<AliasSummary>>
185 GetDeploymentResult& WithAliases(AliasesT&& value) {
186 SetAliases(std::forward<AliasesT>(value));
187 return *this;
188 }
189 template <typename AliasesT = AliasSummary>
190 GetDeploymentResult& AddAliases(AliasesT&& value) {
191 m_aliasesHasBeenSet = true;
192 m_aliases.emplace_back(std::forward<AliasesT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Vector<EnvironmentVariableOutput>& GetEnvironmentVariables() const { return m_environmentVariables; }
202 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariableOutput>>
203 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
204 m_environmentVariablesHasBeenSet = true;
205 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
206 }
207 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariableOutput>>
208 GetDeploymentResult& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
209 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
210 return *this;
211 }
212 template <typename EnvironmentVariablesT = EnvironmentVariableOutput>
213 GetDeploymentResult& AddEnvironmentVariables(EnvironmentVariablesT&& value) {
214 m_environmentVariablesHasBeenSet = true;
215 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
226 template <typename CreatedAtT = Aws::Utils::DateTime>
227 void SetCreatedAt(CreatedAtT&& value) {
228 m_createdAtHasBeenSet = true;
229 m_createdAt = std::forward<CreatedAtT>(value);
230 }
231 template <typename CreatedAtT = Aws::Utils::DateTime>
232 GetDeploymentResult& WithCreatedAt(CreatedAtT&& value) {
233 SetCreatedAt(std::forward<CreatedAtT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
243 template <typename StartedAtT = Aws::Utils::DateTime>
244 void SetStartedAt(StartedAtT&& value) {
245 m_startedAtHasBeenSet = true;
246 m_startedAt = std::forward<StartedAtT>(value);
247 }
248 template <typename StartedAtT = Aws::Utils::DateTime>
249 GetDeploymentResult& WithStartedAt(StartedAtT&& value) {
250 SetStartedAt(std::forward<StartedAtT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
260 template <typename EndedAtT = Aws::Utils::DateTime>
261 void SetEndedAt(EndedAtT&& value) {
262 m_endedAtHasBeenSet = true;
263 m_endedAt = std::forward<EndedAtT>(value);
264 }
265 template <typename EndedAtT = Aws::Utils::DateTime>
266 GetDeploymentResult& WithEndedAt(EndedAtT&& value) {
267 SetEndedAt(std::forward<EndedAtT>(value));
268 return *this;
269 }
271
273
277 inline const Aws::Utils::DateTime& GetExpiredAt() const { return m_expiredAt; }
278 template <typename ExpiredAtT = Aws::Utils::DateTime>
279 void SetExpiredAt(ExpiredAtT&& value) {
280 m_expiredAtHasBeenSet = true;
281 m_expiredAt = std::forward<ExpiredAtT>(value);
282 }
283 template <typename ExpiredAtT = Aws::Utils::DateTime>
284 GetDeploymentResult& WithExpiredAt(ExpiredAtT&& value) {
285 SetExpiredAt(std::forward<ExpiredAtT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
295 template <typename StatusReasonT = Aws::String>
296 void SetStatusReason(StatusReasonT&& value) {
297 m_statusReasonHasBeenSet = true;
298 m_statusReason = std::forward<StatusReasonT>(value);
299 }
300 template <typename StatusReasonT = Aws::String>
301 GetDeploymentResult& WithStatusReason(StatusReasonT&& value) {
302 SetStatusReason(std::forward<StatusReasonT>(value));
303 return *this;
304 }
306
308
311 inline DeploymentStatusReasonCode GetStatusReasonCode() const { return m_statusReasonCode; }
313 m_statusReasonCodeHasBeenSet = true;
314 m_statusReasonCode = value;
315 }
321
323
327 inline const Aws::String& GetSessionPolicy() const { return m_sessionPolicy; }
328 template <typename SessionPolicyT = Aws::String>
329 void SetSessionPolicy(SessionPolicyT&& value) {
330 m_sessionPolicyHasBeenSet = true;
331 m_sessionPolicy = std::forward<SessionPolicyT>(value);
332 }
333 template <typename SessionPolicyT = Aws::String>
334 GetDeploymentResult& WithSessionPolicy(SessionPolicyT&& value) {
335 SetSessionPolicy(std::forward<SessionPolicyT>(value));
336 return *this;
337 }
339
341
345 inline const DeploymentBranch& GetBranch() const { return m_branch; }
346 template <typename BranchT = DeploymentBranch>
347 void SetBranch(BranchT&& value) {
348 m_branchHasBeenSet = true;
349 m_branch = std::forward<BranchT>(value);
350 }
351 template <typename BranchT = DeploymentBranch>
352 GetDeploymentResult& WithBranch(BranchT&& value) {
353 SetBranch(std::forward<BranchT>(value));
354 return *this;
355 }
357
359
363 inline const DeploymentBackend& GetBackend() const { return m_backend; }
364 template <typename BackendT = DeploymentBackend>
365 void SetBackend(BackendT&& value) {
366 m_backendHasBeenSet = true;
367 m_backend = std::forward<BackendT>(value);
368 }
369 template <typename BackendT = DeploymentBackend>
370 GetDeploymentResult& WithBackend(BackendT&& value) {
371 SetBackend(std::forward<BackendT>(value));
372 return *this;
373 }
375
377
381 inline const DeploymentSteps& GetSteps() const { return m_steps; }
382 template <typename StepsT = DeploymentSteps>
383 void SetSteps(StepsT&& value) {
384 m_stepsHasBeenSet = true;
385 m_steps = std::forward<StepsT>(value);
386 }
387 template <typename StepsT = DeploymentSteps>
389 SetSteps(std::forward<StepsT>(value));
390 return *this;
391 }
393
395
396 inline const Aws::String& GetRequestId() const { return m_requestId; }
397 template <typename RequestIdT = Aws::String>
398 void SetRequestId(RequestIdT&& value) {
399 m_requestIdHasBeenSet = true;
400 m_requestId = std::forward<RequestIdT>(value);
401 }
402 template <typename RequestIdT = Aws::String>
403 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
404 SetRequestId(std::forward<RequestIdT>(value));
405 return *this;
406 }
408 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
409
410 private:
411 Aws::String m_appName;
412
413 Aws::String m_deploymentId;
414
415 Aws::String m_deploymentArn;
416
417 Aws::String m_environmentName;
418
419 DeploymentSourceConfig m_sourceConfig;
420
421 Aws::String m_description;
422
424
425 Aws::String m_domainName;
426
428
429 Aws::Vector<EnvironmentVariableOutput> m_environmentVariables;
430
431 Aws::Utils::DateTime m_createdAt{};
432
433 Aws::Utils::DateTime m_startedAt{};
434
435 Aws::Utils::DateTime m_endedAt{};
436
437 Aws::Utils::DateTime m_expiredAt{};
438
439 Aws::String m_statusReason;
440
442
443 Aws::String m_sessionPolicy;
444
445 DeploymentBranch m_branch;
446
447 DeploymentBackend m_backend;
448
449 DeploymentSteps m_steps;
450
451 Aws::String m_requestId;
452 Aws::Http::HttpResponseCode m_HttpResponseCode;
453 bool m_appNameHasBeenSet = false;
454 bool m_deploymentIdHasBeenSet = false;
455 bool m_deploymentArnHasBeenSet = false;
456 bool m_environmentNameHasBeenSet = false;
457 bool m_sourceConfigHasBeenSet = false;
458 bool m_descriptionHasBeenSet = false;
459 bool m_statusHasBeenSet = false;
460 bool m_domainNameHasBeenSet = false;
461 bool m_aliasesHasBeenSet = false;
462 bool m_environmentVariablesHasBeenSet = false;
463 bool m_createdAtHasBeenSet = false;
464 bool m_startedAtHasBeenSet = false;
465 bool m_endedAtHasBeenSet = false;
466 bool m_expiredAtHasBeenSet = false;
467 bool m_statusReasonHasBeenSet = false;
468 bool m_statusReasonCodeHasBeenSet = false;
469 bool m_sessionPolicyHasBeenSet = false;
470 bool m_branchHasBeenSet = false;
471 bool m_backendHasBeenSet = false;
472 bool m_stepsHasBeenSet = false;
473 bool m_requestIdHasBeenSet = false;
474};
475
476} // namespace Model
477} // namespace AmplifyGen3
478} // namespace Aws
AWS_AMPLIFYGEN3_API GetDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithStartedAt(StartedAtT &&value)
const Aws::Vector< EnvironmentVariableOutput > & GetEnvironmentVariables() const
GetDeploymentResult & WithDomainName(DomainNameT &&value)
GetDeploymentResult & WithSteps(StepsT &&value)
GetDeploymentResult & WithAliases(AliasesT &&value)
GetDeploymentResult & WithSourceConfig(SourceConfigT &&value)
GetDeploymentResult & WithDeploymentArn(DeploymentArnT &&value)
GetDeploymentResult & WithStatus(DeploymentStatus value)
GetDeploymentResult & WithDeploymentId(DeploymentIdT &&value)
GetDeploymentResult & AddAliases(AliasesT &&value)
const Aws::Vector< AliasSummary > & GetAliases() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const DeploymentSourceConfig & GetSourceConfig() const
const Aws::Utils::DateTime & GetStartedAt() const
void SetEnvironmentName(EnvironmentNameT &&value)
GetDeploymentResult & WithBackend(BackendT &&value)
AWS_AMPLIFYGEN3_API GetDeploymentResult()=default
GetDeploymentResult & WithAppName(AppNameT &&value)
GetDeploymentResult & WithEnvironmentName(EnvironmentNameT &&value)
DeploymentStatusReasonCode GetStatusReasonCode() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetDeploymentResult & WithSessionPolicy(SessionPolicyT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_AMPLIFYGEN3_API GetDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithEnvironmentVariables(EnvironmentVariablesT &&value)
GetDeploymentResult & WithDescription(DescriptionT &&value)
GetDeploymentResult & WithBranch(BranchT &&value)
void SetStatusReasonCode(DeploymentStatusReasonCode value)
GetDeploymentResult & WithCreatedAt(CreatedAtT &&value)
GetDeploymentResult & WithEndedAt(EndedAtT &&value)
GetDeploymentResult & WithExpiredAt(ExpiredAtT &&value)
GetDeploymentResult & WithStatusReasonCode(DeploymentStatusReasonCode value)
GetDeploymentResult & AddEnvironmentVariables(EnvironmentVariablesT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
GetDeploymentResult & WithStatusReason(StatusReasonT &&value)
const DeploymentBackend & GetBackend() const
GetDeploymentResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetExpiredAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue