AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportVmImageRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/model/Platform.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace imagebuilder
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IMAGEBUILDER_API ImportVmImageRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ImportVmImage"; }
34
35 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline ImportVmImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline ImportVmImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline ImportVmImageRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
67 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
68 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
69 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
70 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
71 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
72 inline ImportVmImageRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
73 inline ImportVmImageRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
74 inline ImportVmImageRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const{ return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
84 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
85 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
86 inline ImportVmImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline ImportVmImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline ImportVmImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
90
92
95 inline const Platform& GetPlatform() const{ return m_platform; }
96 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
97 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
98 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
99 inline ImportVmImageRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
100 inline ImportVmImageRequest& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetOsVersion() const{ return m_osVersion; }
108 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
109 inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; }
110 inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); }
111 inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); }
112 inline ImportVmImageRequest& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;}
113 inline ImportVmImageRequest& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;}
114 inline ImportVmImageRequest& WithOsVersion(const char* value) { SetOsVersion(value); return *this;}
116
118
124 inline const Aws::String& GetVmImportTaskId() const{ return m_vmImportTaskId; }
125 inline bool VmImportTaskIdHasBeenSet() const { return m_vmImportTaskIdHasBeenSet; }
126 inline void SetVmImportTaskId(const Aws::String& value) { m_vmImportTaskIdHasBeenSet = true; m_vmImportTaskId = value; }
127 inline void SetVmImportTaskId(Aws::String&& value) { m_vmImportTaskIdHasBeenSet = true; m_vmImportTaskId = std::move(value); }
128 inline void SetVmImportTaskId(const char* value) { m_vmImportTaskIdHasBeenSet = true; m_vmImportTaskId.assign(value); }
129 inline ImportVmImageRequest& WithVmImportTaskId(const Aws::String& value) { SetVmImportTaskId(value); return *this;}
130 inline ImportVmImageRequest& WithVmImportTaskId(Aws::String&& value) { SetVmImportTaskId(std::move(value)); return *this;}
131 inline ImportVmImageRequest& WithVmImportTaskId(const char* value) { SetVmImportTaskId(value); return *this;}
133
135
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
142 inline ImportVmImageRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
143 inline ImportVmImageRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
144 inline ImportVmImageRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
145 inline ImportVmImageRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
146 inline ImportVmImageRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
147 inline ImportVmImageRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
148 inline ImportVmImageRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline ImportVmImageRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
150 inline ImportVmImageRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
152
154
160 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
161 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
162 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
163 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
164 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
165 inline ImportVmImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
166 inline ImportVmImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
167 inline ImportVmImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
169 private:
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
174 Aws::String m_semanticVersion;
175 bool m_semanticVersionHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Platform m_platform;
181 bool m_platformHasBeenSet = false;
182
183 Aws::String m_osVersion;
184 bool m_osVersionHasBeenSet = false;
185
186 Aws::String m_vmImportTaskId;
187 bool m_vmImportTaskIdHasBeenSet = false;
188
190 bool m_tagsHasBeenSet = false;
191
192 Aws::String m_clientToken;
193 bool m_clientTokenHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace imagebuilder
198} // namespace Aws
ImportVmImageRequest & AddTags(const char *key, Aws::String &&value)
ImportVmImageRequest & WithName(const char *value)
ImportVmImageRequest & WithVmImportTaskId(const Aws::String &value)
ImportVmImageRequest & WithClientToken(const char *value)
ImportVmImageRequest & AddTags(Aws::String &&key, const Aws::String &value)
ImportVmImageRequest & WithVmImportTaskId(const char *value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ImportVmImageRequest & WithClientToken(Aws::String &&value)
ImportVmImageRequest & WithPlatform(const Platform &value)
ImportVmImageRequest & WithSemanticVersion(Aws::String &&value)
ImportVmImageRequest & AddTags(const Aws::String &key, Aws::String &&value)
ImportVmImageRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ImportVmImageRequest & WithName(Aws::String &&value)
ImportVmImageRequest & AddTags(Aws::String &&key, Aws::String &&value)
ImportVmImageRequest & WithSemanticVersion(const char *value)
ImportVmImageRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ImportVmImageRequest & WithClientToken(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ImportVmImageRequest & WithName(const Aws::String &value)
ImportVmImageRequest & WithDescription(const char *value)
ImportVmImageRequest & WithDescription(Aws::String &&value)
ImportVmImageRequest & WithVmImportTaskId(Aws::String &&value)
ImportVmImageRequest & WithOsVersion(Aws::String &&value)
ImportVmImageRequest & WithSemanticVersion(const Aws::String &value)
ImportVmImageRequest & AddTags(Aws::String &&key, const char *value)
ImportVmImageRequest & WithPlatform(Platform &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportVmImageRequest & WithOsVersion(const char *value)
ImportVmImageRequest & WithDescription(const Aws::String &value)
ImportVmImageRequest & WithOsVersion(const Aws::String &value)
ImportVmImageRequest & AddTags(const char *key, const char *value)
ImportVmImageRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &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