7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/DiskImageFormat.h>
11#include <aws/ec2/model/ExportTaskS3LocationRequest.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/TagSpecification.h>
15#include <aws/core/utils/UUID.h>
50 template<
typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<
typename ClientTokenT = Aws::String>
63 template<
typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
65 template<
typename DescriptionT = Aws::String>
88 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
98 template<
typename ImageIdT = Aws::String>
99 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet =
true; m_imageId = std::forward<ImageIdT>(value); }
100 template<
typename ImageIdT = Aws::String>
111 template<
typename S3ExportLocationT = ExportTaskS3LocationRequest>
112 void SetS3ExportLocation(S3ExportLocationT&& value) { m_s3ExportLocationHasBeenSet =
true; m_s3ExportLocation = std::forward<S3ExportLocationT>(value); }
113 template<
typename S3ExportLocationT = ExportTaskS3LocationRequest>
125 template<
typename RoleNameT = Aws::String>
126 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet =
true; m_roleName = std::forward<RoleNameT>(value); }
127 template<
typename RoleNameT = Aws::String>
137 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
138 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
139 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
141 template<
typename TagSpecificationsT = TagSpecification>
147 bool m_clientTokenHasBeenSet =
true;
150 bool m_descriptionHasBeenSet =
false;
153 bool m_diskImageFormatHasBeenSet =
false;
155 bool m_dryRun{
false};
156 bool m_dryRunHasBeenSet =
false;
159 bool m_imageIdHasBeenSet =
false;
161 ExportTaskS3LocationRequest m_s3ExportLocation;
162 bool m_s3ExportLocationHasBeenSet =
false;
165 bool m_roleNameHasBeenSet =
false;
168 bool m_tagSpecificationsHasBeenSet =
false;
ExportImageRequest & WithDryRun(bool value)
ExportImageRequest & WithDescription(DescriptionT &&value)
void SetClientToken(ClientTokenT &&value)
bool ImageIdHasBeenSet() const
bool RoleNameHasBeenSet() const
ExportImageRequest & WithRoleName(RoleNameT &&value)
ExportImageRequest & WithS3ExportLocation(S3ExportLocationT &&value)
bool S3ExportLocationHasBeenSet() const
const Aws::String & GetRoleName() const
void SetS3ExportLocation(S3ExportLocationT &&value)
ExportImageRequest & WithImageId(ImageIdT &&value)
bool DescriptionHasBeenSet() const
ExportImageRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
ExportImageRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetRoleName(RoleNameT &&value)
ExportImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
void SetDryRun(bool value)
ExportImageRequest & WithDiskImageFormat(DiskImageFormat value)
bool TagSpecificationsHasBeenSet() const
bool DiskImageFormatHasBeenSet() const
bool ClientTokenHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDescription() const
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool DryRunHasBeenSet() const
DiskImageFormat GetDiskImageFormat() const
void SetDescription(DescriptionT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
const Aws::String & GetImageId() const
const ExportTaskS3LocationRequest & GetS3ExportLocation() const
void SetDiskImageFormat(DiskImageFormat value)
AWS_EC2_API ExportImageRequest()=default
void SetImageId(ImageIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector