AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
48 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
49 template<typename DescriptionT = Aws::String>
50 CopySnapshotRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
52
54
65 inline const Aws::String& GetDestinationOutpostArn() const { return m_destinationOutpostArn; }
66 inline bool DestinationOutpostArnHasBeenSet() const { return m_destinationOutpostArnHasBeenSet; }
67 template<typename DestinationOutpostArnT = Aws::String>
68 void SetDestinationOutpostArn(DestinationOutpostArnT&& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = std::forward<DestinationOutpostArnT>(value); }
69 template<typename DestinationOutpostArnT = Aws::String>
70 CopySnapshotRequest& WithDestinationOutpostArn(DestinationOutpostArnT&& value) { SetDestinationOutpostArn(std::forward<DestinationOutpostArnT>(value)); return *this;}
72
74
84 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
85 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
86 template<typename DestinationRegionT = Aws::String>
87 void SetDestinationRegion(DestinationRegionT&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::forward<DestinationRegionT>(value); }
88 template<typename DestinationRegionT = Aws::String>
89 CopySnapshotRequest& WithDestinationRegion(DestinationRegionT&& value) { SetDestinationRegion(std::forward<DestinationRegionT>(value)); return *this;}
91
93
102 inline bool GetEncrypted() const { return m_encrypted; }
103 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
104 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
105 inline CopySnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
107
109
124 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
125 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
126 template<typename KmsKeyIdT = Aws::String>
127 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
128 template<typename KmsKeyIdT = Aws::String>
129 CopySnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
131
133
151 inline const Aws::String& GetPresignedUrl() const { return m_presignedUrl; }
152 inline bool PresignedUrlHasBeenSet() const { return m_presignedUrlHasBeenSet; }
153 template<typename PresignedUrlT = Aws::String>
154 void SetPresignedUrl(PresignedUrlT&& value) { m_presignedUrlHasBeenSet = true; m_presignedUrl = std::forward<PresignedUrlT>(value); }
155 template<typename PresignedUrlT = Aws::String>
156 CopySnapshotRequest& WithPresignedUrl(PresignedUrlT&& value) { SetPresignedUrl(std::forward<PresignedUrlT>(value)); return *this;}
158
160
163 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
164 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
165 template<typename SourceRegionT = Aws::String>
166 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
167 template<typename SourceRegionT = Aws::String>
168 CopySnapshotRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
170
172
175 inline const Aws::String& GetSourceSnapshotId() const { return m_sourceSnapshotId; }
176 inline bool SourceSnapshotIdHasBeenSet() const { return m_sourceSnapshotIdHasBeenSet; }
177 template<typename SourceSnapshotIdT = Aws::String>
178 void SetSourceSnapshotId(SourceSnapshotIdT&& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = std::forward<SourceSnapshotIdT>(value); }
179 template<typename SourceSnapshotIdT = Aws::String>
180 CopySnapshotRequest& WithSourceSnapshotId(SourceSnapshotIdT&& value) { SetSourceSnapshotId(std::forward<SourceSnapshotIdT>(value)); return *this;}
182
184
187 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
188 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
189 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
190 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
191 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
192 CopySnapshotRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
193 template<typename TagSpecificationsT = TagSpecification>
194 CopySnapshotRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
196
198
206 inline int GetCompletionDurationMinutes() const { return m_completionDurationMinutes; }
207 inline bool CompletionDurationMinutesHasBeenSet() const { return m_completionDurationMinutesHasBeenSet; }
208 inline void SetCompletionDurationMinutes(int value) { m_completionDurationMinutesHasBeenSet = true; m_completionDurationMinutes = value; }
211
213
219 inline bool GetDryRun() const { return m_dryRun; }
220 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
221 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
222 inline CopySnapshotRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
224 private:
225
226 Aws::String m_description;
227 bool m_descriptionHasBeenSet = false;
228
229 Aws::String m_destinationOutpostArn;
230 bool m_destinationOutpostArnHasBeenSet = false;
231
232 Aws::String m_destinationRegion;
233 bool m_destinationRegionHasBeenSet = false;
234
235 bool m_encrypted{false};
236 bool m_encryptedHasBeenSet = false;
237
238 Aws::String m_kmsKeyId;
239 bool m_kmsKeyIdHasBeenSet = false;
240
241 Aws::String m_presignedUrl;
242 bool m_presignedUrlHasBeenSet = false;
243
244 Aws::String m_sourceRegion;
245 bool m_sourceRegionHasBeenSet = false;
246
247 Aws::String m_sourceSnapshotId;
248 bool m_sourceSnapshotIdHasBeenSet = false;
249
250 Aws::Vector<TagSpecification> m_tagSpecifications;
251 bool m_tagSpecificationsHasBeenSet = false;
252
253 int m_completionDurationMinutes{0};
254 bool m_completionDurationMinutesHasBeenSet = false;
255
256 bool m_dryRun{false};
257 bool m_dryRunHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace EC2
262} // namespace Aws
void SetDestinationOutpostArn(DestinationOutpostArnT &&value)
const Aws::String & GetPresignedUrl() const
CopySnapshotRequest & AddTagSpecifications(TagSpecificationsT &&value)
void SetDestinationRegion(DestinationRegionT &&value)
void SetSourceRegion(SourceRegionT &&value)
void SetPresignedUrl(PresignedUrlT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
CopySnapshotRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API CopySnapshotRequest()=default
CopySnapshotRequest & WithDryRun(bool value)
CopySnapshotRequest & WithSourceRegion(SourceRegionT &&value)
CopySnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
CopySnapshotRequest & WithDestinationOutpostArn(DestinationOutpostArnT &&value)
const Aws::String & GetSourceSnapshotId() const
CopySnapshotRequest & WithPresignedUrl(PresignedUrlT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopySnapshotRequest & WithDestinationRegion(DestinationRegionT &&value)
CopySnapshotRequest & WithSourceSnapshotId(SourceSnapshotIdT &&value)
const Aws::String & GetSourceRegion() const
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetDescription(DescriptionT &&value)
CopySnapshotRequest & WithEncrypted(bool value)
const Aws::String & GetDescription() const
const Aws::String & GetDestinationRegion() const
CopySnapshotRequest & WithCompletionDurationMinutes(int value)
const Aws::String & GetKmsKeyId() const
void SetSourceSnapshotId(SourceSnapshotIdT &&value)
CopySnapshotRequest & WithTagSpecifications(TagSpecificationsT &&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