AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline ExportImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline ExportImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline ExportImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline ExportImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline ExportImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline ExportImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; }
78 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
79 inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
80 inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = std::move(value); }
81 inline ExportImageRequest& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;}
82 inline ExportImageRequest& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(std::move(value)); return *this;}
84
86
92 inline bool GetDryRun() const{ return m_dryRun; }
93 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
94 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
95 inline ExportImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
97
99
102 inline const Aws::String& GetImageId() const{ return m_imageId; }
103 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
104 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
105 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
106 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
107 inline ExportImageRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
108 inline ExportImageRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
109 inline ExportImageRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
111
113
117 inline const ExportTaskS3LocationRequest& GetS3ExportLocation() const{ return m_s3ExportLocation; }
118 inline bool S3ExportLocationHasBeenSet() const { return m_s3ExportLocationHasBeenSet; }
119 inline void SetS3ExportLocation(const ExportTaskS3LocationRequest& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = value; }
120 inline void SetS3ExportLocation(ExportTaskS3LocationRequest&& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = std::move(value); }
124
126
131 inline const Aws::String& GetRoleName() const{ return m_roleName; }
132 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
133 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
134 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
135 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
136 inline ExportImageRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
137 inline ExportImageRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
138 inline ExportImageRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
140
142
145 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
146 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
147 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
148 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
151 inline ExportImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
152 inline ExportImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
154 private:
155
156 Aws::String m_clientToken;
157 bool m_clientTokenHasBeenSet = false;
158
159 Aws::String m_description;
160 bool m_descriptionHasBeenSet = false;
161
162 DiskImageFormat m_diskImageFormat;
163 bool m_diskImageFormatHasBeenSet = false;
164
165 bool m_dryRun;
166 bool m_dryRunHasBeenSet = false;
167
168 Aws::String m_imageId;
169 bool m_imageIdHasBeenSet = false;
170
171 ExportTaskS3LocationRequest m_s3ExportLocation;
172 bool m_s3ExportLocationHasBeenSet = false;
173
174 Aws::String m_roleName;
175 bool m_roleNameHasBeenSet = false;
176
177 Aws::Vector<TagSpecification> m_tagSpecifications;
178 bool m_tagSpecificationsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace EC2
183} // namespace Aws
ExportImageRequest & WithDryRun(bool value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
const Aws::String & GetRoleName() const
ExportImageRequest & WithDescription(const char *value)
ExportImageRequest & WithS3ExportLocation(ExportTaskS3LocationRequest &&value)
ExportImageRequest & AddTagSpecifications(TagSpecification &&value)
const Aws::String & GetClientToken() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
ExportImageRequest & AddTagSpecifications(const TagSpecification &value)
ExportImageRequest & WithDiskImageFormat(DiskImageFormat &&value)
void SetClientToken(Aws::String &&value)
ExportImageRequest & WithClientToken(Aws::String &&value)
ExportImageRequest & WithImageId(const char *value)
const DiskImageFormat & GetDiskImageFormat() const
void SetImageId(const Aws::String &value)
ExportImageRequest & WithClientToken(const char *value)
ExportImageRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
ExportImageRequest & WithImageId(Aws::String &&value)
ExportImageRequest & WithImageId(const Aws::String &value)
void SetDiskImageFormat(const DiskImageFormat &value)
void SetClientToken(const Aws::String &value)
const Aws::String & GetDescription() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetS3ExportLocation(const ExportTaskS3LocationRequest &value)
void SetDescription(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ExportImageRequest & WithRoleName(Aws::String &&value)
void SetS3ExportLocation(ExportTaskS3LocationRequest &&value)
ExportImageRequest & WithDiskImageFormat(const DiskImageFormat &value)
ExportImageRequest & WithDescription(Aws::String &&value)
ExportImageRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
const Aws::String & GetImageId() const
void SetRoleName(const Aws::String &value)
void SetDescription(const Aws::String &value)
ExportImageRequest & WithS3ExportLocation(const ExportTaskS3LocationRequest &value)
ExportImageRequest & WithRoleName(const Aws::String &value)
const ExportTaskS3LocationRequest & GetS3ExportLocation() const
ExportImageRequest & WithRoleName(const char *value)
ExportImageRequest & WithDescription(const Aws::String &value)
ExportImageRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetDiskImageFormat(DiskImageFormat &&value)
void SetRoleName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector