AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
GetApplicationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/m2/MainframeModernization_EXPORTS.h>
13#include <aws/m2/model/ApplicationLifecycle.h>
14#include <aws/m2/model/ApplicationVersionSummary.h>
15#include <aws/m2/model/DeployedVersionSummary.h>
16#include <aws/m2/model/EngineType.h>
17#include <aws/m2/model/LogGroupSummary.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace MainframeModernization {
31namespace Model {
33 public:
34 AWS_MAINFRAMEMODERNIZATION_API GetApplicationResult() = default;
37
39
42 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
43 template <typename ApplicationArnT = Aws::String>
44 void SetApplicationArn(ApplicationArnT&& value) {
45 m_applicationArnHasBeenSet = true;
46 m_applicationArn = std::forward<ApplicationArnT>(value);
47 }
48 template <typename ApplicationArnT = Aws::String>
49 GetApplicationResult& WithApplicationArn(ApplicationArnT&& value) {
50 SetApplicationArn(std::forward<ApplicationArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
60 template <typename ApplicationIdT = Aws::String>
61 void SetApplicationId(ApplicationIdT&& value) {
62 m_applicationIdHasBeenSet = true;
63 m_applicationId = std::forward<ApplicationIdT>(value);
64 }
65 template <typename ApplicationIdT = Aws::String>
66 GetApplicationResult& WithApplicationId(ApplicationIdT&& value) {
67 SetApplicationId(std::forward<ApplicationIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
77 template <typename CreationTimeT = Aws::Utils::DateTime>
78 void SetCreationTime(CreationTimeT&& value) {
79 m_creationTimeHasBeenSet = true;
80 m_creationTime = std::forward<CreationTimeT>(value);
81 }
82 template <typename CreationTimeT = Aws::Utils::DateTime>
83 GetApplicationResult& WithCreationTime(CreationTimeT&& value) {
84 SetCreationTime(std::forward<CreationTimeT>(value));
85 return *this;
86 }
88
90
93 inline const DeployedVersionSummary& GetDeployedVersion() const { return m_deployedVersion; }
94 template <typename DeployedVersionT = DeployedVersionSummary>
95 void SetDeployedVersion(DeployedVersionT&& value) {
96 m_deployedVersionHasBeenSet = true;
97 m_deployedVersion = std::forward<DeployedVersionT>(value);
98 }
99 template <typename DeployedVersionT = DeployedVersionSummary>
100 GetApplicationResult& WithDeployedVersion(DeployedVersionT&& value) {
101 SetDeployedVersion(std::forward<DeployedVersionT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 template <typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) {
113 m_descriptionHasBeenSet = true;
114 m_description = std::forward<DescriptionT>(value);
115 }
116 template <typename DescriptionT = Aws::String>
117 GetApplicationResult& WithDescription(DescriptionT&& value) {
118 SetDescription(std::forward<DescriptionT>(value));
119 return *this;
120 }
122
124
127 inline EngineType GetEngineType() const { return m_engineType; }
128 inline void SetEngineType(EngineType value) {
129 m_engineTypeHasBeenSet = true;
130 m_engineType = value;
131 }
133 SetEngineType(value);
134 return *this;
135 }
137
139
143 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
144 template <typename EnvironmentIdT = Aws::String>
145 void SetEnvironmentId(EnvironmentIdT&& value) {
146 m_environmentIdHasBeenSet = true;
147 m_environmentId = std::forward<EnvironmentIdT>(value);
148 }
149 template <typename EnvironmentIdT = Aws::String>
150 GetApplicationResult& WithEnvironmentId(EnvironmentIdT&& value) {
151 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
161 template <typename KmsKeyIdT = Aws::String>
162 void SetKmsKeyId(KmsKeyIdT&& value) {
163 m_kmsKeyIdHasBeenSet = true;
164 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
165 }
166 template <typename KmsKeyIdT = Aws::String>
167 GetApplicationResult& WithKmsKeyId(KmsKeyIdT&& value) {
168 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::Utils::DateTime& GetLastStartTime() const { return m_lastStartTime; }
179 template <typename LastStartTimeT = Aws::Utils::DateTime>
180 void SetLastStartTime(LastStartTimeT&& value) {
181 m_lastStartTimeHasBeenSet = true;
182 m_lastStartTime = std::forward<LastStartTimeT>(value);
183 }
184 template <typename LastStartTimeT = Aws::Utils::DateTime>
185 GetApplicationResult& WithLastStartTime(LastStartTimeT&& value) {
186 SetLastStartTime(std::forward<LastStartTimeT>(value));
187 return *this;
188 }
190
192
195 inline const ApplicationVersionSummary& GetLatestVersion() const { return m_latestVersion; }
196 template <typename LatestVersionT = ApplicationVersionSummary>
197 void SetLatestVersion(LatestVersionT&& value) {
198 m_latestVersionHasBeenSet = true;
199 m_latestVersion = std::forward<LatestVersionT>(value);
200 }
201 template <typename LatestVersionT = ApplicationVersionSummary>
202 GetApplicationResult& WithLatestVersion(LatestVersionT&& value) {
203 SetLatestVersion(std::forward<LatestVersionT>(value));
204 return *this;
205 }
207
209
214 inline const Aws::Vector<Aws::String>& GetListenerArns() const { return m_listenerArns; }
215 template <typename ListenerArnsT = Aws::Vector<Aws::String>>
216 void SetListenerArns(ListenerArnsT&& value) {
217 m_listenerArnsHasBeenSet = true;
218 m_listenerArns = std::forward<ListenerArnsT>(value);
219 }
220 template <typename ListenerArnsT = Aws::Vector<Aws::String>>
221 GetApplicationResult& WithListenerArns(ListenerArnsT&& value) {
222 SetListenerArns(std::forward<ListenerArnsT>(value));
223 return *this;
224 }
225 template <typename ListenerArnsT = Aws::String>
226 GetApplicationResult& AddListenerArns(ListenerArnsT&& value) {
227 m_listenerArnsHasBeenSet = true;
228 m_listenerArns.emplace_back(std::forward<ListenerArnsT>(value));
229 return *this;
230 }
232
234
238 inline const Aws::Vector<int>& GetListenerPorts() const { return m_listenerPorts; }
239 template <typename ListenerPortsT = Aws::Vector<int>>
240 void SetListenerPorts(ListenerPortsT&& value) {
241 m_listenerPortsHasBeenSet = true;
242 m_listenerPorts = std::forward<ListenerPortsT>(value);
243 }
244 template <typename ListenerPortsT = Aws::Vector<int>>
245 GetApplicationResult& WithListenerPorts(ListenerPortsT&& value) {
246 SetListenerPorts(std::forward<ListenerPortsT>(value));
247 return *this;
248 }
250 m_listenerPortsHasBeenSet = true;
251 m_listenerPorts.push_back(value);
252 return *this;
253 }
255
257
261 inline const Aws::String& GetLoadBalancerDnsName() const { return m_loadBalancerDnsName; }
262 template <typename LoadBalancerDnsNameT = Aws::String>
263 void SetLoadBalancerDnsName(LoadBalancerDnsNameT&& value) {
264 m_loadBalancerDnsNameHasBeenSet = true;
265 m_loadBalancerDnsName = std::forward<LoadBalancerDnsNameT>(value);
266 }
267 template <typename LoadBalancerDnsNameT = Aws::String>
268 GetApplicationResult& WithLoadBalancerDnsName(LoadBalancerDnsNameT&& value) {
269 SetLoadBalancerDnsName(std::forward<LoadBalancerDnsNameT>(value));
270 return *this;
271 }
273
275
281 inline const Aws::Vector<LogGroupSummary>& GetLogGroups() const { return m_logGroups; }
282 template <typename LogGroupsT = Aws::Vector<LogGroupSummary>>
283 void SetLogGroups(LogGroupsT&& value) {
284 m_logGroupsHasBeenSet = true;
285 m_logGroups = std::forward<LogGroupsT>(value);
286 }
287 template <typename LogGroupsT = Aws::Vector<LogGroupSummary>>
288 GetApplicationResult& WithLogGroups(LogGroupsT&& value) {
289 SetLogGroups(std::forward<LogGroupsT>(value));
290 return *this;
291 }
292 template <typename LogGroupsT = LogGroupSummary>
293 GetApplicationResult& AddLogGroups(LogGroupsT&& value) {
294 m_logGroupsHasBeenSet = true;
295 m_logGroups.emplace_back(std::forward<LogGroupsT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::String& GetName() const { return m_name; }
305 template <typename NameT = Aws::String>
306 void SetName(NameT&& value) {
307 m_nameHasBeenSet = true;
308 m_name = std::forward<NameT>(value);
309 }
310 template <typename NameT = Aws::String>
312 SetName(std::forward<NameT>(value));
313 return *this;
314 }
316
318
322 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
323 template <typename RoleArnT = Aws::String>
324 void SetRoleArn(RoleArnT&& value) {
325 m_roleArnHasBeenSet = true;
326 m_roleArn = std::forward<RoleArnT>(value);
327 }
328 template <typename RoleArnT = Aws::String>
330 SetRoleArn(std::forward<RoleArnT>(value));
331 return *this;
332 }
334
336
339 inline ApplicationLifecycle GetStatus() const { return m_status; }
340 inline void SetStatus(ApplicationLifecycle value) {
341 m_statusHasBeenSet = true;
342 m_status = value;
343 }
345 SetStatus(value);
346 return *this;
347 }
349
351
354 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
355 template <typename StatusReasonT = Aws::String>
356 void SetStatusReason(StatusReasonT&& value) {
357 m_statusReasonHasBeenSet = true;
358 m_statusReason = std::forward<StatusReasonT>(value);
359 }
360 template <typename StatusReasonT = Aws::String>
361 GetApplicationResult& WithStatusReason(StatusReasonT&& value) {
362 SetStatusReason(std::forward<StatusReasonT>(value));
363 return *this;
364 }
366
368
371 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
372 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
373 void SetTags(TagsT&& value) {
374 m_tagsHasBeenSet = true;
375 m_tags = std::forward<TagsT>(value);
376 }
377 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
379 SetTags(std::forward<TagsT>(value));
380 return *this;
381 }
382 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
383 GetApplicationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
384 m_tagsHasBeenSet = true;
385 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
386 return *this;
387 }
389
391
395 inline const Aws::Vector<Aws::String>& GetTargetGroupArns() const { return m_targetGroupArns; }
396 template <typename TargetGroupArnsT = Aws::Vector<Aws::String>>
397 void SetTargetGroupArns(TargetGroupArnsT&& value) {
398 m_targetGroupArnsHasBeenSet = true;
399 m_targetGroupArns = std::forward<TargetGroupArnsT>(value);
400 }
401 template <typename TargetGroupArnsT = Aws::Vector<Aws::String>>
402 GetApplicationResult& WithTargetGroupArns(TargetGroupArnsT&& value) {
403 SetTargetGroupArns(std::forward<TargetGroupArnsT>(value));
404 return *this;
405 }
406 template <typename TargetGroupArnsT = Aws::String>
407 GetApplicationResult& AddTargetGroupArns(TargetGroupArnsT&& value) {
408 m_targetGroupArnsHasBeenSet = true;
409 m_targetGroupArns.emplace_back(std::forward<TargetGroupArnsT>(value));
410 return *this;
411 }
413
415
416 inline const Aws::String& GetRequestId() const { return m_requestId; }
417 template <typename RequestIdT = Aws::String>
418 void SetRequestId(RequestIdT&& value) {
419 m_requestIdHasBeenSet = true;
420 m_requestId = std::forward<RequestIdT>(value);
421 }
422 template <typename RequestIdT = Aws::String>
423 GetApplicationResult& WithRequestId(RequestIdT&& value) {
424 SetRequestId(std::forward<RequestIdT>(value));
425 return *this;
426 }
428 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
429
430 private:
431 Aws::String m_applicationArn;
432
433 Aws::String m_applicationId;
434
435 Aws::Utils::DateTime m_creationTime{};
436
437 DeployedVersionSummary m_deployedVersion;
438
439 Aws::String m_description;
440
441 EngineType m_engineType{EngineType::NOT_SET};
442
443 Aws::String m_environmentId;
444
445 Aws::String m_kmsKeyId;
446
447 Aws::Utils::DateTime m_lastStartTime{};
448
449 ApplicationVersionSummary m_latestVersion;
450
451 Aws::Vector<Aws::String> m_listenerArns;
452
453 Aws::Vector<int> m_listenerPorts;
454
455 Aws::String m_loadBalancerDnsName;
456
458
459 Aws::String m_name;
460
461 Aws::String m_roleArn;
462
464
465 Aws::String m_statusReason;
466
468
469 Aws::Vector<Aws::String> m_targetGroupArns;
470
471 Aws::String m_requestId;
472 Aws::Http::HttpResponseCode m_HttpResponseCode;
473 bool m_applicationArnHasBeenSet = false;
474 bool m_applicationIdHasBeenSet = false;
475 bool m_creationTimeHasBeenSet = false;
476 bool m_deployedVersionHasBeenSet = false;
477 bool m_descriptionHasBeenSet = false;
478 bool m_engineTypeHasBeenSet = false;
479 bool m_environmentIdHasBeenSet = false;
480 bool m_kmsKeyIdHasBeenSet = false;
481 bool m_lastStartTimeHasBeenSet = false;
482 bool m_latestVersionHasBeenSet = false;
483 bool m_listenerArnsHasBeenSet = false;
484 bool m_listenerPortsHasBeenSet = false;
485 bool m_loadBalancerDnsNameHasBeenSet = false;
486 bool m_logGroupsHasBeenSet = false;
487 bool m_nameHasBeenSet = false;
488 bool m_roleArnHasBeenSet = false;
489 bool m_statusHasBeenSet = false;
490 bool m_statusReasonHasBeenSet = false;
491 bool m_tagsHasBeenSet = false;
492 bool m_targetGroupArnsHasBeenSet = false;
493 bool m_requestIdHasBeenSet = false;
494};
495
496} // namespace Model
497} // namespace MainframeModernization
498} // namespace Aws
const Aws::Vector< LogGroupSummary > & GetLogGroups() const
GetApplicationResult & WithDeployedVersion(DeployedVersionT &&value)
GetApplicationResult & WithKmsKeyId(KmsKeyIdT &&value)
GetApplicationResult & WithEngineType(EngineType value)
const ApplicationVersionSummary & GetLatestVersion() const
AWS_MAINFRAMEMODERNIZATION_API GetApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const DeployedVersionSummary & GetDeployedVersion() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetApplicationResult & WithListenerArns(ListenerArnsT &&value)
GetApplicationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetApplicationResult & WithCreationTime(CreationTimeT &&value)
GetApplicationResult & WithListenerPorts(ListenerPortsT &&value)
GetApplicationResult & WithLatestVersion(LatestVersionT &&value)
GetApplicationResult & WithStatus(ApplicationLifecycle value)
GetApplicationResult & WithLastStartTime(LastStartTimeT &&value)
const Aws::Vector< Aws::String > & GetListenerArns() const
GetApplicationResult & WithRequestId(RequestIdT &&value)
GetApplicationResult & WithTargetGroupArns(TargetGroupArnsT &&value)
GetApplicationResult & WithDescription(DescriptionT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetApplicationResult()=default
GetApplicationResult & WithApplicationId(ApplicationIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithLoadBalancerDnsName(LoadBalancerDnsNameT &&value)
const Aws::Vector< Aws::String > & GetTargetGroupArns() const
GetApplicationResult & AddLogGroups(LogGroupsT &&value)
GetApplicationResult & AddListenerArns(ListenerArnsT &&value)
GetApplicationResult & WithStatusReason(StatusReasonT &&value)
GetApplicationResult & WithLogGroups(LogGroupsT &&value)
GetApplicationResult & WithEnvironmentId(EnvironmentIdT &&value)
GetApplicationResult & AddTargetGroupArns(TargetGroupArnsT &&value)
GetApplicationResult & WithApplicationArn(ApplicationArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue