AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ExportImageRequest.h
1
6#pragma once
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>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EC2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EC2_API ExportImageRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ExportImage"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetClientToken() const { return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
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>
53 ExportImageRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
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>
66 ExportImageRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
74 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
75 inline void SetDiskImageFormat(DiskImageFormat value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
78
80
86 inline bool GetDryRun() const { return m_dryRun; }
87 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
88 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
89 inline ExportImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
91
93
96 inline const Aws::String& GetImageId() const { return m_imageId; }
97 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
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>
101 ExportImageRequest& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
103
105
109 inline const ExportTaskS3LocationRequest& GetS3ExportLocation() const { return m_s3ExportLocation; }
110 inline bool S3ExportLocationHasBeenSet() const { return m_s3ExportLocationHasBeenSet; }
111 template<typename S3ExportLocationT = ExportTaskS3LocationRequest>
112 void SetS3ExportLocation(S3ExportLocationT&& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = std::forward<S3ExportLocationT>(value); }
113 template<typename S3ExportLocationT = ExportTaskS3LocationRequest>
114 ExportImageRequest& WithS3ExportLocation(S3ExportLocationT&& value) { SetS3ExportLocation(std::forward<S3ExportLocationT>(value)); return *this;}
116
118
123 inline const Aws::String& GetRoleName() const { return m_roleName; }
124 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
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>
128 ExportImageRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
130
132
135 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
136 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
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>>
140 ExportImageRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
141 template<typename TagSpecificationsT = TagSpecification>
142 ExportImageRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
144 private:
145
147 bool m_clientTokenHasBeenSet = true;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 DiskImageFormat m_diskImageFormat{DiskImageFormat::NOT_SET};
153 bool m_diskImageFormatHasBeenSet = false;
154
155 bool m_dryRun{false};
156 bool m_dryRunHasBeenSet = false;
157
158 Aws::String m_imageId;
159 bool m_imageIdHasBeenSet = false;
160
161 ExportTaskS3LocationRequest m_s3ExportLocation;
162 bool m_s3ExportLocationHasBeenSet = false;
163
164 Aws::String m_roleName;
165 bool m_roleNameHasBeenSet = false;
166
167 Aws::Vector<TagSpecification> m_tagSpecifications;
168 bool m_tagSpecificationsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
ExportImageRequest & WithDryRun(bool value)
ExportImageRequest & WithDescription(DescriptionT &&value)
void SetClientToken(ClientTokenT &&value)
ExportImageRequest & WithRoleName(RoleNameT &&value)
ExportImageRequest & WithS3ExportLocation(S3ExportLocationT &&value)
const Aws::String & GetRoleName() const
void SetS3ExportLocation(S3ExportLocationT &&value)
ExportImageRequest & WithImageId(ImageIdT &&value)
ExportImageRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
ExportImageRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
ExportImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
ExportImageRequest & WithDiskImageFormat(DiskImageFormat value)
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
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
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector