AWS SDK for C++

AWS SDK for C++ Version 1.11.941

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
382 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
383 template <typename KmsKeyIdentifierT = Aws::String>
384 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
385 m_kmsKeyIdentifierHasBeenSet = true;
386 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
387 }
388 template <typename KmsKeyIdentifierT = Aws::String>
389 CreateMicrovmImageResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
390 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
391 return *this;
392 }
394
396
401 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
402 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
403 void SetTags(TagsT&& value) {
404 m_tagsHasBeenSet = true;
405 m_tags = std::forward<TagsT>(value);
406 }
407 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
409 SetTags(std::forward<TagsT>(value));
410 return *this;
411 }
412 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
413 CreateMicrovmImageResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
414 m_tagsHasBeenSet = true;
415 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
416 return *this;
417 }
419
421
424 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
425 template <typename UpdatedAtT = Aws::Utils::DateTime>
426 void SetUpdatedAt(UpdatedAtT&& value) {
427 m_updatedAtHasBeenSet = true;
428 m_updatedAt = std::forward<UpdatedAtT>(value);
429 }
430 template <typename UpdatedAtT = Aws::Utils::DateTime>
432 SetUpdatedAt(std::forward<UpdatedAtT>(value));
433 return *this;
434 }
436
438
441 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
442 template <typename ImageVersionT = Aws::String>
443 void SetImageVersion(ImageVersionT&& value) {
444 m_imageVersionHasBeenSet = true;
445 m_imageVersion = std::forward<ImageVersionT>(value);
446 }
447 template <typename ImageVersionT = Aws::String>
449 SetImageVersion(std::forward<ImageVersionT>(value));
450 return *this;
451 }
453
455
456 inline const Aws::String& GetRequestId() const { return m_requestId; }
457 template <typename RequestIdT = Aws::String>
458 void SetRequestId(RequestIdT&& value) {
459 m_requestIdHasBeenSet = true;
460 m_requestId = std::forward<RequestIdT>(value);
461 }
462 template <typename RequestIdT = Aws::String>
464 SetRequestId(std::forward<RequestIdT>(value));
465 return *this;
466 }
468 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
469
470 private:
471 Aws::String m_imageArn;
472
473 Aws::String m_name;
474
476
477 Aws::String m_latestActiveImageVersion;
478
479 Aws::String m_latestFailedImageVersion;
480
481 Aws::Utils::DateTime m_createdAt{};
482
483 Aws::String m_baseImageArn;
484
485 Aws::String m_baseImageVersion;
486
487 Aws::String m_buildRoleArn;
488
489 Aws::String m_description;
490
491 CodeArtifact m_codeArtifact;
492
493 Logging m_logging;
494
495 Aws::Vector<Aws::String> m_egressNetworkConnectors;
496
497 Aws::Vector<CpuConfiguration> m_cpuConfigurations;
498
499 Aws::Vector<Resources> m_resources;
500
501 Aws::Vector<Capability> m_additionalOsCapabilities;
502
503 Hooks m_hooks;
504
505 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
506
507 Aws::String m_kmsKeyIdentifier;
508
510
511 Aws::Utils::DateTime m_updatedAt{};
512
513 Aws::String m_imageVersion;
514
515 Aws::String m_requestId;
516 Aws::Http::HttpResponseCode m_HttpResponseCode;
517 bool m_imageArnHasBeenSet = false;
518 bool m_nameHasBeenSet = false;
519 bool m_stateHasBeenSet = false;
520 bool m_latestActiveImageVersionHasBeenSet = false;
521 bool m_latestFailedImageVersionHasBeenSet = false;
522 bool m_createdAtHasBeenSet = false;
523 bool m_baseImageArnHasBeenSet = false;
524 bool m_baseImageVersionHasBeenSet = false;
525 bool m_buildRoleArnHasBeenSet = false;
526 bool m_descriptionHasBeenSet = false;
527 bool m_codeArtifactHasBeenSet = false;
528 bool m_loggingHasBeenSet = false;
529 bool m_egressNetworkConnectorsHasBeenSet = false;
530 bool m_cpuConfigurationsHasBeenSet = false;
531 bool m_resourcesHasBeenSet = false;
532 bool m_additionalOsCapabilitiesHasBeenSet = false;
533 bool m_hooksHasBeenSet = false;
534 bool m_environmentVariablesHasBeenSet = false;
535 bool m_kmsKeyIdentifierHasBeenSet = false;
536 bool m_tagsHasBeenSet = false;
537 bool m_updatedAtHasBeenSet = false;
538 bool m_imageVersionHasBeenSet = false;
539 bool m_requestIdHasBeenSet = false;
540};
541
542} // namespace Model
543} // namespace LambdaMicrovms
544} // 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)
CreateMicrovmImageResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&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