AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Component.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
32class Component {
33 public:
34 AWS_PROTON_API Component() = default;
35 AWS_PROTON_API Component(Aws::Utils::Json::JsonView jsonValue);
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 Component& 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 Component& 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 Component& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
104 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 Component& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
133 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
134 template <typename EnvironmentNameT = Aws::String>
135 void SetEnvironmentName(EnvironmentNameT&& value) {
136 m_environmentNameHasBeenSet = true;
137 m_environmentName = std::forward<EnvironmentNameT>(value);
138 }
139 template <typename EnvironmentNameT = Aws::String>
140 Component& WithEnvironmentName(EnvironmentNameT&& value) {
141 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
151 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
152 template <typename LastAttemptedDeploymentIdT = Aws::String>
153 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
154 m_lastAttemptedDeploymentIdHasBeenSet = true;
155 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
156 }
157 template <typename LastAttemptedDeploymentIdT = Aws::String>
158 Component& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
159 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetLastClientRequestToken() const { return m_lastClientRequestToken; }
169 inline bool LastClientRequestTokenHasBeenSet() const { return m_lastClientRequestTokenHasBeenSet; }
170 template <typename LastClientRequestTokenT = Aws::String>
171 void SetLastClientRequestToken(LastClientRequestTokenT&& value) {
172 m_lastClientRequestTokenHasBeenSet = true;
173 m_lastClientRequestToken = std::forward<LastClientRequestTokenT>(value);
174 }
175 template <typename LastClientRequestTokenT = Aws::String>
176 Component& WithLastClientRequestToken(LastClientRequestTokenT&& value) {
177 SetLastClientRequestToken(std::forward<LastClientRequestTokenT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
187 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
188 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
189 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
190 m_lastDeploymentAttemptedAtHasBeenSet = true;
191 m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value);
192 }
193 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
194 Component& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
195 SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
205 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
206 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
207 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
208 m_lastDeploymentSucceededAtHasBeenSet = true;
209 m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value);
210 }
211 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
212 Component& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
213 SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
223 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
224 template <typename LastModifiedAtT = Aws::Utils::DateTime>
225 void SetLastModifiedAt(LastModifiedAtT&& value) {
226 m_lastModifiedAtHasBeenSet = true;
227 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
228 }
229 template <typename LastModifiedAtT = Aws::Utils::DateTime>
230 Component& WithLastModifiedAt(LastModifiedAtT&& value) {
231 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
241 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
242 template <typename LastSucceededDeploymentIdT = Aws::String>
243 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
244 m_lastSucceededDeploymentIdHasBeenSet = true;
245 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
246 }
247 template <typename LastSucceededDeploymentIdT = Aws::String>
248 Component& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
249 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetName() const { return m_name; }
259 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
260 template <typename NameT = Aws::String>
261 void SetName(NameT&& value) {
262 m_nameHasBeenSet = true;
263 m_name = std::forward<NameT>(value);
264 }
265 template <typename NameT = Aws::String>
266 Component& WithName(NameT&& value) {
267 SetName(std::forward<NameT>(value));
268 return *this;
269 }
271
273
277 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
278 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
279 template <typename ServiceInstanceNameT = Aws::String>
280 void SetServiceInstanceName(ServiceInstanceNameT&& value) {
281 m_serviceInstanceNameHasBeenSet = true;
282 m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value);
283 }
284 template <typename ServiceInstanceNameT = Aws::String>
285 Component& WithServiceInstanceName(ServiceInstanceNameT&& value) {
286 SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value));
287 return *this;
288 }
290
292
296 inline const Aws::String& GetServiceName() const { return m_serviceName; }
297 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
298 template <typename ServiceNameT = Aws::String>
299 void SetServiceName(ServiceNameT&& value) {
300 m_serviceNameHasBeenSet = true;
301 m_serviceName = std::forward<ServiceNameT>(value);
302 }
303 template <typename ServiceNameT = Aws::String>
304 Component& WithServiceName(ServiceNameT&& value) {
305 SetServiceName(std::forward<ServiceNameT>(value));
306 return *this;
307 }
309
311
315 inline const Aws::String& GetServiceSpec() const { return m_serviceSpec; }
316 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
317 template <typename ServiceSpecT = Aws::String>
318 void SetServiceSpec(ServiceSpecT&& value) {
319 m_serviceSpecHasBeenSet = true;
320 m_serviceSpec = std::forward<ServiceSpecT>(value);
321 }
322 template <typename ServiceSpecT = Aws::String>
323 Component& WithServiceSpec(ServiceSpecT&& value) {
324 SetServiceSpec(std::forward<ServiceSpecT>(value));
325 return *this;
326 }
328 private:
329 Aws::String m_arn;
330
331 Aws::Utils::DateTime m_createdAt{};
332
334
335 Aws::String m_deploymentStatusMessage;
336
337 Aws::String m_description;
338
339 Aws::String m_environmentName;
340
341 Aws::String m_lastAttemptedDeploymentId;
342
343 Aws::String m_lastClientRequestToken;
344
345 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
346
347 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
348
349 Aws::Utils::DateTime m_lastModifiedAt{};
350
351 Aws::String m_lastSucceededDeploymentId;
352
353 Aws::String m_name;
354
355 Aws::String m_serviceInstanceName;
356
357 Aws::String m_serviceName;
358
359 Aws::String m_serviceSpec;
360 bool m_arnHasBeenSet = false;
361 bool m_createdAtHasBeenSet = false;
362 bool m_deploymentStatusHasBeenSet = false;
363 bool m_deploymentStatusMessageHasBeenSet = false;
364 bool m_descriptionHasBeenSet = false;
365 bool m_environmentNameHasBeenSet = false;
366 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
367 bool m_lastClientRequestTokenHasBeenSet = false;
368 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
369 bool m_lastDeploymentSucceededAtHasBeenSet = false;
370 bool m_lastModifiedAtHasBeenSet = false;
371 bool m_lastSucceededDeploymentIdHasBeenSet = false;
372 bool m_nameHasBeenSet = false;
373 bool m_serviceInstanceNameHasBeenSet = false;
374 bool m_serviceNameHasBeenSet = false;
375 bool m_serviceSpecHasBeenSet = false;
376};
377
378} // namespace Model
379} // namespace Proton
380} // namespace Aws
Component & WithArn(ArnT &&value)
Definition Component.h:51
Component & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
Definition Component.h:194
void SetArn(ArnT &&value)
Definition Component.h:46
const Aws::String & GetEnvironmentName() const
Definition Component.h:132
Component & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Component.h:103
bool LastSucceededDeploymentIdHasBeenSet() const
Definition Component.h:241
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
Definition Component.h:186
Component & WithServiceName(ServiceNameT &&value)
Definition Component.h:304
bool DeploymentStatusHasBeenSet() const
Definition Component.h:80
const Aws::String & GetServiceInstanceName() const
Definition Component.h:277
void SetServiceName(ServiceNameT &&value)
Definition Component.h:299
const Aws::String & GetLastClientRequestToken() const
Definition Component.h:168
void SetDeploymentStatus(DeploymentStatus value)
Definition Component.h:81
Component & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
Definition Component.h:212
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Component.h:98
AWS_PROTON_API Component()=default
Component & WithServiceSpec(ServiceSpecT &&value)
Definition Component.h:323
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
Definition Component.h:207
bool ServiceInstanceNameHasBeenSet() const
Definition Component.h:278
Component & WithDescription(DescriptionT &&value)
Definition Component.h:121
void SetLastModifiedAt(LastModifiedAtT &&value)
Definition Component.h:225
void SetServiceSpec(ServiceSpecT &&value)
Definition Component.h:318
bool LastAttemptedDeploymentIdHasBeenSet() const
Definition Component.h:151
void SetServiceInstanceName(ServiceInstanceNameT &&value)
Definition Component.h:280
const Aws::Utils::DateTime & GetLastModifiedAt() const
Definition Component.h:222
bool LastDeploymentAttemptedAtHasBeenSet() const
Definition Component.h:187
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:135
Component & WithEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:140
DeploymentStatus GetDeploymentStatus() const
Definition Component.h:79
const Aws::String & GetServiceName() const
Definition Component.h:296
Component & WithLastModifiedAt(LastModifiedAtT &&value)
Definition Component.h:230
bool DescriptionHasBeenSet() const
Definition Component.h:114
const Aws::String & GetLastAttemptedDeploymentId() const
Definition Component.h:150
const Aws::String & GetDeploymentStatusMessage() const
Definition Component.h:95
Component & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Component.h:158
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
Definition Component.h:204
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
Definition Component.h:189
const Aws::String & GetDescription() const
Definition Component.h:113
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetServiceSpec() const
Definition Component.h:315
void SetName(NameT &&value)
Definition Component.h:261
Component & WithName(NameT &&value)
Definition Component.h:266
bool CreatedAtHasBeenSet() const
Definition Component.h:62
void SetDescription(DescriptionT &&value)
Definition Component.h:116
Component & WithDeploymentStatus(DeploymentStatus value)
Definition Component.h:85
void SetCreatedAt(CreatedAtT &&value)
Definition Component.h:64
bool EnvironmentNameHasBeenSet() const
Definition Component.h:133
const Aws::String & GetName() const
Definition Component.h:258
bool ServiceSpecHasBeenSet() const
Definition Component.h:316
bool ServiceNameHasBeenSet() const
Definition Component.h:297
void SetLastClientRequestToken(LastClientRequestTokenT &&value)
Definition Component.h:171
AWS_PROTON_API Component(Aws::Utils::Json::JsonView jsonValue)
Component & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
Definition Component.h:248
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Component.h:61
const Aws::String & GetLastSucceededDeploymentId() const
Definition Component.h:240
Component & WithCreatedAt(CreatedAtT &&value)
Definition Component.h:69
Component & WithServiceInstanceName(ServiceInstanceNameT &&value)
Definition Component.h:285
bool DeploymentStatusMessageHasBeenSet() const
Definition Component.h:96
bool LastModifiedAtHasBeenSet() const
Definition Component.h:223
AWS_PROTON_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Component.h:43
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Component.h:153
bool LastClientRequestTokenHasBeenSet() const
Definition Component.h:169
Component & WithLastClientRequestToken(LastClientRequestTokenT &&value)
Definition Component.h:176
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
Definition Component.h:243
bool LastDeploymentSucceededAtHasBeenSet() const
Definition Component.h:205
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue