AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ApplicationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/m2/MainframeModernization_EXPORTS.h>
10#include <aws/m2/model/ApplicationDeploymentLifecycle.h>
11#include <aws/m2/model/ApplicationLifecycle.h>
12#include <aws/m2/model/ApplicationVersionLifecycle.h>
13#include <aws/m2/model/EngineType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MainframeModernization {
25namespace Model {
26
34 public:
35 AWS_MAINFRAMEMODERNIZATION_API ApplicationSummary() = default;
36 AWS_MAINFRAMEMODERNIZATION_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MAINFRAMEMODERNIZATION_API ApplicationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
45 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
46 template <typename ApplicationArnT = Aws::String>
47 void SetApplicationArn(ApplicationArnT&& value) {
48 m_applicationArnHasBeenSet = true;
49 m_applicationArn = std::forward<ApplicationArnT>(value);
50 }
51 template <typename ApplicationArnT = Aws::String>
52 ApplicationSummary& WithApplicationArn(ApplicationArnT&& value) {
53 SetApplicationArn(std::forward<ApplicationArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
63 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
64 template <typename ApplicationIdT = Aws::String>
65 void SetApplicationId(ApplicationIdT&& value) {
66 m_applicationIdHasBeenSet = true;
67 m_applicationId = std::forward<ApplicationIdT>(value);
68 }
69 template <typename ApplicationIdT = Aws::String>
70 ApplicationSummary& WithApplicationId(ApplicationIdT&& value) {
71 SetApplicationId(std::forward<ApplicationIdT>(value));
72 return *this;
73 }
75
77
80 inline int GetApplicationVersion() const { return m_applicationVersion; }
81 inline bool ApplicationVersionHasBeenSet() const { return m_applicationVersionHasBeenSet; }
82 inline void SetApplicationVersion(int value) {
83 m_applicationVersionHasBeenSet = true;
84 m_applicationVersion = value;
85 }
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
97 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
98 template <typename CreationTimeT = Aws::Utils::DateTime>
99 void SetCreationTime(CreationTimeT&& value) {
100 m_creationTimeHasBeenSet = true;
101 m_creationTime = std::forward<CreationTimeT>(value);
102 }
103 template <typename CreationTimeT = Aws::Utils::DateTime>
104 ApplicationSummary& WithCreationTime(CreationTimeT&& value) {
105 SetCreationTime(std::forward<CreationTimeT>(value));
106 return *this;
107 }
109
111
115 inline ApplicationDeploymentLifecycle GetDeploymentStatus() const { return m_deploymentStatus; }
116 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
118 m_deploymentStatusHasBeenSet = true;
119 m_deploymentStatus = value;
120 }
122 SetDeploymentStatus(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
139 ApplicationSummary& WithDescription(DescriptionT&& value) {
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
149 inline EngineType GetEngineType() const { return m_engineType; }
150 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
151 inline void SetEngineType(EngineType value) {
152 m_engineTypeHasBeenSet = true;
153 m_engineType = value;
154 }
156 SetEngineType(value);
157 return *this;
158 }
160
162
166 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
167 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
168 template <typename EnvironmentIdT = Aws::String>
169 void SetEnvironmentId(EnvironmentIdT&& value) {
170 m_environmentIdHasBeenSet = true;
171 m_environmentId = std::forward<EnvironmentIdT>(value);
172 }
173 template <typename EnvironmentIdT = Aws::String>
174 ApplicationSummary& WithEnvironmentId(EnvironmentIdT&& value) {
175 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::Utils::DateTime& GetLastStartTime() const { return m_lastStartTime; }
186 inline bool LastStartTimeHasBeenSet() const { return m_lastStartTimeHasBeenSet; }
187 template <typename LastStartTimeT = Aws::Utils::DateTime>
188 void SetLastStartTime(LastStartTimeT&& value) {
189 m_lastStartTimeHasBeenSet = true;
190 m_lastStartTime = std::forward<LastStartTimeT>(value);
191 }
192 template <typename LastStartTimeT = Aws::Utils::DateTime>
193 ApplicationSummary& WithLastStartTime(LastStartTimeT&& value) {
194 SetLastStartTime(std::forward<LastStartTimeT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetName() const { return m_name; }
204 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
205 template <typename NameT = Aws::String>
206 void SetName(NameT&& value) {
207 m_nameHasBeenSet = true;
208 m_name = std::forward<NameT>(value);
209 }
210 template <typename NameT = Aws::String>
211 ApplicationSummary& WithName(NameT&& value) {
212 SetName(std::forward<NameT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
223 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
224 template <typename RoleArnT = Aws::String>
225 void SetRoleArn(RoleArnT&& value) {
226 m_roleArnHasBeenSet = true;
227 m_roleArn = std::forward<RoleArnT>(value);
228 }
229 template <typename RoleArnT = Aws::String>
230 ApplicationSummary& WithRoleArn(RoleArnT&& value) {
231 SetRoleArn(std::forward<RoleArnT>(value));
232 return *this;
233 }
235
237
240 inline ApplicationLifecycle GetStatus() const { return m_status; }
241 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
242 inline void SetStatus(ApplicationLifecycle value) {
243 m_statusHasBeenSet = true;
244 m_status = value;
245 }
247 SetStatus(value);
248 return *this;
249 }
251
253
256 inline ApplicationVersionLifecycle GetVersionStatus() const { return m_versionStatus; }
257 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
259 m_versionStatusHasBeenSet = true;
260 m_versionStatus = value;
261 }
263 SetVersionStatus(value);
264 return *this;
265 }
267 private:
268 Aws::String m_applicationArn;
269
270 Aws::String m_applicationId;
271
272 int m_applicationVersion{0};
273
274 Aws::Utils::DateTime m_creationTime{};
275
277
278 Aws::String m_description;
279
280 EngineType m_engineType{EngineType::NOT_SET};
281
282 Aws::String m_environmentId;
283
284 Aws::Utils::DateTime m_lastStartTime{};
285
286 Aws::String m_name;
287
288 Aws::String m_roleArn;
289
291
293 bool m_applicationArnHasBeenSet = false;
294 bool m_applicationIdHasBeenSet = false;
295 bool m_applicationVersionHasBeenSet = false;
296 bool m_creationTimeHasBeenSet = false;
297 bool m_deploymentStatusHasBeenSet = false;
298 bool m_descriptionHasBeenSet = false;
299 bool m_engineTypeHasBeenSet = false;
300 bool m_environmentIdHasBeenSet = false;
301 bool m_lastStartTimeHasBeenSet = false;
302 bool m_nameHasBeenSet = false;
303 bool m_roleArnHasBeenSet = false;
304 bool m_statusHasBeenSet = false;
305 bool m_versionStatusHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace MainframeModernization
310} // namespace Aws
ApplicationSummary & WithDescription(DescriptionT &&value)
ApplicationSummary & WithDeploymentStatus(ApplicationDeploymentLifecycle value)
ApplicationSummary & WithEnvironmentId(EnvironmentIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MAINFRAMEMODERNIZATION_API ApplicationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAINFRAMEMODERNIZATION_API ApplicationSummary()=default
ApplicationSummary & WithRoleArn(RoleArnT &&value)
AWS_MAINFRAMEMODERNIZATION_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue)
ApplicationSummary & WithStatus(ApplicationLifecycle value)
const Aws::Utils::DateTime & GetCreationTime() const
ApplicationSummary & WithApplicationId(ApplicationIdT &&value)
ApplicationSummary & WithVersionStatus(ApplicationVersionLifecycle value)
ApplicationSummary & WithApplicationArn(ApplicationArnT &&value)
ApplicationDeploymentLifecycle GetDeploymentStatus() const
const Aws::Utils::DateTime & GetLastStartTime() const
void SetVersionStatus(ApplicationVersionLifecycle value)
ApplicationSummary & WithLastStartTime(LastStartTimeT &&value)
void SetDeploymentStatus(ApplicationDeploymentLifecycle value)
ApplicationSummary & WithEngineType(EngineType value)
ApplicationSummary & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue