AWS SDK for C++

AWS SDK for C++ Version 1.11.800

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
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
60 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
61 template <typename SemanticVersionT = Aws::String>
62 void SetSemanticVersion(SemanticVersionT&& value) {
63 m_semanticVersionHasBeenSet = true;
64 m_semanticVersion = std::forward<SemanticVersionT>(value);
65 }
66 template <typename SemanticVersionT = Aws::String>
67 ImportDiskImageRequest& WithSemanticVersion(SemanticVersionT&& value) {
68 SetSemanticVersion(std::forward<SemanticVersionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 ImportDiskImageRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetPlatform() const { return m_platform; }
97 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
98 template <typename PlatformT = Aws::String>
99 void SetPlatform(PlatformT&& value) {
100 m_platformHasBeenSet = true;
101 m_platform = std::forward<PlatformT>(value);
102 }
103 template <typename PlatformT = Aws::String>
105 SetPlatform(std::forward<PlatformT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
116 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
117 template <typename OsVersionT = Aws::String>
118 void SetOsVersion(OsVersionT&& value) {
119 m_osVersionHasBeenSet = true;
120 m_osVersion = std::forward<OsVersionT>(value);
121 }
122 template <typename OsVersionT = Aws::String>
124 SetOsVersion(std::forward<OsVersionT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
136 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
137 template <typename ExecutionRoleT = Aws::String>
138 void SetExecutionRole(ExecutionRoleT&& value) {
139 m_executionRoleHasBeenSet = true;
140 m_executionRole = std::forward<ExecutionRoleT>(value);
141 }
142 template <typename ExecutionRoleT = Aws::String>
143 ImportDiskImageRequest& WithExecutionRole(ExecutionRoleT&& value) {
144 SetExecutionRole(std::forward<ExecutionRoleT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
155 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
156 template <typename InfrastructureConfigurationArnT = Aws::String>
157 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
158 m_infrastructureConfigurationArnHasBeenSet = true;
159 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
160 }
161 template <typename InfrastructureConfigurationArnT = Aws::String>
162 ImportDiskImageRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
163 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetUri() const { return m_uri; }
173 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
174 template <typename UriT = Aws::String>
175 void SetUri(UriT&& value) {
176 m_uriHasBeenSet = true;
177 m_uri = std::forward<UriT>(value);
178 }
179 template <typename UriT = Aws::String>
181 SetUri(std::forward<UriT>(value));
182 return *this;
183 }
185
187
190 inline const ImageLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
191 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
192 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
193 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
194 m_loggingConfigurationHasBeenSet = true;
195 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
196 }
197 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
198 ImportDiskImageRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
199 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 void SetTags(TagsT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags = std::forward<TagsT>(value);
214 }
215 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
217 SetTags(std::forward<TagsT>(value));
218 return *this;
219 }
220 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
221 ImportDiskImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
224 return *this;
225 }
227
229
232 inline const RegisterImageOptions& GetRegisterImageOptions() const { return m_registerImageOptions; }
233 inline bool RegisterImageOptionsHasBeenSet() const { return m_registerImageOptionsHasBeenSet; }
234 template <typename RegisterImageOptionsT = RegisterImageOptions>
235 void SetRegisterImageOptions(RegisterImageOptionsT&& value) {
236 m_registerImageOptionsHasBeenSet = true;
237 m_registerImageOptions = std::forward<RegisterImageOptionsT>(value);
238 }
239 template <typename RegisterImageOptionsT = RegisterImageOptions>
240 ImportDiskImageRequest& WithRegisterImageOptions(RegisterImageOptionsT&& value) {
241 SetRegisterImageOptions(std::forward<RegisterImageOptionsT>(value));
242 return *this;
243 }
245
247
250 inline const WindowsConfiguration& GetWindowsConfiguration() const { return m_windowsConfiguration; }
251 inline bool WindowsConfigurationHasBeenSet() const { return m_windowsConfigurationHasBeenSet; }
252 template <typename WindowsConfigurationT = WindowsConfiguration>
253 void SetWindowsConfiguration(WindowsConfigurationT&& value) {
254 m_windowsConfigurationHasBeenSet = true;
255 m_windowsConfiguration = std::forward<WindowsConfigurationT>(value);
256 }
257 template <typename WindowsConfigurationT = WindowsConfiguration>
258 ImportDiskImageRequest& WithWindowsConfiguration(WindowsConfigurationT&& value) {
259 SetWindowsConfiguration(std::forward<WindowsConfigurationT>(value));
260 return *this;
261 }
263
265
271 inline const Aws::String& GetClientToken() const { return m_clientToken; }
272 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
273 template <typename ClientTokenT = Aws::String>
274 void SetClientToken(ClientTokenT&& value) {
275 m_clientTokenHasBeenSet = true;
276 m_clientToken = std::forward<ClientTokenT>(value);
277 }
278 template <typename ClientTokenT = Aws::String>
280 SetClientToken(std::forward<ClientTokenT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_name;
286
287 Aws::String m_semanticVersion;
288
289 Aws::String m_description;
290
291 Aws::String m_platform;
292
293 Aws::String m_osVersion;
294
295 Aws::String m_executionRole;
296
297 Aws::String m_infrastructureConfigurationArn;
298
299 Aws::String m_uri;
300
301 ImageLoggingConfiguration m_loggingConfiguration;
302
304
305 RegisterImageOptions m_registerImageOptions;
306
307 WindowsConfiguration m_windowsConfiguration;
308
310 bool m_nameHasBeenSet = false;
311 bool m_semanticVersionHasBeenSet = false;
312 bool m_descriptionHasBeenSet = false;
313 bool m_platformHasBeenSet = false;
314 bool m_osVersionHasBeenSet = false;
315 bool m_executionRoleHasBeenSet = false;
316 bool m_infrastructureConfigurationArnHasBeenSet = false;
317 bool m_uriHasBeenSet = false;
318 bool m_loggingConfigurationHasBeenSet = false;
319 bool m_tagsHasBeenSet = false;
320 bool m_registerImageOptionsHasBeenSet = false;
321 bool m_windowsConfigurationHasBeenSet = false;
322 bool m_clientTokenHasBeenSet = true;
323};
324
325} // namespace Model
326} // namespace imagebuilder
327} // 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