AWS SDK for C++

AWS SDK for C++ Version 1.11.835

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
294 inline const Aws::String& GetImageArn() const { return m_imageArn; }
295 inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; }
296 template <typename ImageArnT = Aws::String>
297 void SetImageArn(ImageArnT&& value) {
298 m_imageArnHasBeenSet = true;
299 m_imageArn = std::forward<ImageArnT>(value);
300 }
301 template <typename ImageArnT = Aws::String>
303 SetImageArn(std::forward<ImageArnT>(value));
304 return *this;
305 }
307
309
312 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
313 inline bool ImageVersionHasBeenSet() const { return m_imageVersionHasBeenSet; }
314 template <typename ImageVersionT = Aws::String>
315 void SetImageVersion(ImageVersionT&& value) {
316 m_imageVersionHasBeenSet = true;
317 m_imageVersion = std::forward<ImageVersionT>(value);
318 }
319 template <typename ImageVersionT = Aws::String>
321 SetImageVersion(std::forward<ImageVersionT>(value));
322 return *this;
323 }
325
327
330 inline MicrovmImageVersionState GetState() const { return m_state; }
331 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
333 m_stateHasBeenSet = true;
334 m_state = value;
335 }
337 SetState(value);
338 return *this;
339 }
341
343
347 inline MicrovmImageVersionStatus GetStatus() const { return m_status; }
348 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
350 m_statusHasBeenSet = true;
351 m_status = value;
352 }
354 SetStatus(value);
355 return *this;
356 }
358
360
363 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
364 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
365 template <typename CreatedAtT = Aws::Utils::DateTime>
366 void SetCreatedAt(CreatedAtT&& value) {
367 m_createdAtHasBeenSet = true;
368 m_createdAt = std::forward<CreatedAtT>(value);
369 }
370 template <typename CreatedAtT = Aws::Utils::DateTime>
372 SetCreatedAt(std::forward<CreatedAtT>(value));
373 return *this;
374 }
376
378
381 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
382 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
383 template <typename UpdatedAtT = Aws::Utils::DateTime>
384 void SetUpdatedAt(UpdatedAtT&& value) {
385 m_updatedAtHasBeenSet = true;
386 m_updatedAt = std::forward<UpdatedAtT>(value);
387 }
388 template <typename UpdatedAtT = Aws::Utils::DateTime>
390 SetUpdatedAt(std::forward<UpdatedAtT>(value));
391 return *this;
392 }
394
396
399 inline const Aws::String& GetStateReason() const { return m_stateReason; }
400 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
401 template <typename StateReasonT = Aws::String>
402 void SetStateReason(StateReasonT&& value) {
403 m_stateReasonHasBeenSet = true;
404 m_stateReason = std::forward<StateReasonT>(value);
405 }
406 template <typename StateReasonT = Aws::String>
408 SetStateReason(std::forward<StateReasonT>(value));
409 return *this;
410 }
412
414
417 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
418 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
419 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
420 void SetTags(TagsT&& value) {
421 m_tagsHasBeenSet = true;
422 m_tags = std::forward<TagsT>(value);
423 }
424 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
426 SetTags(std::forward<TagsT>(value));
427 return *this;
428 }
429 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
430 MicrovmImageVersionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
431 m_tagsHasBeenSet = true;
432 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
433 return *this;
434 }
436 private:
437 Aws::String m_baseImageArn;
438
439 Aws::String m_baseImageVersion;
440
441 Aws::String m_buildRoleArn;
442
443 Aws::String m_description;
444
445 CodeArtifact m_codeArtifact;
446
447 Logging m_logging;
448
449 Aws::Vector<Aws::String> m_egressNetworkConnectors;
450
451 Aws::Vector<CpuConfiguration> m_cpuConfigurations;
452
453 Aws::Vector<Resources> m_resources;
454
455 Aws::Vector<Capability> m_additionalOsCapabilities;
456
457 Hooks m_hooks;
458
459 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
460
461 Aws::String m_imageArn;
462
463 Aws::String m_imageVersion;
464
466
468
469 Aws::Utils::DateTime m_createdAt{};
470
471 Aws::Utils::DateTime m_updatedAt{};
472
473 Aws::String m_stateReason;
474
476 bool m_baseImageArnHasBeenSet = false;
477 bool m_baseImageVersionHasBeenSet = false;
478 bool m_buildRoleArnHasBeenSet = false;
479 bool m_descriptionHasBeenSet = false;
480 bool m_codeArtifactHasBeenSet = false;
481 bool m_loggingHasBeenSet = false;
482 bool m_egressNetworkConnectorsHasBeenSet = false;
483 bool m_cpuConfigurationsHasBeenSet = false;
484 bool m_resourcesHasBeenSet = false;
485 bool m_additionalOsCapabilitiesHasBeenSet = false;
486 bool m_hooksHasBeenSet = false;
487 bool m_environmentVariablesHasBeenSet = false;
488 bool m_imageArnHasBeenSet = false;
489 bool m_imageVersionHasBeenSet = false;
490 bool m_stateHasBeenSet = false;
491 bool m_statusHasBeenSet = false;
492 bool m_createdAtHasBeenSet = false;
493 bool m_updatedAtHasBeenSet = false;
494 bool m_stateReasonHasBeenSet = false;
495 bool m_tagsHasBeenSet = false;
496};
497
498} // namespace Model
499} // namespace LambdaMicrovms
500} // 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 & 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