AWS SDK for C++

AWS SDK for C++ Version 1.11.835

Loading...
Searching...
No Matches
UpdateMicrovmImageResult.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 UpdateMicrovmImageResult() = 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 UpdateMicrovmImageResult& 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 UpdateMicrovmImageResult& 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 UpdateMicrovmImageResult& 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 UpdateMicrovmImageResult& WithEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
258 SetEgressNetworkConnectors(std::forward<EgressNetworkConnectorsT>(value));
259 return *this;
260 }
261 template <typename EgressNetworkConnectorsT = Aws::String>
262 UpdateMicrovmImageResult& 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 UpdateMicrovmImageResult& WithCpuConfigurations(CpuConfigurationsT&& value) {
281 SetCpuConfigurations(std::forward<CpuConfigurationsT>(value));
282 return *this;
283 }
284 template <typename CpuConfigurationsT = CpuConfiguration>
285 UpdateMicrovmImageResult& 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 UpdateMicrovmImageResult& 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 UpdateMicrovmImageResult& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
364 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
365 return *this;
366 }
367 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
368 UpdateMicrovmImageResult& 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
379 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
380 template <typename UpdatedAtT = Aws::Utils::DateTime>
381 void SetUpdatedAt(UpdatedAtT&& value) {
382 m_updatedAtHasBeenSet = true;
383 m_updatedAt = std::forward<UpdatedAtT>(value);
384 }
385 template <typename UpdatedAtT = Aws::Utils::DateTime>
387 SetUpdatedAt(std::forward<UpdatedAtT>(value));
388 return *this;
389 }
391
393
396 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
397 template <typename ImageVersionT = Aws::String>
398 void SetImageVersion(ImageVersionT&& value) {
399 m_imageVersionHasBeenSet = true;
400 m_imageVersion = std::forward<ImageVersionT>(value);
401 }
402 template <typename ImageVersionT = Aws::String>
404 SetImageVersion(std::forward<ImageVersionT>(value));
405 return *this;
406 }
408
410
411 inline const Aws::String& GetRequestId() const { return m_requestId; }
412 template <typename RequestIdT = Aws::String>
413 void SetRequestId(RequestIdT&& value) {
414 m_requestIdHasBeenSet = true;
415 m_requestId = std::forward<RequestIdT>(value);
416 }
417 template <typename RequestIdT = Aws::String>
419 SetRequestId(std::forward<RequestIdT>(value));
420 return *this;
421 }
423 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
424
425 private:
426 Aws::String m_imageArn;
427
428 Aws::String m_name;
429
431
432 Aws::String m_latestActiveImageVersion;
433
434 Aws::String m_latestFailedImageVersion;
435
436 Aws::Utils::DateTime m_createdAt{};
437
438 Aws::String m_baseImageArn;
439
440 Aws::String m_baseImageVersion;
441
442 Aws::String m_buildRoleArn;
443
444 Aws::String m_description;
445
446 CodeArtifact m_codeArtifact;
447
448 Logging m_logging;
449
450 Aws::Vector<Aws::String> m_egressNetworkConnectors;
451
452 Aws::Vector<CpuConfiguration> m_cpuConfigurations;
453
454 Aws::Vector<Resources> m_resources;
455
456 Aws::Vector<Capability> m_additionalOsCapabilities;
457
458 Hooks m_hooks;
459
460 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
461
462 Aws::Utils::DateTime m_updatedAt{};
463
464 Aws::String m_imageVersion;
465
466 Aws::String m_requestId;
467 Aws::Http::HttpResponseCode m_HttpResponseCode;
468 bool m_imageArnHasBeenSet = false;
469 bool m_nameHasBeenSet = false;
470 bool m_stateHasBeenSet = false;
471 bool m_latestActiveImageVersionHasBeenSet = false;
472 bool m_latestFailedImageVersionHasBeenSet = false;
473 bool m_createdAtHasBeenSet = false;
474 bool m_baseImageArnHasBeenSet = false;
475 bool m_baseImageVersionHasBeenSet = false;
476 bool m_buildRoleArnHasBeenSet = false;
477 bool m_descriptionHasBeenSet = false;
478 bool m_codeArtifactHasBeenSet = false;
479 bool m_loggingHasBeenSet = false;
480 bool m_egressNetworkConnectorsHasBeenSet = false;
481 bool m_cpuConfigurationsHasBeenSet = false;
482 bool m_resourcesHasBeenSet = false;
483 bool m_additionalOsCapabilitiesHasBeenSet = false;
484 bool m_hooksHasBeenSet = false;
485 bool m_environmentVariablesHasBeenSet = false;
486 bool m_updatedAtHasBeenSet = false;
487 bool m_imageVersionHasBeenSet = false;
488 bool m_requestIdHasBeenSet = false;
489};
490
491} // namespace Model
492} // namespace LambdaMicrovms
493} // namespace Aws
UpdateMicrovmImageResult & WithState(MicrovmImageState value)
const Aws::Vector< CpuConfiguration > & GetCpuConfigurations() const
UpdateMicrovmImageResult & AddEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
UpdateMicrovmImageResult & AddCpuConfigurations(CpuConfigurationsT &&value)
UpdateMicrovmImageResult & WithCpuConfigurations(CpuConfigurationsT &&value)
UpdateMicrovmImageResult & AddResources(ResourcesT &&value)
UpdateMicrovmImageResult & WithLatestFailedImageVersion(LatestFailedImageVersionT &&value)
const Aws::Vector< Aws::String > & GetEgressNetworkConnectors() const
AWS_LAMBDAMICROVMS_API UpdateMicrovmImageResult()=default
UpdateMicrovmImageResult & WithBaseImageVersion(BaseImageVersionT &&value)
UpdateMicrovmImageResult & WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
UpdateMicrovmImageResult & WithResources(ResourcesT &&value)
UpdateMicrovmImageResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateMicrovmImageResult & WithLogging(LoggingT &&value)
UpdateMicrovmImageResult & WithHooks(HooksT &&value)
void SetLatestFailedImageVersion(LatestFailedImageVersionT &&value)
UpdateMicrovmImageResult & WithImageVersion(ImageVersionT &&value)
UpdateMicrovmImageResult & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
const Aws::Vector< Resources > & GetResources() const
UpdateMicrovmImageResult & WithCodeArtifact(CodeArtifactT &&value)
void SetEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
UpdateMicrovmImageResult & AddAdditionalOsCapabilities(Capability value)
AWS_LAMBDAMICROVMS_API UpdateMicrovmImageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMicrovmImageResult & WithRequestId(RequestIdT &&value)
UpdateMicrovmImageResult & WithCreatedAt(CreatedAtT &&value)
UpdateMicrovmImageResult & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateMicrovmImageResult & WithBaseImageArn(BaseImageArnT &&value)
void SetLatestActiveImageVersion(LatestActiveImageVersionT &&value)
UpdateMicrovmImageResult & WithLatestActiveImageVersion(LatestActiveImageVersionT &&value)
UpdateMicrovmImageResult & WithDescription(DescriptionT &&value)
UpdateMicrovmImageResult & WithEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
const Aws::Vector< Capability > & GetAdditionalOsCapabilities() const
UpdateMicrovmImageResult & WithName(NameT &&value)
UpdateMicrovmImageResult & WithImageArn(ImageArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
UpdateMicrovmImageResult & WithBuildRoleArn(BuildRoleArnT &&value)
AWS_LAMBDAMICROVMS_API UpdateMicrovmImageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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