AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
ImportDiskImageRequest.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/imagebuilder/ImagebuilderRequest.h>
11#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
12#include <aws/imagebuilder/model/ImageLoggingConfiguration.h>
13#include <aws/imagebuilder/model/RegisterImageOptions.h>
14#include <aws/imagebuilder/model/WindowsConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace imagebuilder {
20namespace Model {
21
25 public:
26 AWS_IMAGEBUILDER_API ImportDiskImageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportDiskImage"; }
33
34 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
35
37
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
64 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
65 template <typename SemanticVersionT = Aws::String>
66 void SetSemanticVersion(SemanticVersionT&& value) {
67 m_semanticVersionHasBeenSet = true;
68 m_semanticVersion = std::forward<SemanticVersionT>(value);
69 }
70 template <typename SemanticVersionT = Aws::String>
71 ImportDiskImageRequest& WithSemanticVersion(SemanticVersionT&& value) {
72 SetSemanticVersion(std::forward<SemanticVersionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 ImportDiskImageRequest& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetPlatform() const { return m_platform; }
101 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
102 template <typename PlatformT = Aws::String>
103 void SetPlatform(PlatformT&& value) {
104 m_platformHasBeenSet = true;
105 m_platform = std::forward<PlatformT>(value);
106 }
107 template <typename PlatformT = Aws::String>
109 SetPlatform(std::forward<PlatformT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
120 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
121 template <typename OsVersionT = Aws::String>
122 void SetOsVersion(OsVersionT&& value) {
123 m_osVersionHasBeenSet = true;
124 m_osVersion = std::forward<OsVersionT>(value);
125 }
126 template <typename OsVersionT = Aws::String>
128 SetOsVersion(std::forward<OsVersionT>(value));
129 return *this;
130 }
132
134
141 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
142 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
143 template <typename ExecutionRoleT = Aws::String>
144 void SetExecutionRole(ExecutionRoleT&& value) {
145 m_executionRoleHasBeenSet = true;
146 m_executionRole = std::forward<ExecutionRoleT>(value);
147 }
148 template <typename ExecutionRoleT = Aws::String>
149 ImportDiskImageRequest& WithExecutionRole(ExecutionRoleT&& value) {
150 SetExecutionRole(std::forward<ExecutionRoleT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
161 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
162 template <typename InfrastructureConfigurationArnT = Aws::String>
163 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
164 m_infrastructureConfigurationArnHasBeenSet = true;
165 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
166 }
167 template <typename InfrastructureConfigurationArnT = Aws::String>
168 ImportDiskImageRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
169 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
170 return *this;
171 }
173
175
181 inline const Aws::String& GetUri() const { return m_uri; }
182 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
183 template <typename UriT = Aws::String>
184 void SetUri(UriT&& value) {
185 m_uriHasBeenSet = true;
186 m_uri = std::forward<UriT>(value);
187 }
188 template <typename UriT = Aws::String>
190 SetUri(std::forward<UriT>(value));
191 return *this;
192 }
194
196
202 inline const ImageLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
203 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
204 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
205 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
206 m_loggingConfigurationHasBeenSet = true;
207 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
208 }
209 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
210 ImportDiskImageRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
211 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 void SetTags(TagsT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags = std::forward<TagsT>(value);
226 }
227 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
229 SetTags(std::forward<TagsT>(value));
230 return *this;
231 }
232 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
233 ImportDiskImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
234 m_tagsHasBeenSet = true;
235 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
236 return *this;
237 }
239
241
244 inline const RegisterImageOptions& GetRegisterImageOptions() const { return m_registerImageOptions; }
245 inline bool RegisterImageOptionsHasBeenSet() const { return m_registerImageOptionsHasBeenSet; }
246 template <typename RegisterImageOptionsT = RegisterImageOptions>
247 void SetRegisterImageOptions(RegisterImageOptionsT&& value) {
248 m_registerImageOptionsHasBeenSet = true;
249 m_registerImageOptions = std::forward<RegisterImageOptionsT>(value);
250 }
251 template <typename RegisterImageOptionsT = RegisterImageOptions>
252 ImportDiskImageRequest& WithRegisterImageOptions(RegisterImageOptionsT&& value) {
253 SetRegisterImageOptions(std::forward<RegisterImageOptionsT>(value));
254 return *this;
255 }
257
259
262 inline const WindowsConfiguration& GetWindowsConfiguration() const { return m_windowsConfiguration; }
263 inline bool WindowsConfigurationHasBeenSet() const { return m_windowsConfigurationHasBeenSet; }
264 template <typename WindowsConfigurationT = WindowsConfiguration>
265 void SetWindowsConfiguration(WindowsConfigurationT&& value) {
266 m_windowsConfigurationHasBeenSet = true;
267 m_windowsConfiguration = std::forward<WindowsConfigurationT>(value);
268 }
269 template <typename WindowsConfigurationT = WindowsConfiguration>
270 ImportDiskImageRequest& WithWindowsConfiguration(WindowsConfigurationT&& value) {
271 SetWindowsConfiguration(std::forward<WindowsConfigurationT>(value));
272 return *this;
273 }
275
277
285 inline const Aws::String& GetClientToken() const { return m_clientToken; }
286 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
287 template <typename ClientTokenT = Aws::String>
288 void SetClientToken(ClientTokenT&& value) {
289 m_clientTokenHasBeenSet = true;
290 m_clientToken = std::forward<ClientTokenT>(value);
291 }
292 template <typename ClientTokenT = Aws::String>
294 SetClientToken(std::forward<ClientTokenT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_name;
300
301 Aws::String m_semanticVersion;
302
303 Aws::String m_description;
304
305 Aws::String m_platform;
306
307 Aws::String m_osVersion;
308
309 Aws::String m_executionRole;
310
311 Aws::String m_infrastructureConfigurationArn;
312
313 Aws::String m_uri;
314
315 ImageLoggingConfiguration m_loggingConfiguration;
316
318
319 RegisterImageOptions m_registerImageOptions;
320
321 WindowsConfiguration m_windowsConfiguration;
322
324 bool m_nameHasBeenSet = false;
325 bool m_semanticVersionHasBeenSet = false;
326 bool m_descriptionHasBeenSet = false;
327 bool m_platformHasBeenSet = false;
328 bool m_osVersionHasBeenSet = false;
329 bool m_executionRoleHasBeenSet = false;
330 bool m_infrastructureConfigurationArnHasBeenSet = false;
331 bool m_uriHasBeenSet = false;
332 bool m_loggingConfigurationHasBeenSet = false;
333 bool m_tagsHasBeenSet = false;
334 bool m_registerImageOptionsHasBeenSet = false;
335 bool m_windowsConfigurationHasBeenSet = false;
336 bool m_clientTokenHasBeenSet = true;
337};
338
339} // namespace Model
340} // namespace imagebuilder
341} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
ImportDiskImageRequest & WithWindowsConfiguration(WindowsConfigurationT &&value)
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
ImportDiskImageRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
ImportDiskImageRequest & WithRegisterImageOptions(RegisterImageOptionsT &&value)
ImportDiskImageRequest & WithOsVersion(OsVersionT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
ImportDiskImageRequest & WithPlatform(PlatformT &&value)
AWS_IMAGEBUILDER_API ImportDiskImageRequest()=default
ImportDiskImageRequest & WithSemanticVersion(SemanticVersionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportDiskImageRequest & WithName(NameT &&value)
const RegisterImageOptions & GetRegisterImageOptions() const
void SetRegisterImageOptions(RegisterImageOptionsT &&value)
void SetWindowsConfiguration(WindowsConfigurationT &&value)
const ImageLoggingConfiguration & GetLoggingConfiguration() const
ImportDiskImageRequest & WithExecutionRole(ExecutionRoleT &&value)
ImportDiskImageRequest & WithClientToken(ClientTokenT &&value)
ImportDiskImageRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
ImportDiskImageRequest & WithUri(UriT &&value)
ImportDiskImageRequest & WithTags(TagsT &&value)
ImportDiskImageRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
const WindowsConfiguration & GetWindowsConfiguration() const
void SetLoggingConfiguration(LoggingConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
ImportDiskImageRequest & WithDescription(DescriptionT &&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