AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
14#include <utility>
15
16namespace Aws {
17namespace imagebuilder {
18namespace Model {
19
23 public:
24 AWS_IMAGEBUILDER_API ImportDiskImageRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ImportDiskImage"; }
31
32 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
58 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
59 template <typename SemanticVersionT = Aws::String>
60 void SetSemanticVersion(SemanticVersionT&& value) {
61 m_semanticVersionHasBeenSet = true;
62 m_semanticVersion = std::forward<SemanticVersionT>(value);
63 }
64 template <typename SemanticVersionT = Aws::String>
65 ImportDiskImageRequest& WithSemanticVersion(SemanticVersionT&& value) {
66 SetSemanticVersion(std::forward<SemanticVersionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 ImportDiskImageRequest& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetPlatform() const { return m_platform; }
95 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
96 template <typename PlatformT = Aws::String>
97 void SetPlatform(PlatformT&& value) {
98 m_platformHasBeenSet = true;
99 m_platform = std::forward<PlatformT>(value);
100 }
101 template <typename PlatformT = Aws::String>
103 SetPlatform(std::forward<PlatformT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
114 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
115 template <typename OsVersionT = Aws::String>
116 void SetOsVersion(OsVersionT&& value) {
117 m_osVersionHasBeenSet = true;
118 m_osVersion = std::forward<OsVersionT>(value);
119 }
120 template <typename OsVersionT = Aws::String>
122 SetOsVersion(std::forward<OsVersionT>(value));
123 return *this;
124 }
126
128
133 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
134 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
135 template <typename ExecutionRoleT = Aws::String>
136 void SetExecutionRole(ExecutionRoleT&& value) {
137 m_executionRoleHasBeenSet = true;
138 m_executionRole = std::forward<ExecutionRoleT>(value);
139 }
140 template <typename ExecutionRoleT = Aws::String>
141 ImportDiskImageRequest& WithExecutionRole(ExecutionRoleT&& value) {
142 SetExecutionRole(std::forward<ExecutionRoleT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
153 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
154 template <typename InfrastructureConfigurationArnT = Aws::String>
155 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
156 m_infrastructureConfigurationArnHasBeenSet = true;
157 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
158 }
159 template <typename InfrastructureConfigurationArnT = Aws::String>
160 ImportDiskImageRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
161 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetUri() const { return m_uri; }
171 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
172 template <typename UriT = Aws::String>
173 void SetUri(UriT&& value) {
174 m_uriHasBeenSet = true;
175 m_uri = std::forward<UriT>(value);
176 }
177 template <typename UriT = Aws::String>
179 SetUri(std::forward<UriT>(value));
180 return *this;
181 }
183
185
188 inline const ImageLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
189 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
190 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
191 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
192 m_loggingConfigurationHasBeenSet = true;
193 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
194 }
195 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
196 ImportDiskImageRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
197 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 void SetTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags = std::forward<TagsT>(value);
212 }
213 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 SetTags(std::forward<TagsT>(value));
216 return *this;
217 }
218 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
219 ImportDiskImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
222 return *this;
223 }
225
227
233 inline const Aws::String& GetClientToken() const { return m_clientToken; }
234 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
235 template <typename ClientTokenT = Aws::String>
236 void SetClientToken(ClientTokenT&& value) {
237 m_clientTokenHasBeenSet = true;
238 m_clientToken = std::forward<ClientTokenT>(value);
239 }
240 template <typename ClientTokenT = Aws::String>
242 SetClientToken(std::forward<ClientTokenT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_name;
248
249 Aws::String m_semanticVersion;
250
251 Aws::String m_description;
252
253 Aws::String m_platform;
254
255 Aws::String m_osVersion;
256
257 Aws::String m_executionRole;
258
259 Aws::String m_infrastructureConfigurationArn;
260
261 Aws::String m_uri;
262
263 ImageLoggingConfiguration m_loggingConfiguration;
264
266
268 bool m_nameHasBeenSet = false;
269 bool m_semanticVersionHasBeenSet = false;
270 bool m_descriptionHasBeenSet = false;
271 bool m_platformHasBeenSet = false;
272 bool m_osVersionHasBeenSet = false;
273 bool m_executionRoleHasBeenSet = false;
274 bool m_infrastructureConfigurationArnHasBeenSet = false;
275 bool m_uriHasBeenSet = false;
276 bool m_loggingConfigurationHasBeenSet = false;
277 bool m_tagsHasBeenSet = false;
278 bool m_clientTokenHasBeenSet = true;
279};
280
281} // namespace Model
282} // namespace imagebuilder
283} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
ImportDiskImageRequest & WithLoggingConfiguration(LoggingConfigurationT &&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 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)
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