AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ComponentSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/DeploymentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Proton {
22namespace Model {
23
33 public:
34 AWS_PROTON_API ComponentSummary() = default;
37 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 ComponentSummary& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template <typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) {
65 m_createdAtHasBeenSet = true;
66 m_createdAt = std::forward<CreatedAtT>(value);
67 }
68 template <typename CreatedAtT = Aws::Utils::DateTime>
69 ComponentSummary& WithCreatedAt(CreatedAtT&& value) {
70 SetCreatedAt(std::forward<CreatedAtT>(value));
71 return *this;
72 }
74
76
79 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
80 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
82 m_deploymentStatusHasBeenSet = true;
83 m_deploymentStatus = value;
84 }
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
96 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
97 template <typename DeploymentStatusMessageT = Aws::String>
98 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
99 m_deploymentStatusMessageHasBeenSet = true;
100 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
101 }
102 template <typename DeploymentStatusMessageT = Aws::String>
103 ComponentSummary& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
104 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
115 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
116 template <typename EnvironmentNameT = Aws::String>
117 void SetEnvironmentName(EnvironmentNameT&& value) {
118 m_environmentNameHasBeenSet = true;
119 m_environmentName = std::forward<EnvironmentNameT>(value);
120 }
121 template <typename EnvironmentNameT = Aws::String>
122 ComponentSummary& WithEnvironmentName(EnvironmentNameT&& value) {
123 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
133 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
134 template <typename LastAttemptedDeploymentIdT = Aws::String>
135 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
136 m_lastAttemptedDeploymentIdHasBeenSet = true;
137 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
138 }
139 template <typename LastAttemptedDeploymentIdT = Aws::String>
140 ComponentSummary& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
141 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
151 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
152 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
153 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
154 m_lastDeploymentAttemptedAtHasBeenSet = true;
155 m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value);
156 }
157 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
158 ComponentSummary& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
159 SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
169 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
170 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
171 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
172 m_lastDeploymentSucceededAtHasBeenSet = true;
173 m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value);
174 }
175 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
176 ComponentSummary& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
177 SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
187 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
188 template <typename LastModifiedAtT = Aws::Utils::DateTime>
189 void SetLastModifiedAt(LastModifiedAtT&& value) {
190 m_lastModifiedAtHasBeenSet = true;
191 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
192 }
193 template <typename LastModifiedAtT = Aws::Utils::DateTime>
194 ComponentSummary& WithLastModifiedAt(LastModifiedAtT&& value) {
195 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
205 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
206 template <typename LastSucceededDeploymentIdT = Aws::String>
207 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
208 m_lastSucceededDeploymentIdHasBeenSet = true;
209 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
210 }
211 template <typename LastSucceededDeploymentIdT = Aws::String>
212 ComponentSummary& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
213 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetName() const { return m_name; }
223 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
224 template <typename NameT = Aws::String>
225 void SetName(NameT&& value) {
226 m_nameHasBeenSet = true;
227 m_name = std::forward<NameT>(value);
228 }
229 template <typename NameT = Aws::String>
230 ComponentSummary& WithName(NameT&& value) {
231 SetName(std::forward<NameT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
242 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
243 template <typename ServiceInstanceNameT = Aws::String>
244 void SetServiceInstanceName(ServiceInstanceNameT&& value) {
245 m_serviceInstanceNameHasBeenSet = true;
246 m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value);
247 }
248 template <typename ServiceInstanceNameT = Aws::String>
249 ComponentSummary& WithServiceInstanceName(ServiceInstanceNameT&& value) {
250 SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value));
251 return *this;
252 }
254
256
260 inline const Aws::String& GetServiceName() const { return m_serviceName; }
261 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
262 template <typename ServiceNameT = Aws::String>
263 void SetServiceName(ServiceNameT&& value) {
264 m_serviceNameHasBeenSet = true;
265 m_serviceName = std::forward<ServiceNameT>(value);
266 }
267 template <typename ServiceNameT = Aws::String>
268 ComponentSummary& WithServiceName(ServiceNameT&& value) {
269 SetServiceName(std::forward<ServiceNameT>(value));
270 return *this;
271 }
273 private:
274 Aws::String m_arn;
275
276 Aws::Utils::DateTime m_createdAt{};
277
279
280 Aws::String m_deploymentStatusMessage;
281
282 Aws::String m_environmentName;
283
284 Aws::String m_lastAttemptedDeploymentId;
285
286 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
287
288 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
289
290 Aws::Utils::DateTime m_lastModifiedAt{};
291
292 Aws::String m_lastSucceededDeploymentId;
293
294 Aws::String m_name;
295
296 Aws::String m_serviceInstanceName;
297
298 Aws::String m_serviceName;
299 bool m_arnHasBeenSet = false;
300 bool m_createdAtHasBeenSet = false;
301 bool m_deploymentStatusHasBeenSet = false;
302 bool m_deploymentStatusMessageHasBeenSet = false;
303 bool m_environmentNameHasBeenSet = false;
304 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
305 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
306 bool m_lastDeploymentSucceededAtHasBeenSet = false;
307 bool m_lastModifiedAtHasBeenSet = false;
308 bool m_lastSucceededDeploymentIdHasBeenSet = false;
309 bool m_nameHasBeenSet = false;
310 bool m_serviceInstanceNameHasBeenSet = false;
311 bool m_serviceNameHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace Proton
316} // namespace Aws
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
const Aws::String & GetEnvironmentName() const
const Aws::String & GetName() const
const Aws::String & GetServiceInstanceName() const
AWS_PROTON_API ComponentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
ComponentSummary & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
ComponentSummary & WithEnvironmentName(EnvironmentNameT &&value)
ComponentSummary & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
ComponentSummary & WithLastModifiedAt(LastModifiedAtT &&value)
ComponentSummary & WithName(NameT &&value)
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
const Aws::String & GetServiceName() const
ComponentSummary & WithServiceName(ServiceNameT &&value)
ComponentSummary & WithCreatedAt(CreatedAtT &&value)
void SetServiceName(ServiceNameT &&value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
AWS_PROTON_API ComponentSummary(Aws::Utils::Json::JsonView jsonValue)
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
void SetDeploymentStatus(DeploymentStatus value)
ComponentSummary & WithDeploymentStatus(DeploymentStatus value)
const Aws::String & GetLastSucceededDeploymentId() const
const Aws::String & GetArn() const
const Aws::String & GetDeploymentStatusMessage() const
ComponentSummary & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentSummary & WithArn(ArnT &&value)
void SetServiceInstanceName(ServiceInstanceNameT &&value)
ComponentSummary & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ComponentSummary & WithServiceInstanceName(ServiceInstanceNameT &&value)
AWS_PROTON_API ComponentSummary()=default
const Aws::String & GetLastAttemptedDeploymentId() const
DeploymentStatus GetDeploymentStatus() const
ComponentSummary & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue