AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateMicrovmImageRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/LambdaMicrovmsRequest.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/Resources.h>
19
20#include <utility>
21
22namespace Aws {
23namespace LambdaMicrovms {
24namespace Model {
25
29 public:
30 AWS_LAMBDAMICROVMS_API UpdateMicrovmImageRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateMicrovmImage"; }
37
38 AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetBaseImageArn() const { return m_baseImageArn; }
45 inline bool BaseImageArnHasBeenSet() const { return m_baseImageArnHasBeenSet; }
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 inline bool BaseImageVersionHasBeenSet() const { return m_baseImageVersionHasBeenSet; }
64 template <typename BaseImageVersionT = Aws::String>
65 void SetBaseImageVersion(BaseImageVersionT&& value) {
66 m_baseImageVersionHasBeenSet = true;
67 m_baseImageVersion = std::forward<BaseImageVersionT>(value);
68 }
69 template <typename BaseImageVersionT = Aws::String>
70 UpdateMicrovmImageRequest& WithBaseImageVersion(BaseImageVersionT&& value) {
71 SetBaseImageVersion(std::forward<BaseImageVersionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetBuildRoleArn() const { return m_buildRoleArn; }
81 inline bool BuildRoleArnHasBeenSet() const { return m_buildRoleArnHasBeenSet; }
82 template <typename BuildRoleArnT = Aws::String>
83 void SetBuildRoleArn(BuildRoleArnT&& value) {
84 m_buildRoleArnHasBeenSet = true;
85 m_buildRoleArn = std::forward<BuildRoleArnT>(value);
86 }
87 template <typename BuildRoleArnT = Aws::String>
89 SetBuildRoleArn(std::forward<BuildRoleArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
117 inline const CodeArtifact& GetCodeArtifact() const { return m_codeArtifact; }
118 inline bool CodeArtifactHasBeenSet() const { return m_codeArtifactHasBeenSet; }
119 template <typename CodeArtifactT = CodeArtifact>
120 void SetCodeArtifact(CodeArtifactT&& value) {
121 m_codeArtifactHasBeenSet = true;
122 m_codeArtifact = std::forward<CodeArtifactT>(value);
123 }
124 template <typename CodeArtifactT = CodeArtifact>
126 SetCodeArtifact(std::forward<CodeArtifactT>(value));
127 return *this;
128 }
130
132
137 inline const Logging& GetLogging() const { return m_logging; }
138 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
139 template <typename LoggingT = Logging>
140 void SetLogging(LoggingT&& value) {
141 m_loggingHasBeenSet = true;
142 m_logging = std::forward<LoggingT>(value);
143 }
144 template <typename LoggingT = Logging>
146 SetLogging(std::forward<LoggingT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Vector<Aws::String>& GetEgressNetworkConnectors() const { return m_egressNetworkConnectors; }
157 inline bool EgressNetworkConnectorsHasBeenSet() const { return m_egressNetworkConnectorsHasBeenSet; }
158 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
159 void SetEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
160 m_egressNetworkConnectorsHasBeenSet = true;
161 m_egressNetworkConnectors = std::forward<EgressNetworkConnectorsT>(value);
162 }
163 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
164 UpdateMicrovmImageRequest& WithEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
165 SetEgressNetworkConnectors(std::forward<EgressNetworkConnectorsT>(value));
166 return *this;
167 }
168 template <typename EgressNetworkConnectorsT = Aws::String>
169 UpdateMicrovmImageRequest& AddEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
170 m_egressNetworkConnectorsHasBeenSet = true;
171 m_egressNetworkConnectors.emplace_back(std::forward<EgressNetworkConnectorsT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Vector<CpuConfiguration>& GetCpuConfigurations() const { return m_cpuConfigurations; }
181 inline bool CpuConfigurationsHasBeenSet() const { return m_cpuConfigurationsHasBeenSet; }
182 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
183 void SetCpuConfigurations(CpuConfigurationsT&& value) {
184 m_cpuConfigurationsHasBeenSet = true;
185 m_cpuConfigurations = std::forward<CpuConfigurationsT>(value);
186 }
187 template <typename CpuConfigurationsT = Aws::Vector<CpuConfiguration>>
189 SetCpuConfigurations(std::forward<CpuConfigurationsT>(value));
190 return *this;
191 }
192 template <typename CpuConfigurationsT = CpuConfiguration>
193 UpdateMicrovmImageRequest& AddCpuConfigurations(CpuConfigurationsT&& value) {
194 m_cpuConfigurationsHasBeenSet = true;
195 m_cpuConfigurations.emplace_back(std::forward<CpuConfigurationsT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Vector<Resources>& GetResources() const { return m_resources; }
205 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
206 template <typename ResourcesT = Aws::Vector<Resources>>
207 void SetResources(ResourcesT&& value) {
208 m_resourcesHasBeenSet = true;
209 m_resources = std::forward<ResourcesT>(value);
210 }
211 template <typename ResourcesT = Aws::Vector<Resources>>
213 SetResources(std::forward<ResourcesT>(value));
214 return *this;
215 }
216 template <typename ResourcesT = Resources>
218 m_resourcesHasBeenSet = true;
219 m_resources.emplace_back(std::forward<ResourcesT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Vector<Capability>& GetAdditionalOsCapabilities() const { return m_additionalOsCapabilities; }
229 inline bool AdditionalOsCapabilitiesHasBeenSet() const { return m_additionalOsCapabilitiesHasBeenSet; }
230 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
231 void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
232 m_additionalOsCapabilitiesHasBeenSet = true;
233 m_additionalOsCapabilities = std::forward<AdditionalOsCapabilitiesT>(value);
234 }
235 template <typename AdditionalOsCapabilitiesT = Aws::Vector<Capability>>
236 UpdateMicrovmImageRequest& WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT&& value) {
237 SetAdditionalOsCapabilities(std::forward<AdditionalOsCapabilitiesT>(value));
238 return *this;
239 }
241 m_additionalOsCapabilitiesHasBeenSet = true;
242 m_additionalOsCapabilities.push_back(value);
243 return *this;
244 }
246
248
249 inline const Hooks& GetHooks() const { return m_hooks; }
250 inline bool HooksHasBeenSet() const { return m_hooksHasBeenSet; }
251 template <typename HooksT = Hooks>
252 void SetHooks(HooksT&& value) {
253 m_hooksHasBeenSet = true;
254 m_hooks = std::forward<HooksT>(value);
255 }
256 template <typename HooksT = Hooks>
258 SetHooks(std::forward<HooksT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
268 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
269 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
270 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
271 m_environmentVariablesHasBeenSet = true;
272 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
273 }
274 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
275 UpdateMicrovmImageRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
276 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
277 return *this;
278 }
279 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
280 UpdateMicrovmImageRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
281 m_environmentVariablesHasBeenSet = true;
282 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
283 return *this;
284 }
286
288
296 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
297 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
298 template <typename KmsKeyIdentifierT = Aws::String>
299 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
300 m_kmsKeyIdentifierHasBeenSet = true;
301 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
302 }
303 template <typename KmsKeyIdentifierT = Aws::String>
305 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::String& GetImageIdentifier() const { return m_imageIdentifier; }
315 inline bool ImageIdentifierHasBeenSet() const { return m_imageIdentifierHasBeenSet; }
316 template <typename ImageIdentifierT = Aws::String>
317 void SetImageIdentifier(ImageIdentifierT&& value) {
318 m_imageIdentifierHasBeenSet = true;
319 m_imageIdentifier = std::forward<ImageIdentifierT>(value);
320 }
321 template <typename ImageIdentifierT = Aws::String>
323 SetImageIdentifier(std::forward<ImageIdentifierT>(value));
324 return *this;
325 }
327
329
333 inline const Aws::String& GetClientToken() const { return m_clientToken; }
334 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
335 template <typename ClientTokenT = Aws::String>
336 void SetClientToken(ClientTokenT&& value) {
337 m_clientTokenHasBeenSet = true;
338 m_clientToken = std::forward<ClientTokenT>(value);
339 }
340 template <typename ClientTokenT = Aws::String>
342 SetClientToken(std::forward<ClientTokenT>(value));
343 return *this;
344 }
346 private:
347 Aws::String m_baseImageArn;
348
349 Aws::String m_baseImageVersion;
350
351 Aws::String m_buildRoleArn;
352
353 Aws::String m_description;
354
355 CodeArtifact m_codeArtifact;
356
357 Logging m_logging;
358
359 Aws::Vector<Aws::String> m_egressNetworkConnectors;
360
361 Aws::Vector<CpuConfiguration> m_cpuConfigurations;
362
363 Aws::Vector<Resources> m_resources;
364
365 Aws::Vector<Capability> m_additionalOsCapabilities;
366
367 Hooks m_hooks;
368
369 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
370
371 Aws::String m_kmsKeyIdentifier;
372
373 Aws::String m_imageIdentifier;
374
376 bool m_baseImageArnHasBeenSet = false;
377 bool m_baseImageVersionHasBeenSet = false;
378 bool m_buildRoleArnHasBeenSet = false;
379 bool m_descriptionHasBeenSet = false;
380 bool m_codeArtifactHasBeenSet = false;
381 bool m_loggingHasBeenSet = false;
382 bool m_egressNetworkConnectorsHasBeenSet = false;
383 bool m_cpuConfigurationsHasBeenSet = false;
384 bool m_resourcesHasBeenSet = false;
385 bool m_additionalOsCapabilitiesHasBeenSet = false;
386 bool m_hooksHasBeenSet = false;
387 bool m_environmentVariablesHasBeenSet = false;
388 bool m_kmsKeyIdentifierHasBeenSet = false;
389 bool m_imageIdentifierHasBeenSet = false;
390 bool m_clientTokenHasBeenSet = true;
391};
392
393} // namespace Model
394} // namespace LambdaMicrovms
395} // namespace Aws
AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override
UpdateMicrovmImageRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
const Aws::Vector< Aws::String > & GetEgressNetworkConnectors() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
UpdateMicrovmImageRequest & WithImageIdentifier(ImageIdentifierT &&value)
UpdateMicrovmImageRequest & WithAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
UpdateMicrovmImageRequest & WithBuildRoleArn(BuildRoleArnT &&value)
UpdateMicrovmImageRequest & AddEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
AWS_LAMBDAMICROVMS_API UpdateMicrovmImageRequest()=default
UpdateMicrovmImageRequest & AddAdditionalOsCapabilities(Capability value)
UpdateMicrovmImageRequest & AddCpuConfigurations(CpuConfigurationsT &&value)
UpdateMicrovmImageRequest & AddResources(ResourcesT &&value)
UpdateMicrovmImageRequest & WithEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
UpdateMicrovmImageRequest & WithLogging(LoggingT &&value)
UpdateMicrovmImageRequest & WithCpuConfigurations(CpuConfigurationsT &&value)
UpdateMicrovmImageRequest & WithHooks(HooksT &&value)
UpdateMicrovmImageRequest & WithBaseImageArn(BaseImageArnT &&value)
UpdateMicrovmImageRequest & WithBaseImageVersion(BaseImageVersionT &&value)
UpdateMicrovmImageRequest & WithResources(ResourcesT &&value)
UpdateMicrovmImageRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
UpdateMicrovmImageRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< CpuConfiguration > & GetCpuConfigurations() const
UpdateMicrovmImageRequest & WithClientToken(ClientTokenT &&value)
UpdateMicrovmImageRequest & WithCodeArtifact(CodeArtifactT &&value)
void SetEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
void SetAdditionalOsCapabilities(AdditionalOsCapabilitiesT &&value)
UpdateMicrovmImageRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
const Aws::Vector< Capability > & GetAdditionalOsCapabilities() const
static Aws::Utils::UUID PseudoRandomUUID()
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