AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
CreateImageBuilderRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AccessEndpoint.h>
10#include <aws/appstream/model/DomainJoinInfo.h>
11#include <aws/appstream/model/ImageBuilderAgentAccessConfig.h>
12#include <aws/appstream/model/VolumeConfig.h>
13#include <aws/appstream/model/VpcConfig.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace AppStream {
22namespace Model {
23
27 public:
28 AWS_APPSTREAM_API CreateImageBuilderRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateImageBuilder"; }
35
36 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
37
39
41
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& GetImageName() const { return m_imageName; }
63 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
64 template <typename ImageNameT = Aws::String>
65 void SetImageName(ImageNameT&& value) {
66 m_imageNameHasBeenSet = true;
67 m_imageName = std::forward<ImageNameT>(value);
68 }
69 template <typename ImageNameT = Aws::String>
71 SetImageName(std::forward<ImageNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetImageArn() const { return m_imageArn; }
81 inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; }
82 template <typename ImageArnT = Aws::String>
83 void SetImageArn(ImageArnT&& value) {
84 m_imageArnHasBeenSet = true;
85 m_imageArn = std::forward<ImageArnT>(value);
86 }
87 template <typename ImageArnT = Aws::String>
89 SetImageArn(std::forward<ImageArnT>(value));
90 return *this;
91 }
93
95
133 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
134 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
135 template <typename InstanceTypeT = Aws::String>
136 void SetInstanceType(InstanceTypeT&& value) {
137 m_instanceTypeHasBeenSet = true;
138 m_instanceType = std::forward<InstanceTypeT>(value);
139 }
140 template <typename InstanceTypeT = Aws::String>
142 SetInstanceType(std::forward<InstanceTypeT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDisplayName() const { return m_displayName; }
170 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
171 template <typename DisplayNameT = Aws::String>
172 void SetDisplayName(DisplayNameT&& value) {
173 m_displayNameHasBeenSet = true;
174 m_displayName = std::forward<DisplayNameT>(value);
175 }
176 template <typename DisplayNameT = Aws::String>
178 SetDisplayName(std::forward<DisplayNameT>(value));
179 return *this;
180 }
182
184
188 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
189 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
190 template <typename VpcConfigT = VpcConfig>
191 void SetVpcConfig(VpcConfigT&& value) {
192 m_vpcConfigHasBeenSet = true;
193 m_vpcConfig = std::forward<VpcConfigT>(value);
194 }
195 template <typename VpcConfigT = VpcConfig>
197 SetVpcConfig(std::forward<VpcConfigT>(value));
198 return *this;
199 }
201
203
216 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
217 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
218 template <typename IamRoleArnT = Aws::String>
219 void SetIamRoleArn(IamRoleArnT&& value) {
220 m_iamRoleArnHasBeenSet = true;
221 m_iamRoleArn = std::forward<IamRoleArnT>(value);
222 }
223 template <typename IamRoleArnT = Aws::String>
225 SetIamRoleArn(std::forward<IamRoleArnT>(value));
226 return *this;
227 }
229
231
234 inline bool GetEnableDefaultInternetAccess() const { return m_enableDefaultInternetAccess; }
235 inline bool EnableDefaultInternetAccessHasBeenSet() const { return m_enableDefaultInternetAccessHasBeenSet; }
236 inline void SetEnableDefaultInternetAccess(bool value) {
237 m_enableDefaultInternetAccessHasBeenSet = true;
238 m_enableDefaultInternetAccess = value;
239 }
242 return *this;
243 }
245
247
251 inline const DomainJoinInfo& GetDomainJoinInfo() const { return m_domainJoinInfo; }
252 inline bool DomainJoinInfoHasBeenSet() const { return m_domainJoinInfoHasBeenSet; }
253 template <typename DomainJoinInfoT = DomainJoinInfo>
254 void SetDomainJoinInfo(DomainJoinInfoT&& value) {
255 m_domainJoinInfoHasBeenSet = true;
256 m_domainJoinInfo = std::forward<DomainJoinInfoT>(value);
257 }
258 template <typename DomainJoinInfoT = DomainJoinInfo>
260 SetDomainJoinInfo(std::forward<DomainJoinInfoT>(value));
261 return *this;
262 }
264
266
271 inline const Aws::String& GetAppstreamAgentVersion() const { return m_appstreamAgentVersion; }
272 inline bool AppstreamAgentVersionHasBeenSet() const { return m_appstreamAgentVersionHasBeenSet; }
273 template <typename AppstreamAgentVersionT = Aws::String>
274 void SetAppstreamAgentVersion(AppstreamAgentVersionT&& value) {
275 m_appstreamAgentVersionHasBeenSet = true;
276 m_appstreamAgentVersion = std::forward<AppstreamAgentVersionT>(value);
277 }
278 template <typename AppstreamAgentVersionT = Aws::String>
279 CreateImageBuilderRequest& WithAppstreamAgentVersion(AppstreamAgentVersionT&& value) {
280 SetAppstreamAgentVersion(std::forward<AppstreamAgentVersionT>(value));
281 return *this;
282 }
284
286
297 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
298 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
299 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
300 void SetTags(TagsT&& value) {
301 m_tagsHasBeenSet = true;
302 m_tags = std::forward<TagsT>(value);
303 }
304 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
306 SetTags(std::forward<TagsT>(value));
307 return *this;
308 }
309 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
310 CreateImageBuilderRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
311 m_tagsHasBeenSet = true;
312 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
313 return *this;
314 }
316
318
323 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
324 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
325 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
326 void SetAccessEndpoints(AccessEndpointsT&& value) {
327 m_accessEndpointsHasBeenSet = true;
328 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
329 }
330 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
332 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
333 return *this;
334 }
335 template <typename AccessEndpointsT = AccessEndpoint>
337 m_accessEndpointsHasBeenSet = true;
338 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
339 return *this;
340 }
342
344
349 inline const VolumeConfig& GetRootVolumeConfig() const { return m_rootVolumeConfig; }
350 inline bool RootVolumeConfigHasBeenSet() const { return m_rootVolumeConfigHasBeenSet; }
351 template <typename RootVolumeConfigT = VolumeConfig>
352 void SetRootVolumeConfig(RootVolumeConfigT&& value) {
353 m_rootVolumeConfigHasBeenSet = true;
354 m_rootVolumeConfig = std::forward<RootVolumeConfigT>(value);
355 }
356 template <typename RootVolumeConfigT = VolumeConfig>
358 SetRootVolumeConfig(std::forward<RootVolumeConfigT>(value));
359 return *this;
360 }
362
364
392 inline const Aws::Vector<Aws::String>& GetSoftwaresToInstall() const { return m_softwaresToInstall; }
393 inline bool SoftwaresToInstallHasBeenSet() const { return m_softwaresToInstallHasBeenSet; }
394 template <typename SoftwaresToInstallT = Aws::Vector<Aws::String>>
395 void SetSoftwaresToInstall(SoftwaresToInstallT&& value) {
396 m_softwaresToInstallHasBeenSet = true;
397 m_softwaresToInstall = std::forward<SoftwaresToInstallT>(value);
398 }
399 template <typename SoftwaresToInstallT = Aws::Vector<Aws::String>>
400 CreateImageBuilderRequest& WithSoftwaresToInstall(SoftwaresToInstallT&& value) {
401 SetSoftwaresToInstall(std::forward<SoftwaresToInstallT>(value));
402 return *this;
403 }
404 template <typename SoftwaresToInstallT = Aws::String>
405 CreateImageBuilderRequest& AddSoftwaresToInstall(SoftwaresToInstallT&& value) {
406 m_softwaresToInstallHasBeenSet = true;
407 m_softwaresToInstall.emplace_back(std::forward<SoftwaresToInstallT>(value));
408 return *this;
409 }
411
413
441 inline const Aws::Vector<Aws::String>& GetSoftwaresToUninstall() const { return m_softwaresToUninstall; }
442 inline bool SoftwaresToUninstallHasBeenSet() const { return m_softwaresToUninstallHasBeenSet; }
443 template <typename SoftwaresToUninstallT = Aws::Vector<Aws::String>>
444 void SetSoftwaresToUninstall(SoftwaresToUninstallT&& value) {
445 m_softwaresToUninstallHasBeenSet = true;
446 m_softwaresToUninstall = std::forward<SoftwaresToUninstallT>(value);
447 }
448 template <typename SoftwaresToUninstallT = Aws::Vector<Aws::String>>
449 CreateImageBuilderRequest& WithSoftwaresToUninstall(SoftwaresToUninstallT&& value) {
450 SetSoftwaresToUninstall(std::forward<SoftwaresToUninstallT>(value));
451 return *this;
452 }
453 template <typename SoftwaresToUninstallT = Aws::String>
454 CreateImageBuilderRequest& AddSoftwaresToUninstall(SoftwaresToUninstallT&& value) {
455 m_softwaresToUninstallHasBeenSet = true;
456 m_softwaresToUninstall.emplace_back(std::forward<SoftwaresToUninstallT>(value));
457 return *this;
458 }
460
462
469 inline bool GetDisableIMDSV1() const { return m_disableIMDSV1; }
470 inline bool DisableIMDSV1HasBeenSet() const { return m_disableIMDSV1HasBeenSet; }
471 inline void SetDisableIMDSV1(bool value) {
472 m_disableIMDSV1HasBeenSet = true;
473 m_disableIMDSV1 = value;
474 }
476 SetDisableIMDSV1(value);
477 return *this;
478 }
480
482
486 inline const ImageBuilderAgentAccessConfig& GetAgentAccessConfig() const { return m_agentAccessConfig; }
487 inline bool AgentAccessConfigHasBeenSet() const { return m_agentAccessConfigHasBeenSet; }
488 template <typename AgentAccessConfigT = ImageBuilderAgentAccessConfig>
489 void SetAgentAccessConfig(AgentAccessConfigT&& value) {
490 m_agentAccessConfigHasBeenSet = true;
491 m_agentAccessConfig = std::forward<AgentAccessConfigT>(value);
492 }
493 template <typename AgentAccessConfigT = ImageBuilderAgentAccessConfig>
495 SetAgentAccessConfig(std::forward<AgentAccessConfigT>(value));
496 return *this;
497 }
499 private:
500 Aws::String m_name;
501
502 Aws::String m_imageName;
503
504 Aws::String m_imageArn;
505
506 Aws::String m_instanceType;
507
508 Aws::String m_description;
509
510 Aws::String m_displayName;
511
512 VpcConfig m_vpcConfig;
513
514 Aws::String m_iamRoleArn;
515
516 bool m_enableDefaultInternetAccess{false};
517
518 DomainJoinInfo m_domainJoinInfo;
519
520 Aws::String m_appstreamAgentVersion;
521
523
524 Aws::Vector<AccessEndpoint> m_accessEndpoints;
525
526 VolumeConfig m_rootVolumeConfig;
527
528 Aws::Vector<Aws::String> m_softwaresToInstall;
529
530 Aws::Vector<Aws::String> m_softwaresToUninstall;
531
532 bool m_disableIMDSV1{false};
533
534 ImageBuilderAgentAccessConfig m_agentAccessConfig;
535 bool m_nameHasBeenSet = false;
536 bool m_imageNameHasBeenSet = false;
537 bool m_imageArnHasBeenSet = false;
538 bool m_instanceTypeHasBeenSet = false;
539 bool m_descriptionHasBeenSet = false;
540 bool m_displayNameHasBeenSet = false;
541 bool m_vpcConfigHasBeenSet = false;
542 bool m_iamRoleArnHasBeenSet = false;
543 bool m_enableDefaultInternetAccessHasBeenSet = false;
544 bool m_domainJoinInfoHasBeenSet = false;
545 bool m_appstreamAgentVersionHasBeenSet = false;
546 bool m_tagsHasBeenSet = false;
547 bool m_accessEndpointsHasBeenSet = false;
548 bool m_rootVolumeConfigHasBeenSet = false;
549 bool m_softwaresToInstallHasBeenSet = false;
550 bool m_softwaresToUninstallHasBeenSet = false;
551 bool m_disableIMDSV1HasBeenSet = false;
552 bool m_agentAccessConfigHasBeenSet = false;
553};
554
555} // namespace Model
556} // namespace AppStream
557} // namespace Aws
CreateImageBuilderRequest & WithDomainJoinInfo(DomainJoinInfoT &&value)
CreateImageBuilderRequest & WithAccessEndpoints(AccessEndpointsT &&value)
AWS_APPSTREAM_API CreateImageBuilderRequest()=default
CreateImageBuilderRequest & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateImageBuilderRequest & WithImageArn(ImageArnT &&value)
CreateImageBuilderRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetSoftwaresToUninstall() const
CreateImageBuilderRequest & WithIamRoleArn(IamRoleArnT &&value)
CreateImageBuilderRequest & AddSoftwaresToUninstall(SoftwaresToUninstallT &&value)
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
CreateImageBuilderRequest & WithAppstreamAgentVersion(AppstreamAgentVersionT &&value)
CreateImageBuilderRequest & WithImageName(ImageNameT &&value)
const Aws::Vector< Aws::String > & GetSoftwaresToInstall() const
CreateImageBuilderRequest & WithDisableIMDSV1(bool value)
CreateImageBuilderRequest & WithVpcConfig(VpcConfigT &&value)
CreateImageBuilderRequest & WithEnableDefaultInternetAccess(bool value)
CreateImageBuilderRequest & WithAgentAccessConfig(AgentAccessConfigT &&value)
CreateImageBuilderRequest & WithRootVolumeConfig(RootVolumeConfigT &&value)
CreateImageBuilderRequest & AddSoftwaresToInstall(SoftwaresToInstallT &&value)
CreateImageBuilderRequest & WithDescription(DescriptionT &&value)
CreateImageBuilderRequest & AddAccessEndpoints(AccessEndpointsT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateImageBuilderRequest & WithSoftwaresToUninstall(SoftwaresToUninstallT &&value)
CreateImageBuilderRequest & WithInstanceType(InstanceTypeT &&value)
void SetSoftwaresToUninstall(SoftwaresToUninstallT &&value)
CreateImageBuilderRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const ImageBuilderAgentAccessConfig & GetAgentAccessConfig() const
CreateImageBuilderRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetAppstreamAgentVersion(AppstreamAgentVersionT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateImageBuilderRequest & WithSoftwaresToInstall(SoftwaresToInstallT &&value)
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