AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
68 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
69 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
70 template <typename SemanticVersionT = Aws::String>
71 void SetSemanticVersion(SemanticVersionT&& value) {
72 m_semanticVersionHasBeenSet = true;
73 m_semanticVersion = std::forward<SemanticVersionT>(value);
74 }
75 template <typename SemanticVersionT = Aws::String>
76 ImportVmImageRequest& WithSemanticVersion(SemanticVersionT&& value) {
77 SetSemanticVersion(std::forward<SemanticVersionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
94 ImportVmImageRequest& WithDescription(DescriptionT&& value) {
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
104 inline Platform GetPlatform() const { return m_platform; }
105 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
106 inline void SetPlatform(Platform value) {
107 m_platformHasBeenSet = true;
108 m_platform = value;
109 }
111 SetPlatform(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
121 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
122 template <typename OsVersionT = Aws::String>
123 void SetOsVersion(OsVersionT&& value) {
124 m_osVersionHasBeenSet = true;
125 m_osVersion = std::forward<OsVersionT>(value);
126 }
127 template <typename OsVersionT = Aws::String>
128 ImportVmImageRequest& WithOsVersion(OsVersionT&& value) {
129 SetOsVersion(std::forward<OsVersionT>(value));
130 return *this;
131 }
133
135
141 inline const Aws::String& GetVmImportTaskId() const { return m_vmImportTaskId; }
142 inline bool VmImportTaskIdHasBeenSet() const { return m_vmImportTaskIdHasBeenSet; }
143 template <typename VmImportTaskIdT = Aws::String>
144 void SetVmImportTaskId(VmImportTaskIdT&& value) {
145 m_vmImportTaskIdHasBeenSet = true;
146 m_vmImportTaskId = std::forward<VmImportTaskIdT>(value);
147 }
148 template <typename VmImportTaskIdT = Aws::String>
149 ImportVmImageRequest& WithVmImportTaskId(VmImportTaskIdT&& value) {
150 SetVmImportTaskId(std::forward<VmImportTaskIdT>(value));
151 return *this;
152 }
154
156
159 inline const ImageLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
160 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
161 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
162 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
163 m_loggingConfigurationHasBeenSet = true;
164 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
165 }
166 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
167 ImportVmImageRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
168 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
180 void SetTags(TagsT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags = std::forward<TagsT>(value);
183 }
184 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
186 SetTags(std::forward<TagsT>(value));
187 return *this;
188 }
189 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
190 ImportVmImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
191 m_tagsHasBeenSet = true;
192 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
193 return *this;
194 }
196
198
204 inline const Aws::String& GetClientToken() const { return m_clientToken; }
205 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
206 template <typename ClientTokenT = Aws::String>
207 void SetClientToken(ClientTokenT&& value) {
208 m_clientTokenHasBeenSet = true;
209 m_clientToken = std::forward<ClientTokenT>(value);
210 }
211 template <typename ClientTokenT = Aws::String>
212 ImportVmImageRequest& WithClientToken(ClientTokenT&& value) {
213 SetClientToken(std::forward<ClientTokenT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_name;
219
220 Aws::String m_semanticVersion;
221
222 Aws::String m_description;
223
224 Platform m_platform{Platform::NOT_SET};
225
226 Aws::String m_osVersion;
227
228 Aws::String m_vmImportTaskId;
229
230 ImageLoggingConfiguration m_loggingConfiguration;
231
233
235 bool m_nameHasBeenSet = false;
236 bool m_semanticVersionHasBeenSet = false;
237 bool m_descriptionHasBeenSet = false;
238 bool m_platformHasBeenSet = false;
239 bool m_osVersionHasBeenSet = false;
240 bool m_vmImportTaskIdHasBeenSet = false;
241 bool m_loggingConfigurationHasBeenSet = false;
242 bool m_tagsHasBeenSet = false;
243 bool m_clientTokenHasBeenSet = true;
244};
245
246} // namespace Model
247} // namespace imagebuilder
248} // 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