AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetApplicationResult.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/m2/model/DeployedVersionSummary.h>
11#include <aws/m2/model/EngineType.h>
12#include <aws/m2/model/ApplicationVersionSummary.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/m2/model/ApplicationLifecycle.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/m2/model/LogGroupSummary.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace MainframeModernization
32{
33namespace Model
34{
36 {
37 public:
38 AWS_MAINFRAMEMODERNIZATION_API GetApplicationResult() = default;
41
42
44
47 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
48 template<typename ApplicationArnT = Aws::String>
49 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
50 template<typename ApplicationArnT = Aws::String>
51 GetApplicationResult& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
59 template<typename ApplicationIdT = Aws::String>
60 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
61 template<typename ApplicationIdT = Aws::String>
62 GetApplicationResult& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
70 template<typename CreationTimeT = Aws::Utils::DateTime>
71 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
72 template<typename CreationTimeT = Aws::Utils::DateTime>
73 GetApplicationResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
75
77
80 inline const DeployedVersionSummary& GetDeployedVersion() const { return m_deployedVersion; }
81 template<typename DeployedVersionT = DeployedVersionSummary>
82 void SetDeployedVersion(DeployedVersionT&& value) { m_deployedVersionHasBeenSet = true; m_deployedVersion = std::forward<DeployedVersionT>(value); }
83 template<typename DeployedVersionT = DeployedVersionSummary>
84 GetApplicationResult& WithDeployedVersion(DeployedVersionT&& value) { SetDeployedVersion(std::forward<DeployedVersionT>(value)); return *this;}
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 template<typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
94 template<typename DescriptionT = Aws::String>
95 GetApplicationResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
97
99
102 inline EngineType GetEngineType() const { return m_engineType; }
103 inline void SetEngineType(EngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
104 inline GetApplicationResult& WithEngineType(EngineType value) { SetEngineType(value); return *this;}
106
108
112 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
113 template<typename EnvironmentIdT = Aws::String>
114 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
115 template<typename EnvironmentIdT = Aws::String>
116 GetApplicationResult& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
118
120
123 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
124 template<typename KmsKeyIdT = Aws::String>
125 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
126 template<typename KmsKeyIdT = Aws::String>
127 GetApplicationResult& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
129
131
135 inline const Aws::Utils::DateTime& GetLastStartTime() const { return m_lastStartTime; }
136 template<typename LastStartTimeT = Aws::Utils::DateTime>
137 void SetLastStartTime(LastStartTimeT&& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = std::forward<LastStartTimeT>(value); }
138 template<typename LastStartTimeT = Aws::Utils::DateTime>
139 GetApplicationResult& WithLastStartTime(LastStartTimeT&& value) { SetLastStartTime(std::forward<LastStartTimeT>(value)); return *this;}
141
143
146 inline const ApplicationVersionSummary& GetLatestVersion() const { return m_latestVersion; }
147 template<typename LatestVersionT = ApplicationVersionSummary>
148 void SetLatestVersion(LatestVersionT&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::forward<LatestVersionT>(value); }
149 template<typename LatestVersionT = ApplicationVersionSummary>
150 GetApplicationResult& WithLatestVersion(LatestVersionT&& value) { SetLatestVersion(std::forward<LatestVersionT>(value)); return *this;}
152
154
159 inline const Aws::Vector<Aws::String>& GetListenerArns() const { return m_listenerArns; }
160 template<typename ListenerArnsT = Aws::Vector<Aws::String>>
161 void SetListenerArns(ListenerArnsT&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns = std::forward<ListenerArnsT>(value); }
162 template<typename ListenerArnsT = Aws::Vector<Aws::String>>
163 GetApplicationResult& WithListenerArns(ListenerArnsT&& value) { SetListenerArns(std::forward<ListenerArnsT>(value)); return *this;}
164 template<typename ListenerArnsT = Aws::String>
165 GetApplicationResult& AddListenerArns(ListenerArnsT&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns.emplace_back(std::forward<ListenerArnsT>(value)); return *this; }
167
169
173 inline const Aws::Vector<int>& GetListenerPorts() const { return m_listenerPorts; }
174 template<typename ListenerPortsT = Aws::Vector<int>>
175 void SetListenerPorts(ListenerPortsT&& value) { m_listenerPortsHasBeenSet = true; m_listenerPorts = std::forward<ListenerPortsT>(value); }
176 template<typename ListenerPortsT = Aws::Vector<int>>
177 GetApplicationResult& WithListenerPorts(ListenerPortsT&& value) { SetListenerPorts(std::forward<ListenerPortsT>(value)); return *this;}
178 inline GetApplicationResult& AddListenerPorts(int value) { m_listenerPortsHasBeenSet = true; m_listenerPorts.push_back(value); return *this; }
180
182
186 inline const Aws::String& GetLoadBalancerDnsName() const { return m_loadBalancerDnsName; }
187 template<typename LoadBalancerDnsNameT = Aws::String>
188 void SetLoadBalancerDnsName(LoadBalancerDnsNameT&& value) { m_loadBalancerDnsNameHasBeenSet = true; m_loadBalancerDnsName = std::forward<LoadBalancerDnsNameT>(value); }
189 template<typename LoadBalancerDnsNameT = Aws::String>
190 GetApplicationResult& WithLoadBalancerDnsName(LoadBalancerDnsNameT&& value) { SetLoadBalancerDnsName(std::forward<LoadBalancerDnsNameT>(value)); return *this;}
192
194
200 inline const Aws::Vector<LogGroupSummary>& GetLogGroups() const { return m_logGroups; }
201 template<typename LogGroupsT = Aws::Vector<LogGroupSummary>>
202 void SetLogGroups(LogGroupsT&& value) { m_logGroupsHasBeenSet = true; m_logGroups = std::forward<LogGroupsT>(value); }
203 template<typename LogGroupsT = Aws::Vector<LogGroupSummary>>
204 GetApplicationResult& WithLogGroups(LogGroupsT&& value) { SetLogGroups(std::forward<LogGroupsT>(value)); return *this;}
205 template<typename LogGroupsT = LogGroupSummary>
206 GetApplicationResult& AddLogGroups(LogGroupsT&& value) { m_logGroupsHasBeenSet = true; m_logGroups.emplace_back(std::forward<LogGroupsT>(value)); return *this; }
208
210
213 inline const Aws::String& GetName() const { return m_name; }
214 template<typename NameT = Aws::String>
215 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
216 template<typename NameT = Aws::String>
217 GetApplicationResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
219
221
225 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
226 template<typename RoleArnT = Aws::String>
227 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
228 template<typename RoleArnT = Aws::String>
229 GetApplicationResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
231
233
236 inline ApplicationLifecycle GetStatus() const { return m_status; }
237 inline void SetStatus(ApplicationLifecycle value) { m_statusHasBeenSet = true; m_status = value; }
238 inline GetApplicationResult& WithStatus(ApplicationLifecycle value) { SetStatus(value); return *this;}
240
242
245 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
246 template<typename StatusReasonT = Aws::String>
247 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
248 template<typename StatusReasonT = Aws::String>
249 GetApplicationResult& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
251
253
256 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
257 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
259 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
260 GetApplicationResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
261 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
262 GetApplicationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
263 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
264 }
266
268
272 inline const Aws::Vector<Aws::String>& GetTargetGroupArns() const { return m_targetGroupArns; }
273 template<typename TargetGroupArnsT = Aws::Vector<Aws::String>>
274 void SetTargetGroupArns(TargetGroupArnsT&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = std::forward<TargetGroupArnsT>(value); }
275 template<typename TargetGroupArnsT = Aws::Vector<Aws::String>>
276 GetApplicationResult& WithTargetGroupArns(TargetGroupArnsT&& value) { SetTargetGroupArns(std::forward<TargetGroupArnsT>(value)); return *this;}
277 template<typename TargetGroupArnsT = Aws::String>
278 GetApplicationResult& AddTargetGroupArns(TargetGroupArnsT&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.emplace_back(std::forward<TargetGroupArnsT>(value)); return *this; }
280
282
283 inline const Aws::String& GetRequestId() const { return m_requestId; }
284 template<typename RequestIdT = Aws::String>
285 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
286 template<typename RequestIdT = Aws::String>
287 GetApplicationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
289 private:
290
291 Aws::String m_applicationArn;
292 bool m_applicationArnHasBeenSet = false;
293
294 Aws::String m_applicationId;
295 bool m_applicationIdHasBeenSet = false;
296
297 Aws::Utils::DateTime m_creationTime{};
298 bool m_creationTimeHasBeenSet = false;
299
300 DeployedVersionSummary m_deployedVersion;
301 bool m_deployedVersionHasBeenSet = false;
302
303 Aws::String m_description;
304 bool m_descriptionHasBeenSet = false;
305
306 EngineType m_engineType{EngineType::NOT_SET};
307 bool m_engineTypeHasBeenSet = false;
308
309 Aws::String m_environmentId;
310 bool m_environmentIdHasBeenSet = false;
311
312 Aws::String m_kmsKeyId;
313 bool m_kmsKeyIdHasBeenSet = false;
314
315 Aws::Utils::DateTime m_lastStartTime{};
316 bool m_lastStartTimeHasBeenSet = false;
317
318 ApplicationVersionSummary m_latestVersion;
319 bool m_latestVersionHasBeenSet = false;
320
321 Aws::Vector<Aws::String> m_listenerArns;
322 bool m_listenerArnsHasBeenSet = false;
323
324 Aws::Vector<int> m_listenerPorts;
325 bool m_listenerPortsHasBeenSet = false;
326
327 Aws::String m_loadBalancerDnsName;
328 bool m_loadBalancerDnsNameHasBeenSet = false;
329
331 bool m_logGroupsHasBeenSet = false;
332
333 Aws::String m_name;
334 bool m_nameHasBeenSet = false;
335
336 Aws::String m_roleArn;
337 bool m_roleArnHasBeenSet = false;
338
340 bool m_statusHasBeenSet = false;
341
342 Aws::String m_statusReason;
343 bool m_statusReasonHasBeenSet = false;
344
346 bool m_tagsHasBeenSet = false;
347
348 Aws::Vector<Aws::String> m_targetGroupArns;
349 bool m_targetGroupArnsHasBeenSet = false;
350
351 Aws::String m_requestId;
352 bool m_requestIdHasBeenSet = false;
353 };
354
355} // namespace Model
356} // namespace MainframeModernization
357} // 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