AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
ImportVmImageRequest.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/Platform.h>
14
15#include <utility>
16
17namespace Aws {
18namespace imagebuilder {
19namespace Model {
20
24 public:
25 AWS_IMAGEBUILDER_API ImportVmImageRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportVmImage"; }
32
33 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
34
36
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
73 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
74 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
75 template <typename SemanticVersionT = Aws::String>
76 void SetSemanticVersion(SemanticVersionT&& value) {
77 m_semanticVersionHasBeenSet = true;
78 m_semanticVersion = std::forward<SemanticVersionT>(value);
79 }
80 template <typename SemanticVersionT = Aws::String>
81 ImportVmImageRequest& WithSemanticVersion(SemanticVersionT&& value) {
82 SetSemanticVersion(std::forward<SemanticVersionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
99 ImportVmImageRequest& WithDescription(DescriptionT&& value) {
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline Platform GetPlatform() const { return m_platform; }
110 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
111 inline void SetPlatform(Platform value) {
112 m_platformHasBeenSet = true;
113 m_platform = value;
114 }
116 SetPlatform(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
126 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
127 template <typename OsVersionT = Aws::String>
128 void SetOsVersion(OsVersionT&& value) {
129 m_osVersionHasBeenSet = true;
130 m_osVersion = std::forward<OsVersionT>(value);
131 }
132 template <typename OsVersionT = Aws::String>
133 ImportVmImageRequest& WithOsVersion(OsVersionT&& value) {
134 SetOsVersion(std::forward<OsVersionT>(value));
135 return *this;
136 }
138
140
146 inline const Aws::String& GetVmImportTaskId() const { return m_vmImportTaskId; }
147 inline bool VmImportTaskIdHasBeenSet() const { return m_vmImportTaskIdHasBeenSet; }
148 template <typename VmImportTaskIdT = Aws::String>
149 void SetVmImportTaskId(VmImportTaskIdT&& value) {
150 m_vmImportTaskIdHasBeenSet = true;
151 m_vmImportTaskId = std::forward<VmImportTaskIdT>(value);
152 }
153 template <typename VmImportTaskIdT = Aws::String>
154 ImportVmImageRequest& WithVmImportTaskId(VmImportTaskIdT&& value) {
155 SetVmImportTaskId(std::forward<VmImportTaskIdT>(value));
156 return *this;
157 }
159
161
166 inline const ImageLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
167 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
168 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
169 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
170 m_loggingConfigurationHasBeenSet = true;
171 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
172 }
173 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
174 ImportVmImageRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
175 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 void SetTags(TagsT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags = std::forward<TagsT>(value);
190 }
191 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
193 SetTags(std::forward<TagsT>(value));
194 return *this;
195 }
196 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
197 ImportVmImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
198 m_tagsHasBeenSet = true;
199 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
200 return *this;
201 }
203
205
213 inline const Aws::String& GetClientToken() const { return m_clientToken; }
214 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
215 template <typename ClientTokenT = Aws::String>
216 void SetClientToken(ClientTokenT&& value) {
217 m_clientTokenHasBeenSet = true;
218 m_clientToken = std::forward<ClientTokenT>(value);
219 }
220 template <typename ClientTokenT = Aws::String>
221 ImportVmImageRequest& WithClientToken(ClientTokenT&& value) {
222 SetClientToken(std::forward<ClientTokenT>(value));
223 return *this;
224 }
226 private:
227 Aws::String m_name;
228
229 Aws::String m_semanticVersion;
230
231 Aws::String m_description;
232
233 Platform m_platform{Platform::NOT_SET};
234
235 Aws::String m_osVersion;
236
237 Aws::String m_vmImportTaskId;
238
239 ImageLoggingConfiguration m_loggingConfiguration;
240
242
244 bool m_nameHasBeenSet = false;
245 bool m_semanticVersionHasBeenSet = false;
246 bool m_descriptionHasBeenSet = false;
247 bool m_platformHasBeenSet = false;
248 bool m_osVersionHasBeenSet = false;
249 bool m_vmImportTaskIdHasBeenSet = false;
250 bool m_loggingConfigurationHasBeenSet = false;
251 bool m_tagsHasBeenSet = false;
252 bool m_clientTokenHasBeenSet = true;
253};
254
255} // namespace Model
256} // namespace imagebuilder
257} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
ImportVmImageRequest & WithOsVersion(OsVersionT &&value)
ImportVmImageRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ImportVmImageRequest & WithName(NameT &&value)
ImportVmImageRequest & WithSemanticVersion(SemanticVersionT &&value)
AWS_IMAGEBUILDER_API ImportVmImageRequest()=default
ImportVmImageRequest & WithDescription(DescriptionT &&value)
ImportVmImageRequest & WithTags(TagsT &&value)
ImportVmImageRequest & WithPlatform(Platform value)
ImportVmImageRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetLoggingConfiguration(LoggingConfigurationT &&value)
const ImageLoggingConfiguration & GetLoggingConfiguration() const
ImportVmImageRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
ImportVmImageRequest & WithVmImportTaskId(VmImportTaskIdT &&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