AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopySnapshotRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API CopySnapshotRequest();
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 "CopySnapshot"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetDescription() const{ return m_description; }
46 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
47 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
48 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
49 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
50 inline CopySnapshotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
51 inline CopySnapshotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
52 inline CopySnapshotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
54
56
67 inline const Aws::String& GetDestinationOutpostArn() const{ return m_destinationOutpostArn; }
68 inline bool DestinationOutpostArnHasBeenSet() const { return m_destinationOutpostArnHasBeenSet; }
69 inline void SetDestinationOutpostArn(const Aws::String& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = value; }
70 inline void SetDestinationOutpostArn(Aws::String&& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = std::move(value); }
71 inline void SetDestinationOutpostArn(const char* value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn.assign(value); }
73 inline CopySnapshotRequest& WithDestinationOutpostArn(Aws::String&& value) { SetDestinationOutpostArn(std::move(value)); return *this;}
74 inline CopySnapshotRequest& WithDestinationOutpostArn(const char* value) { SetDestinationOutpostArn(value); return *this;}
76
78
88 inline const Aws::String& GetDestinationRegion() const{ return m_destinationRegion; }
89 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
90 inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
91 inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::move(value); }
92 inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
93 inline CopySnapshotRequest& WithDestinationRegion(const Aws::String& value) { SetDestinationRegion(value); return *this;}
94 inline CopySnapshotRequest& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(std::move(value)); return *this;}
95 inline CopySnapshotRequest& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
97
99
108 inline bool GetEncrypted() const{ return m_encrypted; }
109 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
110 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
111 inline CopySnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
113
115
130 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
131 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
132 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
133 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
134 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
135 inline CopySnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
136 inline CopySnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
137 inline CopySnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
139
141
159 inline const Aws::String& GetPresignedUrl() const{ return m_presignedUrl; }
160 inline bool PresignedUrlHasBeenSet() const { return m_presignedUrlHasBeenSet; }
161 inline void SetPresignedUrl(const Aws::String& value) { m_presignedUrlHasBeenSet = true; m_presignedUrl = value; }
162 inline void SetPresignedUrl(Aws::String&& value) { m_presignedUrlHasBeenSet = true; m_presignedUrl = std::move(value); }
163 inline void SetPresignedUrl(const char* value) { m_presignedUrlHasBeenSet = true; m_presignedUrl.assign(value); }
164 inline CopySnapshotRequest& WithPresignedUrl(const Aws::String& value) { SetPresignedUrl(value); return *this;}
165 inline CopySnapshotRequest& WithPresignedUrl(Aws::String&& value) { SetPresignedUrl(std::move(value)); return *this;}
166 inline CopySnapshotRequest& WithPresignedUrl(const char* value) { SetPresignedUrl(value); return *this;}
168
170
173 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
174 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
175 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
176 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
177 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
178 inline CopySnapshotRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
179 inline CopySnapshotRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
180 inline CopySnapshotRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
182
184
187 inline const Aws::String& GetSourceSnapshotId() const{ return m_sourceSnapshotId; }
188 inline bool SourceSnapshotIdHasBeenSet() const { return m_sourceSnapshotIdHasBeenSet; }
189 inline void SetSourceSnapshotId(const Aws::String& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = value; }
190 inline void SetSourceSnapshotId(Aws::String&& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = std::move(value); }
191 inline void SetSourceSnapshotId(const char* value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId.assign(value); }
192 inline CopySnapshotRequest& WithSourceSnapshotId(const Aws::String& value) { SetSourceSnapshotId(value); return *this;}
193 inline CopySnapshotRequest& WithSourceSnapshotId(Aws::String&& value) { SetSourceSnapshotId(std::move(value)); return *this;}
194 inline CopySnapshotRequest& WithSourceSnapshotId(const char* value) { SetSourceSnapshotId(value); return *this;}
196
198
201 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
202 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
203 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
204 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
207 inline CopySnapshotRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
208 inline CopySnapshotRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
210
212
218 inline bool GetDryRun() const{ return m_dryRun; }
219 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
220 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
221 inline CopySnapshotRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
223 private:
224
225 Aws::String m_description;
226 bool m_descriptionHasBeenSet = false;
227
228 Aws::String m_destinationOutpostArn;
229 bool m_destinationOutpostArnHasBeenSet = false;
230
231 Aws::String m_destinationRegion;
232 bool m_destinationRegionHasBeenSet = false;
233
234 bool m_encrypted;
235 bool m_encryptedHasBeenSet = false;
236
237 Aws::String m_kmsKeyId;
238 bool m_kmsKeyIdHasBeenSet = false;
239
240 Aws::String m_presignedUrl;
241 bool m_presignedUrlHasBeenSet = false;
242
243 Aws::String m_sourceRegion;
244 bool m_sourceRegionHasBeenSet = false;
245
246 Aws::String m_sourceSnapshotId;
247 bool m_sourceSnapshotIdHasBeenSet = false;
248
249 Aws::Vector<TagSpecification> m_tagSpecifications;
250 bool m_tagSpecificationsHasBeenSet = false;
251
252 bool m_dryRun;
253 bool m_dryRunHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace EC2
258} // namespace Aws
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetDestinationRegion(const char *value)
void SetKmsKeyId(const Aws::String &value)
void SetPresignedUrl(const Aws::String &value)
CopySnapshotRequest & WithDestinationRegion(const char *value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetSourceRegion(Aws::String &&value)
void SetDestinationRegion(const Aws::String &value)
const Aws::String & GetPresignedUrl() const
CopySnapshotRequest & WithDescription(const char *value)
CopySnapshotRequest & WithSourceRegion(const Aws::String &value)
void SetDescription(const Aws::String &value)
CopySnapshotRequest & WithSourceRegion(const char *value)
CopySnapshotRequest & AddTagSpecifications(TagSpecification &&value)
CopySnapshotRequest & WithPresignedUrl(const Aws::String &value)
CopySnapshotRequest & WithSourceSnapshotId(const Aws::String &value)
CopySnapshotRequest & WithDryRun(bool value)
CopySnapshotRequest & WithKmsKeyId(const char *value)
void SetDestinationOutpostArn(Aws::String &&value)
const Aws::String & GetSourceSnapshotId() const
CopySnapshotRequest & WithDescription(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetPresignedUrl(Aws::String &&value)
CopySnapshotRequest & AddTagSpecifications(const TagSpecification &value)
CopySnapshotRequest & WithDestinationOutpostArn(Aws::String &&value)
CopySnapshotRequest & WithKmsKeyId(Aws::String &&value)
void SetDestinationOutpostArn(const Aws::String &value)
const Aws::String & GetSourceRegion() const
virtual const char * GetServiceRequestName() const override
void SetSourceRegion(const Aws::String &value)
CopySnapshotRequest & WithSourceRegion(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetDestinationRegion(Aws::String &&value)
CopySnapshotRequest & WithPresignedUrl(Aws::String &&value)
void SetSourceSnapshotId(const Aws::String &value)
CopySnapshotRequest & WithDescription(Aws::String &&value)
CopySnapshotRequest & WithEncrypted(bool value)
CopySnapshotRequest & WithKmsKeyId(const Aws::String &value)
const Aws::String & GetDescription() const
const Aws::String & GetDestinationRegion() const
CopySnapshotRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetDestinationOutpostArn(const char *value)
CopySnapshotRequest & WithDestinationRegion(const Aws::String &value)
CopySnapshotRequest & WithPresignedUrl(const char *value)
CopySnapshotRequest & WithSourceSnapshotId(Aws::String &&value)
CopySnapshotRequest & WithSourceSnapshotId(const char *value)
CopySnapshotRequest & WithDestinationOutpostArn(const char *value)
void SetSourceSnapshotId(Aws::String &&value)
const Aws::String & GetKmsKeyId() const
CopySnapshotRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CopySnapshotRequest & WithDestinationRegion(Aws::String &&value)
void SetDescription(Aws::String &&value)
CopySnapshotRequest & WithDestinationOutpostArn(const Aws::String &value)
const Aws::String & GetDestinationOutpostArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector