AWS SDK for C++

AWS SDK for C++ Version 1.11.836

Loading...
Searching...
No Matches
CreateImportedImageRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AgentSoftwareVersion.h>
10#include <aws/appstream/model/ApplicationConfig.h>
11#include <aws/appstream/model/RuntimeValidationConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AppStream {
20namespace Model {
21
25 public:
26 AWS_APPSTREAM_API CreateImportedImageRequest() = 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 "CreateImportedImage"; }
33
34 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
35
37
39
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
62 inline const Aws::String& GetSourceAmiId() const { return m_sourceAmiId; }
63 inline bool SourceAmiIdHasBeenSet() const { return m_sourceAmiIdHasBeenSet; }
64 template <typename SourceAmiIdT = Aws::String>
65 void SetSourceAmiId(SourceAmiIdT&& value) {
66 m_sourceAmiIdHasBeenSet = true;
67 m_sourceAmiId = std::forward<SourceAmiIdT>(value);
68 }
69 template <typename SourceAmiIdT = Aws::String>
71 SetSourceAmiId(std::forward<SourceAmiIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetWorkspaceImageId() const { return m_workspaceImageId; }
81 inline bool WorkspaceImageIdHasBeenSet() const { return m_workspaceImageIdHasBeenSet; }
82 template <typename WorkspaceImageIdT = Aws::String>
83 void SetWorkspaceImageId(WorkspaceImageIdT&& value) {
84 m_workspaceImageIdHasBeenSet = true;
85 m_workspaceImageId = std::forward<WorkspaceImageIdT>(value);
86 }
87 template <typename WorkspaceImageIdT = Aws::String>
89 SetWorkspaceImageId(std::forward<WorkspaceImageIdT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
102 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
103 template <typename IamRoleArnT = Aws::String>
104 void SetIamRoleArn(IamRoleArnT&& value) {
105 m_iamRoleArnHasBeenSet = true;
106 m_iamRoleArn = std::forward<IamRoleArnT>(value);
107 }
108 template <typename IamRoleArnT = Aws::String>
110 SetIamRoleArn(std::forward<IamRoleArnT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetDisplayName() const { return m_displayName; }
140 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
141 template <typename DisplayNameT = Aws::String>
142 void SetDisplayName(DisplayNameT&& value) {
143 m_displayNameHasBeenSet = true;
144 m_displayName = std::forward<DisplayNameT>(value);
145 }
146 template <typename DisplayNameT = Aws::String>
148 SetDisplayName(std::forward<DisplayNameT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 void SetTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags = std::forward<TagsT>(value);
164 }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 SetTags(std::forward<TagsT>(value));
168 return *this;
169 }
170 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
171 CreateImportedImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
174 return *this;
175 }
177
179
184 inline const RuntimeValidationConfig& GetRuntimeValidationConfig() const { return m_runtimeValidationConfig; }
185 inline bool RuntimeValidationConfigHasBeenSet() const { return m_runtimeValidationConfigHasBeenSet; }
186 template <typename RuntimeValidationConfigT = RuntimeValidationConfig>
187 void SetRuntimeValidationConfig(RuntimeValidationConfigT&& value) {
188 m_runtimeValidationConfigHasBeenSet = true;
189 m_runtimeValidationConfig = std::forward<RuntimeValidationConfigT>(value);
190 }
191 template <typename RuntimeValidationConfigT = RuntimeValidationConfig>
192 CreateImportedImageRequest& WithRuntimeValidationConfig(RuntimeValidationConfigT&& value) {
193 SetRuntimeValidationConfig(std::forward<RuntimeValidationConfigT>(value));
194 return *this;
195 }
197
199
205 inline AgentSoftwareVersion GetAgentSoftwareVersion() const { return m_agentSoftwareVersion; }
206 inline bool AgentSoftwareVersionHasBeenSet() const { return m_agentSoftwareVersionHasBeenSet; }
208 m_agentSoftwareVersionHasBeenSet = true;
209 m_agentSoftwareVersion = value;
210 }
213 return *this;
214 }
216
218
223 inline const Aws::Vector<ApplicationConfig>& GetAppCatalogConfig() const { return m_appCatalogConfig; }
224 inline bool AppCatalogConfigHasBeenSet() const { return m_appCatalogConfigHasBeenSet; }
225 template <typename AppCatalogConfigT = Aws::Vector<ApplicationConfig>>
226 void SetAppCatalogConfig(AppCatalogConfigT&& value) {
227 m_appCatalogConfigHasBeenSet = true;
228 m_appCatalogConfig = std::forward<AppCatalogConfigT>(value);
229 }
230 template <typename AppCatalogConfigT = Aws::Vector<ApplicationConfig>>
232 SetAppCatalogConfig(std::forward<AppCatalogConfigT>(value));
233 return *this;
234 }
235 template <typename AppCatalogConfigT = ApplicationConfig>
237 m_appCatalogConfigHasBeenSet = true;
238 m_appCatalogConfig.emplace_back(std::forward<AppCatalogConfigT>(value));
239 return *this;
240 }
242
244
249 inline bool GetDryRun() const { return m_dryRun; }
250 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
251 inline void SetDryRun(bool value) {
252 m_dryRunHasBeenSet = true;
253 m_dryRun = value;
254 }
256 SetDryRun(value);
257 return *this;
258 }
260 private:
261 Aws::String m_name;
262
263 Aws::String m_sourceAmiId;
264
265 Aws::String m_workspaceImageId;
266
267 Aws::String m_iamRoleArn;
268
269 Aws::String m_description;
270
271 Aws::String m_displayName;
272
274
275 RuntimeValidationConfig m_runtimeValidationConfig;
276
278
279 Aws::Vector<ApplicationConfig> m_appCatalogConfig;
280
281 bool m_dryRun{false};
282 bool m_nameHasBeenSet = false;
283 bool m_sourceAmiIdHasBeenSet = false;
284 bool m_workspaceImageIdHasBeenSet = false;
285 bool m_iamRoleArnHasBeenSet = false;
286 bool m_descriptionHasBeenSet = false;
287 bool m_displayNameHasBeenSet = false;
288 bool m_tagsHasBeenSet = false;
289 bool m_runtimeValidationConfigHasBeenSet = false;
290 bool m_agentSoftwareVersionHasBeenSet = false;
291 bool m_appCatalogConfigHasBeenSet = false;
292 bool m_dryRunHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace AppStream
297} // namespace Aws
const RuntimeValidationConfig & GetRuntimeValidationConfig() const
CreateImportedImageRequest & WithDisplayName(DisplayNameT &&value)
CreateImportedImageRequest & WithWorkspaceImageId(WorkspaceImageIdT &&value)
CreateImportedImageRequest & WithTags(TagsT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
AWS_APPSTREAM_API CreateImportedImageRequest()=default
CreateImportedImageRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateImportedImageRequest & WithDescription(DescriptionT &&value)
CreateImportedImageRequest & WithAgentSoftwareVersion(AgentSoftwareVersion value)
virtual const char * GetServiceRequestName() const override
CreateImportedImageRequest & WithRuntimeValidationConfig(RuntimeValidationConfigT &&value)
CreateImportedImageRequest & WithName(NameT &&value)
CreateImportedImageRequest & WithDryRun(bool value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRuntimeValidationConfig(RuntimeValidationConfigT &&value)
CreateImportedImageRequest & WithSourceAmiId(SourceAmiIdT &&value)
const Aws::Vector< ApplicationConfig > & GetAppCatalogConfig() const
CreateImportedImageRequest & WithIamRoleArn(IamRoleArnT &&value)
CreateImportedImageRequest & WithAppCatalogConfig(AppCatalogConfigT &&value)
CreateImportedImageRequest & AddAppCatalogConfig(AppCatalogConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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
std::vector< T, Aws::Allocator< T > > Vector