AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeploymentSummary.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/DeploymentLifecycle.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MainframeModernization {
22namespace Model {
23
31 public:
32 AWS_MAINFRAMEMODERNIZATION_API DeploymentSummary() = default;
33 AWS_MAINFRAMEMODERNIZATION_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAINFRAMEMODERNIZATION_API DeploymentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template <typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) {
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
49 DeploymentSummary& WithApplicationId(ApplicationIdT&& value) {
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
59 inline int GetApplicationVersion() const { return m_applicationVersion; }
60 inline bool ApplicationVersionHasBeenSet() const { return m_applicationVersionHasBeenSet; }
61 inline void SetApplicationVersion(int value) {
62 m_applicationVersionHasBeenSet = true;
63 m_applicationVersion = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
76 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
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 DeploymentSummary& WithCreationTime(CreationTimeT&& value) {
84 SetCreationTime(std::forward<CreationTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
94 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
95 template <typename DeploymentIdT = Aws::String>
96 void SetDeploymentId(DeploymentIdT&& value) {
97 m_deploymentIdHasBeenSet = true;
98 m_deploymentId = std::forward<DeploymentIdT>(value);
99 }
100 template <typename DeploymentIdT = Aws::String>
101 DeploymentSummary& WithDeploymentId(DeploymentIdT&& value) {
102 SetDeploymentId(std::forward<DeploymentIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
112 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
113 template <typename EnvironmentIdT = Aws::String>
114 void SetEnvironmentId(EnvironmentIdT&& value) {
115 m_environmentIdHasBeenSet = true;
116 m_environmentId = std::forward<EnvironmentIdT>(value);
117 }
118 template <typename EnvironmentIdT = Aws::String>
119 DeploymentSummary& WithEnvironmentId(EnvironmentIdT&& value) {
120 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
121 return *this;
122 }
124
126
129 inline DeploymentLifecycle GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(DeploymentLifecycle value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
146 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
147 template <typename StatusReasonT = Aws::String>
148 void SetStatusReason(StatusReasonT&& value) {
149 m_statusReasonHasBeenSet = true;
150 m_statusReason = std::forward<StatusReasonT>(value);
151 }
152 template <typename StatusReasonT = Aws::String>
153 DeploymentSummary& WithStatusReason(StatusReasonT&& value) {
154 SetStatusReason(std::forward<StatusReasonT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_applicationId;
160
161 int m_applicationVersion{0};
162
163 Aws::Utils::DateTime m_creationTime{};
164
165 Aws::String m_deploymentId;
166
167 Aws::String m_environmentId;
168
170
171 Aws::String m_statusReason;
172 bool m_applicationIdHasBeenSet = false;
173 bool m_applicationVersionHasBeenSet = false;
174 bool m_creationTimeHasBeenSet = false;
175 bool m_deploymentIdHasBeenSet = false;
176 bool m_environmentIdHasBeenSet = false;
177 bool m_statusHasBeenSet = false;
178 bool m_statusReasonHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace MainframeModernization
183} // namespace Aws
AWS_MAINFRAMEMODERNIZATION_API DeploymentSummary()=default
const Aws::Utils::DateTime & GetCreationTime() const
DeploymentSummary & WithEnvironmentId(EnvironmentIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithApplicationId(ApplicationIdT &&value)
DeploymentSummary & WithDeploymentId(DeploymentIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentSummary & WithStatus(DeploymentLifecycle value)
DeploymentSummary & WithCreationTime(CreationTimeT &&value)
DeploymentSummary & WithStatusReason(StatusReasonT &&value)
AWS_MAINFRAMEMODERNIZATION_API DeploymentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue