AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
MicrovmImageVersionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
12#include <aws/lambda-microvms/model/Capability.h>
13#include <aws/lambda-microvms/model/CodeArtifact.h>
14#include <aws/lambda-microvms/model/CpuConfiguration.h>
15#include <aws/lambda-microvms/model/Hooks.h>
16#include <aws/lambda-microvms/model/Logging.h>
17#include <aws/lambda-microvms/model/MicrovmImageVersionState.h>
18#include <aws/lambda-microvms/model/MicrovmImageVersionStatus.h>
19#include <aws/lambda-microvms/model/Resources.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace LambdaMicrovms {
31namespace Model {
32
40 public:
41 AWS_LAMBDAMICROVMS_API MicrovmImageVersionSummary() = default;
42 AWS_LAMBDAMICROVMS_API MicrovmImageVersionSummary(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetBaseImageArn() const { return m_baseImageArn; }
51 inline bool BaseImageArnHasBeenSet() const { return m_baseImageArnHasBeenSet; }
52 template <typename BaseImageArnT = Aws::String>
53 void SetBaseImageArn(BaseImageArnT&& value) {
54 m_baseImageArnHasBeenSet = true;
55 m_baseImageArn = std::forward<BaseImageArnT>(value);
56 }
57 template <typename BaseImageArnT = Aws::String>
59 SetBaseImageArn(std::forward<BaseImageArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetBaseImageVersion() const { return m_baseImageVersion; }
69 inline bool BaseImageVersionHasBeenSet() const { return m_baseImageVersionHasBeenSet; }
70 template <typename BaseImageVersionT = Aws::String>
71 void SetBaseImageVersion(BaseImageVersionT&& value) {
72 m_baseImageVersionHasBeenSet = true;
73 m_baseImageVersion = std::forward<BaseImageVersionT>(value);
74 }
75 template <typename BaseImageVersionT = Aws::String>
77 SetBaseImageVersion(std::forward<BaseImageVersionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetBuildRoleArn() const { return m_buildRoleArn; }
87 inline bool BuildRoleArnHasBeenSet() const { return m_buildRoleArnHasBeenSet; }
88 template <typename BuildRoleArnT = Aws::String>
89 void SetBuildRoleArn(BuildRoleArnT&& value) {
90 m_buildRoleArnHasBeenSet = true;
91 m_buildRoleArn = std::forward<BuildRoleArnT>(value);
92 }
93 template <typename BuildRoleArnT = Aws::String>
95 SetBuildRoleArn(std::forward<BuildRoleArnT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
122 inline const CodeArtifact& GetCodeArtifact() const { return m_codeArtifact; }
123 inline bool CodeArtifactHasBeenSet() const { return m_codeArtifactHasBeenSet; }
124 template <typename CodeArtifactT = CodeArtifact>
125 void SetCodeArtifact(CodeArtifactT&& value) {
126 m_codeArtifactHasBeenSet = true;
127 m_codeArtifact = std::forward<CodeArtifactT>(value);
128 }
129 template <typename CodeArtifactT = CodeArtifact>
131 SetCodeArtifact(std::forward<CodeArtifactT>(value));
132 return *this;
133 }
135
137
140 inline const Logging& GetLogging() const { return m_logging; }
141 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
142 template <typename LoggingT = Logging>
143 void SetLogging(LoggingT&& value) {
144 m_loggingHasBeenSet = true;
145 m_logging = std::forward<LoggingT>(value);
146 }
147 template <typename LoggingT = Logging>
149 SetLogging(std::forward<LoggingT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::Vector<Aws::String>& GetEgressNetworkConnectors() const { return m_egressNetworkConnectors; }
160 inline bool EgressNetworkConnectorsHasBeenSet() const { return m_egressNetworkConnectorsHasBeenSet; }
161 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
162 void SetEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
163 m_egressNetworkConnectorsHasBeenSet = true;
164 m_egressNetworkConnectors = std::forward<EgressNetworkConnectorsT>(value);
165 }
166 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
167 MicrovmImageVersionSummary& WithEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
168 SetEgressNetworkConnectors(std::forward<EgressNetworkConnectorsT>(value));
169 return *this;
170 }
171 template <typename EgressNetworkConnectorsT = Aws::String>
172 MicrovmImageVersionSummary& AddEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
173 m_egressNetworkConnectorsHasBeenSet = true;
174 m_egressNetworkConnectors.emplace_back(std::forward<EgressNetworkConnectorsT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Vector<CpuConfiguration>& GetCpuConfigurations() const { return m_cpuConfigurations; }
184 inline bool CpuConfigurationsHasBeenSet() const { return m_cpuConfigurationsHasBeenSet; }
185 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
186 void SetCpuConfigurations(CpuConfigurationsT&& value) {
187 m_cpuConfigurationsHasBeenSet = true;
188 m_cpuConfigurations = std::forward<CpuConfigurationsT>(value);
189 }
190 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
192 SetCpuConfigurations(std::forward<CpuConfigurationsT>(value));
193 return *this;
194 }
195 template <typename CpuConfigurationsT = CpuConfiguration>
197 m_cpuConfigurationsHasBeenSet = true;
198 m_cpuConfigurations.emplace_back(std::forward<CpuConfigurationsT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Vector<Resources>& GetResources() const { return m_resources; }
208 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
209 template <typename ResourcesT = Aws::Vector<Resources>>
210 void SetResources(ResourcesT&& value) {
211 m_resourcesHasBeenSet = true;
212 m_resources = std::forward<ResourcesT>(value);
213 }
214 template <typename ResourcesT = Aws::Vector<Resources>>
216 SetResources(std::forward<ResourcesT>(value));
217 return *this;
218 }
219 template <typename ResourcesT = Resources>
221 m_resourcesHasBeenSet = true;
222 m_resources.emplace_back(std::forward<ResourcesT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Vector<Capability>& GetAdditionalOsCapabilities() const { return m_additionalOsCapabilities; }
232 inline bool AdditionalOsCapabilitiesHasBeenSet() const { return m_additionalOsCapabilitiesHasBeenSet; }
233 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
234 void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
235 m_additionalOsCapabilitiesHasBeenSet = true;
236 m_additionalOsCapabilities = std::forward<AdditionalOsCapabilitiesT>(value);
237 }
238 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
239 MicrovmImageVersionSummary& WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
240 SetAdditionalOsCapabilities(std::forward<AdditionalOsCapabilitiesT>(value));
241 return *this;
242 }
244 m_additionalOsCapabilitiesHasBeenSet = true;
245 m_additionalOsCapabilities.push_back(value);
246 return *this;
247 }
249
251
252 inline const Hooks& GetHooks() const { return m_hooks; }
253 inline bool HooksHasBeenSet() const { return m_hooksHasBeenSet; }
254 template <typename HooksT = Hooks>
255 void SetHooks(HooksT&& value) {
256 m_hooksHasBeenSet = true;
257 m_hooks = std::forward<HooksT>(value);
258 }
259 template <typename HooksT = Hooks>
261 SetHooks(std::forward<HooksT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
271 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
272 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
273 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
274 m_environmentVariablesHasBeenSet = true;
275 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
276 }
277 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
278 MicrovmImageVersionSummary& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
279 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
280 return *this;
281 }
282 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
283 MicrovmImageVersionSummary& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
284 m_environmentVariablesHasBeenSet = true;
285 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
286 return *this;
287 }
289
291
297 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
298 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
299 template <typename KmsKeyIdentifierT = Aws::String>
300 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
301 m_kmsKeyIdentifierHasBeenSet = true;
302 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
303 }
304 template <typename KmsKeyIdentifierT = Aws::String>
306 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
307 return *this;
308 }
310
312
315 inline const Aws::String& GetImageArn() const { return m_imageArn; }
316 inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; }
317 template <typename ImageArnT = Aws::String>
318 void SetImageArn(ImageArnT&& value) {
319 m_imageArnHasBeenSet = true;
320 m_imageArn = std::forward<ImageArnT>(value);
321 }
322 template <typename ImageArnT = Aws::String>
324 SetImageArn(std::forward<ImageArnT>(value));
325 return *this;
326 }
328
330
333 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
334 inline bool ImageVersionHasBeenSet() const { return m_imageVersionHasBeenSet; }
335 template <typename ImageVersionT = Aws::String>
336 void SetImageVersion(ImageVersionT&& value) {
337 m_imageVersionHasBeenSet = true;
338 m_imageVersion = std::forward<ImageVersionT>(value);
339 }
340 template <typename ImageVersionT = Aws::String>
342 SetImageVersion(std::forward<ImageVersionT>(value));
343 return *this;
344 }
346
348
351 inline MicrovmImageVersionState GetState() const { return m_state; }
352 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
354 m_stateHasBeenSet = true;
355 m_state = value;
356 }
358 SetState(value);
359 return *this;
360 }
362
364
368 inline MicrovmImageVersionStatus GetStatus() const { return m_status; }
369 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
371 m_statusHasBeenSet = true;
372 m_status = value;
373 }
375 SetStatus(value);
376 return *this;
377 }
379
381
384 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
385 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
386 template <typename CreatedAtT = Aws::Utils::DateTime>
387 void SetCreatedAt(CreatedAtT&& value) {
388 m_createdAtHasBeenSet = true;
389 m_createdAt = std::forward<CreatedAtT>(value);
390 }
391 template <typename CreatedAtT = Aws::Utils::DateTime>
393 SetCreatedAt(std::forward<CreatedAtT>(value));
394 return *this;
395 }
397
399
402 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
403 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
404 template <typename UpdatedAtT = Aws::Utils::DateTime>
405 void SetUpdatedAt(UpdatedAtT&& value) {
406 m_updatedAtHasBeenSet = true;
407 m_updatedAt = std::forward<UpdatedAtT>(value);
408 }
409 template <typename UpdatedAtT = Aws::Utils::DateTime>
411 SetUpdatedAt(std::forward<UpdatedAtT>(value));
412 return *this;
413 }
415
417
420 inline const Aws::String& GetStateReason() const { return m_stateReason; }
421 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
422 template <typename StateReasonT = Aws::String>
423 void SetStateReason(StateReasonT&& value) {
424 m_stateReasonHasBeenSet = true;
425 m_stateReason = std::forward<StateReasonT>(value);
426 }
427 template <typename StateReasonT = Aws::String>
429 SetStateReason(std::forward<StateReasonT>(value));
430 return *this;
431 }
433
435
438 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
439 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
440 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
441 void SetTags(TagsT&& value) {
442 m_tagsHasBeenSet = true;
443 m_tags = std::forward<TagsT>(value);
444 }
445 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
447 SetTags(std::forward<TagsT>(value));
448 return *this;
449 }
450 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
451 MicrovmImageVersionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
452 m_tagsHasBeenSet = true;
453 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
454 return *this;
455 }
457 private:
458 Aws::String m_baseImageArn;
459
460 Aws::String m_baseImageVersion;
461
462 Aws::String m_buildRoleArn;
463
464 Aws::String m_description;
465
466 CodeArtifact m_codeArtifact;
467
468 Logging m_logging;
469
470 Aws::Vector<Aws::String> m_egressNetworkConnectors;
471
472 Aws::Vector<CpuConfiguration> m_cpuConfigurations;
473
474 Aws::Vector<Resources> m_resources;
475
476 Aws::Vector<Capability> m_additionalOsCapabilities;
477
478 Hooks m_hooks;
479
480 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
481
482 Aws::String m_kmsKeyIdentifier;
483
484 Aws::String m_imageArn;
485
486 Aws::String m_imageVersion;
487
489
491
492 Aws::Utils::DateTime m_createdAt{};
493
494 Aws::Utils::DateTime m_updatedAt{};
495
496 Aws::String m_stateReason;
497
499 bool m_baseImageArnHasBeenSet = false;
500 bool m_baseImageVersionHasBeenSet = false;
501 bool m_buildRoleArnHasBeenSet = false;
502 bool m_descriptionHasBeenSet = false;
503 bool m_codeArtifactHasBeenSet = false;
504 bool m_loggingHasBeenSet = false;
505 bool m_egressNetworkConnectorsHasBeenSet = false;
506 bool m_cpuConfigurationsHasBeenSet = false;
507 bool m_resourcesHasBeenSet = false;
508 bool m_additionalOsCapabilitiesHasBeenSet = false;
509 bool m_hooksHasBeenSet = false;
510 bool m_environmentVariablesHasBeenSet = false;
511 bool m_kmsKeyIdentifierHasBeenSet = false;
512 bool m_imageArnHasBeenSet = false;
513 bool m_imageVersionHasBeenSet = false;
514 bool m_stateHasBeenSet = false;
515 bool m_statusHasBeenSet = false;
516 bool m_createdAtHasBeenSet = false;
517 bool m_updatedAtHasBeenSet = false;
518 bool m_stateReasonHasBeenSet = false;
519 bool m_tagsHasBeenSet = false;
520};
521
522} // namespace Model
523} // namespace LambdaMicrovms
524} // namespace Aws
const Aws::Vector< CpuConfiguration > & GetCpuConfigurations() const
MicrovmImageVersionSummary & WithUpdatedAt(UpdatedAtT &&value)
MicrovmImageVersionSummary & WithImageArn(ImageArnT &&value)
AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const
MicrovmImageVersionSummary & WithCpuConfigurations(CpuConfigurationsT &&value)
const Aws::Vector< Capability > & GetAdditionalOsCapabilities() const
MicrovmImageVersionSummary & WithImageVersion(ImageVersionT &&value)
MicrovmImageVersionSummary & WithDescription(DescriptionT &&value)
MicrovmImageVersionSummary & WithCodeArtifact(CodeArtifactT &&value)
MicrovmImageVersionSummary & WithBuildRoleArn(BuildRoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
MicrovmImageVersionSummary & WithResources(ResourcesT &&value)
MicrovmImageVersionSummary & WithStatus(MicrovmImageVersionStatus value)
MicrovmImageVersionSummary & WithBaseImageArn(BaseImageArnT &&value)
MicrovmImageVersionSummary & WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
void SetEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
MicrovmImageVersionSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
MicrovmImageVersionSummary & WithBaseImageVersion(BaseImageVersionT &&value)
MicrovmImageVersionSummary & WithEnvironmentVariables(EnvironmentVariablesT &&value)
MicrovmImageVersionSummary & WithStateReason(StateReasonT &&value)
MicrovmImageVersionSummary & AddResources(ResourcesT &&value)
const Aws::Vector< Aws::String > & GetEgressNetworkConnectors() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
AWS_LAMBDAMICROVMS_API MicrovmImageVersionSummary(Aws::Utils::Json::JsonView jsonValue)
MicrovmImageVersionSummary & AddAdditionalOsCapabilities(Capability value)
MicrovmImageVersionSummary & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
MicrovmImageVersionSummary & WithState(MicrovmImageVersionState value)
MicrovmImageVersionSummary & AddEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
MicrovmImageVersionSummary & WithCreatedAt(CreatedAtT &&value)
MicrovmImageVersionSummary & AddCpuConfigurations(CpuConfigurationsT &&value)
MicrovmImageVersionSummary & WithLogging(LoggingT &&value)
AWS_LAMBDAMICROVMS_API MicrovmImageVersionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
MicrovmImageVersionSummary & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
AWS_LAMBDAMICROVMS_API MicrovmImageVersionSummary()=default
MicrovmImageVersionSummary & WithEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
MicrovmImageVersionSummary & WithHooks(HooksT &&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