AWS SDK for C++

AWS SDK for C++ Version 1.11.835

Loading...
Searching...
No Matches
CreateMicrovmImageResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
13#include <aws/lambda-microvms/model/Capability.h>
14#include <aws/lambda-microvms/model/CodeArtifact.h>
15#include <aws/lambda-microvms/model/CpuConfiguration.h>
16#include <aws/lambda-microvms/model/Hooks.h>
17#include <aws/lambda-microvms/model/Logging.h>
18#include <aws/lambda-microvms/model/MicrovmImageState.h>
19#include <aws/lambda-microvms/model/Resources.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace LambdaMicrovms {
33namespace Model {
35 public:
36 AWS_LAMBDAMICROVMS_API CreateMicrovmImageResult() = default;
39
41
44 inline const Aws::String& GetImageArn() const { return m_imageArn; }
45 template <typename ImageArnT = Aws::String>
46 void SetImageArn(ImageArnT&& value) {
47 m_imageArnHasBeenSet = true;
48 m_imageArn = std::forward<ImageArnT>(value);
49 }
50 template <typename ImageArnT = Aws::String>
52 SetImageArn(std::forward<ImageArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline MicrovmImageState GetState() const { return m_state; }
79 inline void SetState(MicrovmImageState value) {
80 m_stateHasBeenSet = true;
81 m_state = value;
82 }
84 SetState(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetLatestActiveImageVersion() const { return m_latestActiveImageVersion; }
94 template <typename LatestActiveImageVersionT = Aws::String>
95 void SetLatestActiveImageVersion(LatestActiveImageVersionT&& value) {
96 m_latestActiveImageVersionHasBeenSet = true;
97 m_latestActiveImageVersion = std::forward<LatestActiveImageVersionT>(value);
98 }
99 template <typename LatestActiveImageVersionT = Aws::String>
100 CreateMicrovmImageResult& WithLatestActiveImageVersion(LatestActiveImageVersionT&& value) {
101 SetLatestActiveImageVersion(std::forward<LatestActiveImageVersionT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetLatestFailedImageVersion() const { return m_latestFailedImageVersion; }
111 template <typename LatestFailedImageVersionT = Aws::String>
112 void SetLatestFailedImageVersion(LatestFailedImageVersionT&& value) {
113 m_latestFailedImageVersionHasBeenSet = true;
114 m_latestFailedImageVersion = std::forward<LatestFailedImageVersionT>(value);
115 }
116 template <typename LatestFailedImageVersionT = Aws::String>
117 CreateMicrovmImageResult& WithLatestFailedImageVersion(LatestFailedImageVersionT&& value) {
118 SetLatestFailedImageVersion(std::forward<LatestFailedImageVersionT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
128 template <typename CreatedAtT = Aws::Utils::DateTime>
129 void SetCreatedAt(CreatedAtT&& value) {
130 m_createdAtHasBeenSet = true;
131 m_createdAt = std::forward<CreatedAtT>(value);
132 }
133 template <typename CreatedAtT = Aws::Utils::DateTime>
135 SetCreatedAt(std::forward<CreatedAtT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetBaseImageArn() const { return m_baseImageArn; }
145 template <typename BaseImageArnT = Aws::String>
146 void SetBaseImageArn(BaseImageArnT&& value) {
147 m_baseImageArnHasBeenSet = true;
148 m_baseImageArn = std::forward<BaseImageArnT>(value);
149 }
150 template <typename BaseImageArnT = Aws::String>
152 SetBaseImageArn(std::forward<BaseImageArnT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetBaseImageVersion() const { return m_baseImageVersion; }
162 template <typename BaseImageVersionT = Aws::String>
163 void SetBaseImageVersion(BaseImageVersionT&& value) {
164 m_baseImageVersionHasBeenSet = true;
165 m_baseImageVersion = std::forward<BaseImageVersionT>(value);
166 }
167 template <typename BaseImageVersionT = Aws::String>
168 CreateMicrovmImageResult& WithBaseImageVersion(BaseImageVersionT&& value) {
169 SetBaseImageVersion(std::forward<BaseImageVersionT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetBuildRoleArn() const { return m_buildRoleArn; }
179 template <typename BuildRoleArnT = Aws::String>
180 void SetBuildRoleArn(BuildRoleArnT&& value) {
181 m_buildRoleArnHasBeenSet = true;
182 m_buildRoleArn = std::forward<BuildRoleArnT>(value);
183 }
184 template <typename BuildRoleArnT = Aws::String>
186 SetBuildRoleArn(std::forward<BuildRoleArnT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetDescription() const { return m_description; }
196 template <typename DescriptionT = Aws::String>
197 void SetDescription(DescriptionT&& value) {
198 m_descriptionHasBeenSet = true;
199 m_description = std::forward<DescriptionT>(value);
200 }
201 template <typename DescriptionT = Aws::String>
203 SetDescription(std::forward<DescriptionT>(value));
204 return *this;
205 }
207
209
213 inline const CodeArtifact& GetCodeArtifact() const { return m_codeArtifact; }
214 template <typename CodeArtifactT = CodeArtifact>
215 void SetCodeArtifact(CodeArtifactT&& value) {
216 m_codeArtifactHasBeenSet = true;
217 m_codeArtifact = std::forward<CodeArtifactT>(value);
218 }
219 template <typename CodeArtifactT = CodeArtifact>
221 SetCodeArtifact(std::forward<CodeArtifactT>(value));
222 return *this;
223 }
225
227
232 inline const Logging& GetLogging() const { return m_logging; }
233 template <typename LoggingT = Logging>
234 void SetLogging(LoggingT&& value) {
235 m_loggingHasBeenSet = true;
236 m_logging = std::forward<LoggingT>(value);
237 }
238 template <typename LoggingT = Logging>
240 SetLogging(std::forward<LoggingT>(value));
241 return *this;
242 }
244
246
250 inline const Aws::Vector<Aws::String>& GetEgressNetworkConnectors() const { return m_egressNetworkConnectors; }
251 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
252 void SetEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
253 m_egressNetworkConnectorsHasBeenSet = true;
254 m_egressNetworkConnectors = std::forward<EgressNetworkConnectorsT>(value);
255 }
256 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
257 CreateMicrovmImageResult& WithEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
258 SetEgressNetworkConnectors(std::forward<EgressNetworkConnectorsT>(value));
259 return *this;
260 }
261 template <typename EgressNetworkConnectorsT = Aws::String>
262 CreateMicrovmImageResult& AddEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
263 m_egressNetworkConnectorsHasBeenSet = true;
264 m_egressNetworkConnectors.emplace_back(std::forward<EgressNetworkConnectorsT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::Vector<CpuConfiguration>& GetCpuConfigurations() const { return m_cpuConfigurations; }
274 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
275 void SetCpuConfigurations(CpuConfigurationsT&& value) {
276 m_cpuConfigurationsHasBeenSet = true;
277 m_cpuConfigurations = std::forward<CpuConfigurationsT>(value);
278 }
279 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
280 CreateMicrovmImageResult& WithCpuConfigurations(CpuConfigurationsT&& value) {
281 SetCpuConfigurations(std::forward<CpuConfigurationsT>(value));
282 return *this;
283 }
284 template <typename CpuConfigurationsT = CpuConfiguration>
285 CreateMicrovmImageResult& AddCpuConfigurations(CpuConfigurationsT&& value) {
286 m_cpuConfigurationsHasBeenSet = true;
287 m_cpuConfigurations.emplace_back(std::forward<CpuConfigurationsT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::Vector<Resources>& GetResources() const { return m_resources; }
297 template <typename ResourcesT = Aws::Vector<Resources>>
298 void SetResources(ResourcesT&& value) {
299 m_resourcesHasBeenSet = true;
300 m_resources = std::forward<ResourcesT>(value);
301 }
302 template <typename ResourcesT = Aws::Vector<Resources>>
304 SetResources(std::forward<ResourcesT>(value));
305 return *this;
306 }
307 template <typename ResourcesT = Resources>
309 m_resourcesHasBeenSet = true;
310 m_resources.emplace_back(std::forward<ResourcesT>(value));
311 return *this;
312 }
314
316
319 inline const Aws::Vector<Capability>& GetAdditionalOsCapabilities() const { return m_additionalOsCapabilities; }
320 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
321 void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
322 m_additionalOsCapabilitiesHasBeenSet = true;
323 m_additionalOsCapabilities = std::forward<AdditionalOsCapabilitiesT>(value);
324 }
325 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
326 CreateMicrovmImageResult& WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
327 SetAdditionalOsCapabilities(std::forward<AdditionalOsCapabilitiesT>(value));
328 return *this;
329 }
331 m_additionalOsCapabilitiesHasBeenSet = true;
332 m_additionalOsCapabilities.push_back(value);
333 return *this;
334 }
336
338
339 inline const Hooks& GetHooks() const { return m_hooks; }
340 template <typename HooksT = Hooks>
341 void SetHooks(HooksT&& value) {
342 m_hooksHasBeenSet = true;
343 m_hooks = std::forward<HooksT>(value);
344 }
345 template <typename HooksT = Hooks>
347 SetHooks(std::forward<HooksT>(value));
348 return *this;
349 }
351
353
356 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
357 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
358 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
359 m_environmentVariablesHasBeenSet = true;
360 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
361 }
362 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
363 CreateMicrovmImageResult& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
364 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
365 return *this;
366 }
367 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
368 CreateMicrovmImageResult& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
369 m_environmentVariablesHasBeenSet = true;
370 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
371 return *this;
372 }
374
376
381 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
382 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
383 void SetTags(TagsT&& value) {
384 m_tagsHasBeenSet = true;
385 m_tags = std::forward<TagsT>(value);
386 }
387 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
389 SetTags(std::forward<TagsT>(value));
390 return *this;
391 }
392 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
393 CreateMicrovmImageResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
394 m_tagsHasBeenSet = true;
395 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
396 return *this;
397 }
399
401
404 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
405 template <typename UpdatedAtT = Aws::Utils::DateTime>
406 void SetUpdatedAt(UpdatedAtT&& value) {
407 m_updatedAtHasBeenSet = true;
408 m_updatedAt = std::forward<UpdatedAtT>(value);
409 }
410 template <typename UpdatedAtT = Aws::Utils::DateTime>
412 SetUpdatedAt(std::forward<UpdatedAtT>(value));
413 return *this;
414 }
416
418
421 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
422 template <typename ImageVersionT = Aws::String>
423 void SetImageVersion(ImageVersionT&& value) {
424 m_imageVersionHasBeenSet = true;
425 m_imageVersion = std::forward<ImageVersionT>(value);
426 }
427 template <typename ImageVersionT = Aws::String>
429 SetImageVersion(std::forward<ImageVersionT>(value));
430 return *this;
431 }
433
435
436 inline const Aws::String& GetRequestId() const { return m_requestId; }
437 template <typename RequestIdT = Aws::String>
438 void SetRequestId(RequestIdT&& value) {
439 m_requestIdHasBeenSet = true;
440 m_requestId = std::forward<RequestIdT>(value);
441 }
442 template <typename RequestIdT = Aws::String>
444 SetRequestId(std::forward<RequestIdT>(value));
445 return *this;
446 }
448 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
449
450 private:
451 Aws::String m_imageArn;
452
453 Aws::String m_name;
454
456
457 Aws::String m_latestActiveImageVersion;
458
459 Aws::String m_latestFailedImageVersion;
460
461 Aws::Utils::DateTime m_createdAt{};
462
463 Aws::String m_baseImageArn;
464
465 Aws::String m_baseImageVersion;
466
467 Aws::String m_buildRoleArn;
468
469 Aws::String m_description;
470
471 CodeArtifact m_codeArtifact;
472
473 Logging m_logging;
474
475 Aws::Vector<Aws::String> m_egressNetworkConnectors;
476
477 Aws::Vector<CpuConfiguration> m_cpuConfigurations;
478
479 Aws::Vector<Resources> m_resources;
480
481 Aws::Vector<Capability> m_additionalOsCapabilities;
482
483 Hooks m_hooks;
484
485 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
486
488
489 Aws::Utils::DateTime m_updatedAt{};
490
491 Aws::String m_imageVersion;
492
493 Aws::String m_requestId;
494 Aws::Http::HttpResponseCode m_HttpResponseCode;
495 bool m_imageArnHasBeenSet = false;
496 bool m_nameHasBeenSet = false;
497 bool m_stateHasBeenSet = false;
498 bool m_latestActiveImageVersionHasBeenSet = false;
499 bool m_latestFailedImageVersionHasBeenSet = false;
500 bool m_createdAtHasBeenSet = false;
501 bool m_baseImageArnHasBeenSet = false;
502 bool m_baseImageVersionHasBeenSet = false;
503 bool m_buildRoleArnHasBeenSet = false;
504 bool m_descriptionHasBeenSet = false;
505 bool m_codeArtifactHasBeenSet = false;
506 bool m_loggingHasBeenSet = false;
507 bool m_egressNetworkConnectorsHasBeenSet = false;
508 bool m_cpuConfigurationsHasBeenSet = false;
509 bool m_resourcesHasBeenSet = false;
510 bool m_additionalOsCapabilitiesHasBeenSet = false;
511 bool m_hooksHasBeenSet = false;
512 bool m_environmentVariablesHasBeenSet = false;
513 bool m_tagsHasBeenSet = false;
514 bool m_updatedAtHasBeenSet = false;
515 bool m_imageVersionHasBeenSet = false;
516 bool m_requestIdHasBeenSet = false;
517};
518
519} // namespace Model
520} // namespace LambdaMicrovms
521} // namespace Aws
CreateMicrovmImageResult & AddResources(ResourcesT &&value)
CreateMicrovmImageResult & WithName(NameT &&value)
CreateMicrovmImageResult & WithLatestFailedImageVersion(LatestFailedImageVersionT &&value)
CreateMicrovmImageResult & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
void SetLatestFailedImageVersion(LatestFailedImageVersionT &&value)
CreateMicrovmImageResult & AddAdditionalOsCapabilities(Capability value)
CreateMicrovmImageResult & WithBaseImageVersion(BaseImageVersionT &&value)
CreateMicrovmImageResult & WithRequestId(RequestIdT &&value)
CreateMicrovmImageResult & WithEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
CreateMicrovmImageResult & WithBuildRoleArn(BuildRoleArnT &&value)
CreateMicrovmImageResult & WithImageArn(ImageArnT &&value)
const Aws::Vector< Resources > & GetResources() const
CreateMicrovmImageResult & WithImageVersion(ImageVersionT &&value)
const Aws::Vector< CpuConfiguration > & GetCpuConfigurations() const
CreateMicrovmImageResult & AddEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
AWS_LAMBDAMICROVMS_API CreateMicrovmImageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateMicrovmImageResult & WithHooks(HooksT &&value)
void SetEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
CreateMicrovmImageResult & WithBaseImageArn(BaseImageArnT &&value)
CreateMicrovmImageResult & WithLatestActiveImageVersion(LatestActiveImageVersionT &&value)
CreateMicrovmImageResult & WithCodeArtifact(CodeArtifactT &&value)
CreateMicrovmImageResult & AddCpuConfigurations(CpuConfigurationsT &&value)
const Aws::Vector< Aws::String > & GetEgressNetworkConnectors() const
const Aws::Vector< Capability > & GetAdditionalOsCapabilities() const
CreateMicrovmImageResult & WithCpuConfigurations(CpuConfigurationsT &&value)
CreateMicrovmImageResult & WithState(MicrovmImageState value)
AWS_LAMBDAMICROVMS_API CreateMicrovmImageResult()=default
CreateMicrovmImageResult & WithCreatedAt(CreatedAtT &&value)
CreateMicrovmImageResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateMicrovmImageResult & WithLogging(LoggingT &&value)
CreateMicrovmImageResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_LAMBDAMICROVMS_API CreateMicrovmImageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateMicrovmImageResult & WithEnvironmentVariables(EnvironmentVariablesT &&value)
CreateMicrovmImageResult & WithDescription(DescriptionT &&value)
void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
CreateMicrovmImageResult & WithResources(ResourcesT &&value)
void SetLatestActiveImageVersion(LatestActiveImageVersionT &&value)
CreateMicrovmImageResult & WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&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