AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetApplicationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/m2/MainframeModernization_EXPORTS.h>
12#include <aws/m2/model/ApplicationLifecycle.h>
13#include <aws/m2/model/ApplicationVersionSummary.h>
14#include <aws/m2/model/DeployedVersionSummary.h>
15#include <aws/m2/model/EngineType.h>
16#include <aws/m2/model/LogGroupSummary.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace MainframeModernization {
30namespace Model {
32 public:
33 AWS_MAINFRAMEMODERNIZATION_API GetApplicationResult() = default;
36
38
41 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
42 template <typename ApplicationArnT = Aws::String>
43 void SetApplicationArn(ApplicationArnT&& value) {
44 m_applicationArnHasBeenSet = true;
45 m_applicationArn = std::forward<ApplicationArnT>(value);
46 }
47 template <typename ApplicationArnT = Aws::String>
48 GetApplicationResult& WithApplicationArn(ApplicationArnT&& value) {
49 SetApplicationArn(std::forward<ApplicationArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
59 template <typename ApplicationIdT = Aws::String>
60 void SetApplicationId(ApplicationIdT&& value) {
61 m_applicationIdHasBeenSet = true;
62 m_applicationId = std::forward<ApplicationIdT>(value);
63 }
64 template <typename ApplicationIdT = Aws::String>
65 GetApplicationResult& WithApplicationId(ApplicationIdT&& value) {
66 SetApplicationId(std::forward<ApplicationIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
76 template <typename CreationTimeT = Aws::Utils::DateTime>
77 void SetCreationTime(CreationTimeT&& value) {
78 m_creationTimeHasBeenSet = true;
79 m_creationTime = std::forward<CreationTimeT>(value);
80 }
81 template <typename CreationTimeT = Aws::Utils::DateTime>
82 GetApplicationResult& WithCreationTime(CreationTimeT&& value) {
83 SetCreationTime(std::forward<CreationTimeT>(value));
84 return *this;
85 }
87
89
92 inline const DeployedVersionSummary& GetDeployedVersion() const { return m_deployedVersion; }
93 template <typename DeployedVersionT = DeployedVersionSummary>
94 void SetDeployedVersion(DeployedVersionT&& value) {
95 m_deployedVersionHasBeenSet = true;
96 m_deployedVersion = std::forward<DeployedVersionT>(value);
97 }
98 template <typename DeployedVersionT = DeployedVersionSummary>
99 GetApplicationResult& WithDeployedVersion(DeployedVersionT&& value) {
100 SetDeployedVersion(std::forward<DeployedVersionT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDescription() const { return m_description; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 GetApplicationResult& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
126 inline EngineType GetEngineType() const { return m_engineType; }
127 inline void SetEngineType(EngineType value) {
128 m_engineTypeHasBeenSet = true;
129 m_engineType = value;
130 }
132 SetEngineType(value);
133 return *this;
134 }
136
138
142 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
143 template <typename EnvironmentIdT = Aws::String>
144 void SetEnvironmentId(EnvironmentIdT&& value) {
145 m_environmentIdHasBeenSet = true;
146 m_environmentId = std::forward<EnvironmentIdT>(value);
147 }
148 template <typename EnvironmentIdT = Aws::String>
149 GetApplicationResult& WithEnvironmentId(EnvironmentIdT&& value) {
150 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
160 template <typename KmsKeyIdT = Aws::String>
161 void SetKmsKeyId(KmsKeyIdT&& value) {
162 m_kmsKeyIdHasBeenSet = true;
163 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
164 }
165 template <typename KmsKeyIdT = Aws::String>
166 GetApplicationResult& WithKmsKeyId(KmsKeyIdT&& value) {
167 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
168 return *this;
169 }
171
173
177 inline const Aws::Utils::DateTime& GetLastStartTime() const { return m_lastStartTime; }
178 template <typename LastStartTimeT = Aws::Utils::DateTime>
179 void SetLastStartTime(LastStartTimeT&& value) {
180 m_lastStartTimeHasBeenSet = true;
181 m_lastStartTime = std::forward<LastStartTimeT>(value);
182 }
183 template <typename LastStartTimeT = Aws::Utils::DateTime>
184 GetApplicationResult& WithLastStartTime(LastStartTimeT&& value) {
185 SetLastStartTime(std::forward<LastStartTimeT>(value));
186 return *this;
187 }
189
191
194 inline const ApplicationVersionSummary& GetLatestVersion() const { return m_latestVersion; }
195 template <typename LatestVersionT = ApplicationVersionSummary>
196 void SetLatestVersion(LatestVersionT&& value) {
197 m_latestVersionHasBeenSet = true;
198 m_latestVersion = std::forward<LatestVersionT>(value);
199 }
200 template <typename LatestVersionT = ApplicationVersionSummary>
201 GetApplicationResult& WithLatestVersion(LatestVersionT&& value) {
202 SetLatestVersion(std::forward<LatestVersionT>(value));
203 return *this;
204 }
206
208
213 inline const Aws::Vector<Aws::String>& GetListenerArns() const { return m_listenerArns; }
214 template <typename ListenerArnsT = Aws::Vector<Aws::String>>
215 void SetListenerArns(ListenerArnsT&& value) {
216 m_listenerArnsHasBeenSet = true;
217 m_listenerArns = std::forward<ListenerArnsT>(value);
218 }
219 template <typename ListenerArnsT = Aws::Vector<Aws::String>>
220 GetApplicationResult& WithListenerArns(ListenerArnsT&& value) {
221 SetListenerArns(std::forward<ListenerArnsT>(value));
222 return *this;
223 }
224 template <typename ListenerArnsT = Aws::String>
225 GetApplicationResult& AddListenerArns(ListenerArnsT&& value) {
226 m_listenerArnsHasBeenSet = true;
227 m_listenerArns.emplace_back(std::forward<ListenerArnsT>(value));
228 return *this;
229 }
231
233
237 inline const Aws::Vector<int>& GetListenerPorts() const { return m_listenerPorts; }
238 template <typename ListenerPortsT = Aws::Vector<int>>
239 void SetListenerPorts(ListenerPortsT&& value) {
240 m_listenerPortsHasBeenSet = true;
241 m_listenerPorts = std::forward<ListenerPortsT>(value);
242 }
243 template <typename ListenerPortsT = Aws::Vector<int>>
244 GetApplicationResult& WithListenerPorts(ListenerPortsT&& value) {
245 SetListenerPorts(std::forward<ListenerPortsT>(value));
246 return *this;
247 }
249 m_listenerPortsHasBeenSet = true;
250 m_listenerPorts.push_back(value);
251 return *this;
252 }
254
256
260 inline const Aws::String& GetLoadBalancerDnsName() const { return m_loadBalancerDnsName; }
261 template <typename LoadBalancerDnsNameT = Aws::String>
262 void SetLoadBalancerDnsName(LoadBalancerDnsNameT&& value) {
263 m_loadBalancerDnsNameHasBeenSet = true;
264 m_loadBalancerDnsName = std::forward<LoadBalancerDnsNameT>(value);
265 }
266 template <typename LoadBalancerDnsNameT = Aws::String>
267 GetApplicationResult& WithLoadBalancerDnsName(LoadBalancerDnsNameT&& value) {
268 SetLoadBalancerDnsName(std::forward<LoadBalancerDnsNameT>(value));
269 return *this;
270 }
272
274
280 inline const Aws::Vector<LogGroupSummary>& GetLogGroups() const { return m_logGroups; }
281 template <typename LogGroupsT = Aws::Vector<LogGroupSummary>>
282 void SetLogGroups(LogGroupsT&& value) {
283 m_logGroupsHasBeenSet = true;
284 m_logGroups = std::forward<LogGroupsT>(value);
285 }
286 template <typename LogGroupsT = Aws::Vector<LogGroupSummary>>
287 GetApplicationResult& WithLogGroups(LogGroupsT&& value) {
288 SetLogGroups(std::forward<LogGroupsT>(value));
289 return *this;
290 }
291 template <typename LogGroupsT = LogGroupSummary>
292 GetApplicationResult& AddLogGroups(LogGroupsT&& value) {
293 m_logGroupsHasBeenSet = true;
294 m_logGroups.emplace_back(std::forward<LogGroupsT>(value));
295 return *this;
296 }
298
300
303 inline const Aws::String& GetName() const { return m_name; }
304 template <typename NameT = Aws::String>
305 void SetName(NameT&& value) {
306 m_nameHasBeenSet = true;
307 m_name = std::forward<NameT>(value);
308 }
309 template <typename NameT = Aws::String>
311 SetName(std::forward<NameT>(value));
312 return *this;
313 }
315
317
321 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
322 template <typename RoleArnT = Aws::String>
323 void SetRoleArn(RoleArnT&& value) {
324 m_roleArnHasBeenSet = true;
325 m_roleArn = std::forward<RoleArnT>(value);
326 }
327 template <typename RoleArnT = Aws::String>
329 SetRoleArn(std::forward<RoleArnT>(value));
330 return *this;
331 }
333
335
338 inline ApplicationLifecycle GetStatus() const { return m_status; }
339 inline void SetStatus(ApplicationLifecycle value) {
340 m_statusHasBeenSet = true;
341 m_status = value;
342 }
344 SetStatus(value);
345 return *this;
346 }
348
350
353 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
354 template <typename StatusReasonT = Aws::String>
355 void SetStatusReason(StatusReasonT&& value) {
356 m_statusReasonHasBeenSet = true;
357 m_statusReason = std::forward<StatusReasonT>(value);
358 }
359 template <typename StatusReasonT = Aws::String>
360 GetApplicationResult& WithStatusReason(StatusReasonT&& value) {
361 SetStatusReason(std::forward<StatusReasonT>(value));
362 return *this;
363 }
365
367
370 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
371 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
372 void SetTags(TagsT&& value) {
373 m_tagsHasBeenSet = true;
374 m_tags = std::forward<TagsT>(value);
375 }
376 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
378 SetTags(std::forward<TagsT>(value));
379 return *this;
380 }
381 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
382 GetApplicationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
383 m_tagsHasBeenSet = true;
384 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
385 return *this;
386 }
388
390
394 inline const Aws::Vector<Aws::String>& GetTargetGroupArns() const { return m_targetGroupArns; }
395 template <typename TargetGroupArnsT = Aws::Vector<Aws::String>>
396 void SetTargetGroupArns(TargetGroupArnsT&& value) {
397 m_targetGroupArnsHasBeenSet = true;
398 m_targetGroupArns = std::forward<TargetGroupArnsT>(value);
399 }
400 template <typename TargetGroupArnsT = Aws::Vector<Aws::String>>
401 GetApplicationResult& WithTargetGroupArns(TargetGroupArnsT&& value) {
402 SetTargetGroupArns(std::forward<TargetGroupArnsT>(value));
403 return *this;
404 }
405 template <typename TargetGroupArnsT = Aws::String>
406 GetApplicationResult& AddTargetGroupArns(TargetGroupArnsT&& value) {
407 m_targetGroupArnsHasBeenSet = true;
408 m_targetGroupArns.emplace_back(std::forward<TargetGroupArnsT>(value));
409 return *this;
410 }
412
414
415 inline const Aws::String& GetRequestId() const { return m_requestId; }
416 template <typename RequestIdT = Aws::String>
417 void SetRequestId(RequestIdT&& value) {
418 m_requestIdHasBeenSet = true;
419 m_requestId = std::forward<RequestIdT>(value);
420 }
421 template <typename RequestIdT = Aws::String>
422 GetApplicationResult& WithRequestId(RequestIdT&& value) {
423 SetRequestId(std::forward<RequestIdT>(value));
424 return *this;
425 }
427 private:
428 Aws::String m_applicationArn;
429
430 Aws::String m_applicationId;
431
432 Aws::Utils::DateTime m_creationTime{};
433
434 DeployedVersionSummary m_deployedVersion;
435
436 Aws::String m_description;
437
438 EngineType m_engineType{EngineType::NOT_SET};
439
440 Aws::String m_environmentId;
441
442 Aws::String m_kmsKeyId;
443
444 Aws::Utils::DateTime m_lastStartTime{};
445
446 ApplicationVersionSummary m_latestVersion;
447
448 Aws::Vector<Aws::String> m_listenerArns;
449
450 Aws::Vector<int> m_listenerPorts;
451
452 Aws::String m_loadBalancerDnsName;
453
455
456 Aws::String m_name;
457
458 Aws::String m_roleArn;
459
461
462 Aws::String m_statusReason;
463
465
466 Aws::Vector<Aws::String> m_targetGroupArns;
467
468 Aws::String m_requestId;
469 bool m_applicationArnHasBeenSet = false;
470 bool m_applicationIdHasBeenSet = false;
471 bool m_creationTimeHasBeenSet = false;
472 bool m_deployedVersionHasBeenSet = false;
473 bool m_descriptionHasBeenSet = false;
474 bool m_engineTypeHasBeenSet = false;
475 bool m_environmentIdHasBeenSet = false;
476 bool m_kmsKeyIdHasBeenSet = false;
477 bool m_lastStartTimeHasBeenSet = false;
478 bool m_latestVersionHasBeenSet = false;
479 bool m_listenerArnsHasBeenSet = false;
480 bool m_listenerPortsHasBeenSet = false;
481 bool m_loadBalancerDnsNameHasBeenSet = false;
482 bool m_logGroupsHasBeenSet = false;
483 bool m_nameHasBeenSet = false;
484 bool m_roleArnHasBeenSet = false;
485 bool m_statusHasBeenSet = false;
486 bool m_statusReasonHasBeenSet = false;
487 bool m_tagsHasBeenSet = false;
488 bool m_targetGroupArnsHasBeenSet = false;
489 bool m_requestIdHasBeenSet = false;
490};
491
492} // namespace Model
493} // namespace MainframeModernization
494} // 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