AWS SDK for C++

AWS SDK for C++ Version 1.11.835

Loading...
Searching...
No Matches
GetMicrovmImageVersionResult.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/MicrovmImageVersionState.h>
19#include <aws/lambda-microvms/model/MicrovmImageVersionStatus.h>
20#include <aws/lambda-microvms/model/Resources.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace LambdaMicrovms {
34namespace Model {
36 public:
37 AWS_LAMBDAMICROVMS_API GetMicrovmImageVersionResult() = default;
40
42
45 inline const Aws::String& GetBaseImageArn() const { return m_baseImageArn; }
46 template <typename BaseImageArnT = Aws::String>
47 void SetBaseImageArn(BaseImageArnT&& value) {
48 m_baseImageArnHasBeenSet = true;
49 m_baseImageArn = std::forward<BaseImageArnT>(value);
50 }
51 template <typename BaseImageArnT = Aws::String>
53 SetBaseImageArn(std::forward<BaseImageArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetBaseImageVersion() const { return m_baseImageVersion; }
63 template <typename BaseImageVersionT = Aws::String>
64 void SetBaseImageVersion(BaseImageVersionT&& value) {
65 m_baseImageVersionHasBeenSet = true;
66 m_baseImageVersion = std::forward<BaseImageVersionT>(value);
67 }
68 template <typename BaseImageVersionT = Aws::String>
70 SetBaseImageVersion(std::forward<BaseImageVersionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetBuildRoleArn() const { return m_buildRoleArn; }
80 template <typename BuildRoleArnT = Aws::String>
81 void SetBuildRoleArn(BuildRoleArnT&& value) {
82 m_buildRoleArnHasBeenSet = true;
83 m_buildRoleArn = std::forward<BuildRoleArnT>(value);
84 }
85 template <typename BuildRoleArnT = Aws::String>
87 SetBuildRoleArn(std::forward<BuildRoleArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const CodeArtifact& GetCodeArtifact() const { return m_codeArtifact; }
114 template <typename CodeArtifactT = CodeArtifact>
115 void SetCodeArtifact(CodeArtifactT&& value) {
116 m_codeArtifactHasBeenSet = true;
117 m_codeArtifact = std::forward<CodeArtifactT>(value);
118 }
119 template <typename CodeArtifactT = CodeArtifact>
121 SetCodeArtifact(std::forward<CodeArtifactT>(value));
122 return *this;
123 }
125
127
130 inline const Logging& GetLogging() const { return m_logging; }
131 template <typename LoggingT = Logging>
132 void SetLogging(LoggingT&& value) {
133 m_loggingHasBeenSet = true;
134 m_logging = std::forward<LoggingT>(value);
135 }
136 template <typename LoggingT = Logging>
138 SetLogging(std::forward<LoggingT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::Vector<Aws::String>& GetEgressNetworkConnectors() const { return m_egressNetworkConnectors; }
149 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
150 void SetEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
151 m_egressNetworkConnectorsHasBeenSet = true;
152 m_egressNetworkConnectors = std::forward<EgressNetworkConnectorsT>(value);
153 }
154 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
156 SetEgressNetworkConnectors(std::forward<EgressNetworkConnectorsT>(value));
157 return *this;
158 }
159 template <typename EgressNetworkConnectorsT = Aws::String>
160 GetMicrovmImageVersionResult& AddEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
161 m_egressNetworkConnectorsHasBeenSet = true;
162 m_egressNetworkConnectors.emplace_back(std::forward<EgressNetworkConnectorsT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<CpuConfiguration>& GetCpuConfigurations() const { return m_cpuConfigurations; }
172 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
173 void SetCpuConfigurations(CpuConfigurationsT&& value) {
174 m_cpuConfigurationsHasBeenSet = true;
175 m_cpuConfigurations = std::forward<CpuConfigurationsT>(value);
176 }
177 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
179 SetCpuConfigurations(std::forward<CpuConfigurationsT>(value));
180 return *this;
181 }
182 template <typename CpuConfigurationsT = CpuConfiguration>
184 m_cpuConfigurationsHasBeenSet = true;
185 m_cpuConfigurations.emplace_back(std::forward<CpuConfigurationsT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Vector<Resources>& GetResources() const { return m_resources; }
195 template <typename ResourcesT = Aws::Vector<Resources>>
196 void SetResources(ResourcesT&& value) {
197 m_resourcesHasBeenSet = true;
198 m_resources = std::forward<ResourcesT>(value);
199 }
200 template <typename ResourcesT = Aws::Vector<Resources>>
202 SetResources(std::forward<ResourcesT>(value));
203 return *this;
204 }
205 template <typename ResourcesT = Resources>
207 m_resourcesHasBeenSet = true;
208 m_resources.emplace_back(std::forward<ResourcesT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Vector<Capability>& GetAdditionalOsCapabilities() const { return m_additionalOsCapabilities; }
218 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
219 void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
220 m_additionalOsCapabilitiesHasBeenSet = true;
221 m_additionalOsCapabilities = std::forward<AdditionalOsCapabilitiesT>(value);
222 }
223 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
224 GetMicrovmImageVersionResult& WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
225 SetAdditionalOsCapabilities(std::forward<AdditionalOsCapabilitiesT>(value));
226 return *this;
227 }
229 m_additionalOsCapabilitiesHasBeenSet = true;
230 m_additionalOsCapabilities.push_back(value);
231 return *this;
232 }
234
236
237 inline const Hooks& GetHooks() const { return m_hooks; }
238 template <typename HooksT = Hooks>
239 void SetHooks(HooksT&& value) {
240 m_hooksHasBeenSet = true;
241 m_hooks = std::forward<HooksT>(value);
242 }
243 template <typename HooksT = Hooks>
245 SetHooks(std::forward<HooksT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
255 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
256 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
257 m_environmentVariablesHasBeenSet = true;
258 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
259 }
260 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
262 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
263 return *this;
264 }
265 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
266 GetMicrovmImageVersionResult& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
267 m_environmentVariablesHasBeenSet = true;
268 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::String& GetImageArn() const { return m_imageArn; }
278 template <typename ImageArnT = Aws::String>
279 void SetImageArn(ImageArnT&& value) {
280 m_imageArnHasBeenSet = true;
281 m_imageArn = std::forward<ImageArnT>(value);
282 }
283 template <typename ImageArnT = Aws::String>
285 SetImageArn(std::forward<ImageArnT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
295 template <typename ImageVersionT = Aws::String>
296 void SetImageVersion(ImageVersionT&& value) {
297 m_imageVersionHasBeenSet = true;
298 m_imageVersion = std::forward<ImageVersionT>(value);
299 }
300 template <typename ImageVersionT = Aws::String>
302 SetImageVersion(std::forward<ImageVersionT>(value));
303 return *this;
304 }
306
308
311 inline MicrovmImageVersionState GetState() const { return m_state; }
313 m_stateHasBeenSet = true;
314 m_state = value;
315 }
317 SetState(value);
318 return *this;
319 }
321
323
327 inline MicrovmImageVersionStatus GetStatus() const { return m_status; }
329 m_statusHasBeenSet = true;
330 m_status = value;
331 }
333 SetStatus(value);
334 return *this;
335 }
337
339
342 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
343 template <typename CreatedAtT = Aws::Utils::DateTime>
344 void SetCreatedAt(CreatedAtT&& value) {
345 m_createdAtHasBeenSet = true;
346 m_createdAt = std::forward<CreatedAtT>(value);
347 }
348 template <typename CreatedAtT = Aws::Utils::DateTime>
350 SetCreatedAt(std::forward<CreatedAtT>(value));
351 return *this;
352 }
354
356
359 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
360 template <typename UpdatedAtT = Aws::Utils::DateTime>
361 void SetUpdatedAt(UpdatedAtT&& value) {
362 m_updatedAtHasBeenSet = true;
363 m_updatedAt = std::forward<UpdatedAtT>(value);
364 }
365 template <typename UpdatedAtT = Aws::Utils::DateTime>
367 SetUpdatedAt(std::forward<UpdatedAtT>(value));
368 return *this;
369 }
371
373
376 inline const Aws::String& GetStateReason() const { return m_stateReason; }
377 template <typename StateReasonT = Aws::String>
378 void SetStateReason(StateReasonT&& value) {
379 m_stateReasonHasBeenSet = true;
380 m_stateReason = std::forward<StateReasonT>(value);
381 }
382 template <typename StateReasonT = Aws::String>
384 SetStateReason(std::forward<StateReasonT>(value));
385 return *this;
386 }
388
390
393 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
394 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
395 void SetTags(TagsT&& value) {
396 m_tagsHasBeenSet = true;
397 m_tags = std::forward<TagsT>(value);
398 }
399 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
401 SetTags(std::forward<TagsT>(value));
402 return *this;
403 }
404 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
405 GetMicrovmImageVersionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
406 m_tagsHasBeenSet = true;
407 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
408 return *this;
409 }
411
413
414 inline const Aws::String& GetRequestId() const { return m_requestId; }
415 template <typename RequestIdT = Aws::String>
416 void SetRequestId(RequestIdT&& value) {
417 m_requestIdHasBeenSet = true;
418 m_requestId = std::forward<RequestIdT>(value);
419 }
420 template <typename RequestIdT = Aws::String>
422 SetRequestId(std::forward<RequestIdT>(value));
423 return *this;
424 }
426 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
427
428 private:
429 Aws::String m_baseImageArn;
430
431 Aws::String m_baseImageVersion;
432
433 Aws::String m_buildRoleArn;
434
435 Aws::String m_description;
436
437 CodeArtifact m_codeArtifact;
438
439 Logging m_logging;
440
441 Aws::Vector<Aws::String> m_egressNetworkConnectors;
442
443 Aws::Vector<CpuConfiguration> m_cpuConfigurations;
444
445 Aws::Vector<Resources> m_resources;
446
447 Aws::Vector<Capability> m_additionalOsCapabilities;
448
449 Hooks m_hooks;
450
451 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
452
453 Aws::String m_imageArn;
454
455 Aws::String m_imageVersion;
456
458
460
461 Aws::Utils::DateTime m_createdAt{};
462
463 Aws::Utils::DateTime m_updatedAt{};
464
465 Aws::String m_stateReason;
466
468
469 Aws::String m_requestId;
470 Aws::Http::HttpResponseCode m_HttpResponseCode;
471 bool m_baseImageArnHasBeenSet = false;
472 bool m_baseImageVersionHasBeenSet = false;
473 bool m_buildRoleArnHasBeenSet = false;
474 bool m_descriptionHasBeenSet = false;
475 bool m_codeArtifactHasBeenSet = false;
476 bool m_loggingHasBeenSet = false;
477 bool m_egressNetworkConnectorsHasBeenSet = false;
478 bool m_cpuConfigurationsHasBeenSet = false;
479 bool m_resourcesHasBeenSet = false;
480 bool m_additionalOsCapabilitiesHasBeenSet = false;
481 bool m_hooksHasBeenSet = false;
482 bool m_environmentVariablesHasBeenSet = false;
483 bool m_imageArnHasBeenSet = false;
484 bool m_imageVersionHasBeenSet = false;
485 bool m_stateHasBeenSet = false;
486 bool m_statusHasBeenSet = false;
487 bool m_createdAtHasBeenSet = false;
488 bool m_updatedAtHasBeenSet = false;
489 bool m_stateReasonHasBeenSet = false;
490 bool m_tagsHasBeenSet = false;
491 bool m_requestIdHasBeenSet = false;
492};
493
494} // namespace Model
495} // namespace LambdaMicrovms
496} // namespace Aws
GetMicrovmImageVersionResult & WithResources(ResourcesT &&value)
GetMicrovmImageVersionResult & WithCodeArtifact(CodeArtifactT &&value)
GetMicrovmImageVersionResult & WithEnvironmentVariables(EnvironmentVariablesT &&value)
GetMicrovmImageVersionResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_LAMBDAMICROVMS_API GetMicrovmImageVersionResult()=default
GetMicrovmImageVersionResult & WithRequestId(RequestIdT &&value)
GetMicrovmImageVersionResult & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
GetMicrovmImageVersionResult & WithStateReason(StateReasonT &&value)
GetMicrovmImageVersionResult & WithEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
GetMicrovmImageVersionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetMicrovmImageVersionResult & WithLogging(LoggingT &&value)
const Aws::Vector< CpuConfiguration > & GetCpuConfigurations() const
GetMicrovmImageVersionResult & WithStatus(MicrovmImageVersionStatus value)
GetMicrovmImageVersionResult & WithCreatedAt(CreatedAtT &&value)
GetMicrovmImageVersionResult & WithBaseImageVersion(BaseImageVersionT &&value)
GetMicrovmImageVersionResult & AddAdditionalOsCapabilities(Capability value)
GetMicrovmImageVersionResult & WithImageVersion(ImageVersionT &&value)
GetMicrovmImageVersionResult & AddResources(ResourcesT &&value)
GetMicrovmImageVersionResult & WithBuildRoleArn(BuildRoleArnT &&value)
GetMicrovmImageVersionResult & WithImageArn(ImageArnT &&value)
const Aws::Vector< Aws::String > & GetEgressNetworkConnectors() const
GetMicrovmImageVersionResult & WithCpuConfigurations(CpuConfigurationsT &&value)
const Aws::Vector< Capability > & GetAdditionalOsCapabilities() const
GetMicrovmImageVersionResult & WithState(MicrovmImageVersionState value)
AWS_LAMBDAMICROVMS_API GetMicrovmImageVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LAMBDAMICROVMS_API GetMicrovmImageVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMicrovmImageVersionResult & AddEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetMicrovmImageVersionResult & WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
GetMicrovmImageVersionResult & WithDescription(DescriptionT &&value)
GetMicrovmImageVersionResult & AddCpuConfigurations(CpuConfigurationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
GetMicrovmImageVersionResult & WithBaseImageArn(BaseImageArnT &&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