AWS SDK for C++  1.9.66
AWS SDK for C++
CompleteSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ebs/EBS_EXPORTS.h>
8 #include <aws/ebs/EBSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EBS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CompleteSnapshot"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
43 
47  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
48 
52  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
53 
57  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
58 
62  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
63 
67  inline CompleteSnapshotRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
68 
72  inline CompleteSnapshotRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
73 
77  inline CompleteSnapshotRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
78 
79 
83  inline int GetChangedBlocksCount() const{ return m_changedBlocksCount; }
84 
88  inline bool ChangedBlocksCountHasBeenSet() const { return m_changedBlocksCountHasBeenSet; }
89 
93  inline void SetChangedBlocksCount(int value) { m_changedBlocksCountHasBeenSet = true; m_changedBlocksCount = value; }
94 
98  inline CompleteSnapshotRequest& WithChangedBlocksCount(int value) { SetChangedBlocksCount(value); return *this;}
99 
100 
108  inline const Aws::String& GetChecksum() const{ return m_checksum; }
109 
117  inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
118 
126  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
127 
135  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
136 
144  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
145 
153  inline CompleteSnapshotRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
154 
162  inline CompleteSnapshotRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
163 
171  inline CompleteSnapshotRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
172 
173 
178  inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
179 
184  inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
185 
190  inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
191 
196  inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
197 
202  inline CompleteSnapshotRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
203 
208  inline CompleteSnapshotRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
209 
210 
215  inline const ChecksumAggregationMethod& GetChecksumAggregationMethod() const{ return m_checksumAggregationMethod; }
216 
221  inline bool ChecksumAggregationMethodHasBeenSet() const { return m_checksumAggregationMethodHasBeenSet; }
222 
227  inline void SetChecksumAggregationMethod(const ChecksumAggregationMethod& value) { m_checksumAggregationMethodHasBeenSet = true; m_checksumAggregationMethod = value; }
228 
233  inline void SetChecksumAggregationMethod(ChecksumAggregationMethod&& value) { m_checksumAggregationMethodHasBeenSet = true; m_checksumAggregationMethod = std::move(value); }
234 
239  inline CompleteSnapshotRequest& WithChecksumAggregationMethod(const ChecksumAggregationMethod& value) { SetChecksumAggregationMethod(value); return *this;}
240 
245  inline CompleteSnapshotRequest& WithChecksumAggregationMethod(ChecksumAggregationMethod&& value) { SetChecksumAggregationMethod(std::move(value)); return *this;}
246 
247  private:
248 
249  Aws::String m_snapshotId;
250  bool m_snapshotIdHasBeenSet;
251 
252  int m_changedBlocksCount;
253  bool m_changedBlocksCountHasBeenSet;
254 
255  Aws::String m_checksum;
256  bool m_checksumHasBeenSet;
257 
258  ChecksumAlgorithm m_checksumAlgorithm;
259  bool m_checksumAlgorithmHasBeenSet;
260 
261  ChecksumAggregationMethod m_checksumAggregationMethod;
262  bool m_checksumAggregationMethodHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace EBS
267 } // namespace Aws
Aws::EBS::Model::ChecksumAlgorithm
ChecksumAlgorithm
Definition: ChecksumAlgorithm.h:17
ChecksumAggregationMethod.h
Aws::EBS::Model::CompleteSnapshotRequest::GetChecksum
const Aws::String & GetChecksum() const
Definition: CompleteSnapshotRequest.h:108
Aws::EBS::Model::CompleteSnapshotRequest::CompleteSnapshotRequest
CompleteSnapshotRequest()
Aws::EBS::Model::CompleteSnapshotRequest::ChecksumHasBeenSet
bool ChecksumHasBeenSet() const
Definition: CompleteSnapshotRequest.h:117
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EBS::Model::CompleteSnapshotRequest
Definition: CompleteSnapshotRequest.h:24
Aws::EBS::Model::CompleteSnapshotRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EBS::Model::CompleteSnapshotRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: CompleteSnapshotRequest.h:42
EBS_EXPORTS.h
Aws::EBS::Model::CompleteSnapshotRequest::SetChecksumAggregationMethod
void SetChecksumAggregationMethod(const ChecksumAggregationMethod &value)
Definition: CompleteSnapshotRequest.h:227
Aws::EBS::Model::CompleteSnapshotRequest::WithChecksumAlgorithm
CompleteSnapshotRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
Definition: CompleteSnapshotRequest.h:202
Aws::EBS::Model::CompleteSnapshotRequest::ChecksumAggregationMethodHasBeenSet
bool ChecksumAggregationMethodHasBeenSet() const
Definition: CompleteSnapshotRequest.h:221
Aws::EBS::Model::CompleteSnapshotRequest::SetChecksumAlgorithm
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
Definition: CompleteSnapshotRequest.h:196
Aws::EBS::EBSRequest
Definition: EBSRequest.h:18
Aws::EBS::Model::CompleteSnapshotRequest::WithSnapshotId
CompleteSnapshotRequest & WithSnapshotId(const char *value)
Definition: CompleteSnapshotRequest.h:77
Aws::EBS::Model::CompleteSnapshotRequest::WithChecksumAlgorithm
CompleteSnapshotRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
Definition: CompleteSnapshotRequest.h:208
Aws::EBS::Model::CompleteSnapshotRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: CompleteSnapshotRequest.h:47
EBSRequest.h
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::CompleteSnapshotRequest::WithChecksum
CompleteSnapshotRequest & WithChecksum(const char *value)
Definition: CompleteSnapshotRequest.h:171
ChecksumAlgorithm.h
Aws::EBS::Model::CompleteSnapshotRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: CompleteSnapshotRequest.h:52
Aws::EBS::Model::CompleteSnapshotRequest::GetChecksumAlgorithm
const ChecksumAlgorithm & GetChecksumAlgorithm() const
Definition: CompleteSnapshotRequest.h:178
Aws::EBS::Model::CompleteSnapshotRequest::WithSnapshotId
CompleteSnapshotRequest & WithSnapshotId(Aws::String &&value)
Definition: CompleteSnapshotRequest.h:72
Aws::EBS::Model::CompleteSnapshotRequest::WithChecksum
CompleteSnapshotRequest & WithChecksum(Aws::String &&value)
Definition: CompleteSnapshotRequest.h:162
Aws::EBS::Model::ChecksumAggregationMethod
ChecksumAggregationMethod
Definition: ChecksumAggregationMethod.h:17
Aws::EBS::Model::CompleteSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CompleteSnapshotRequest.h:32
Aws::EBS::Model::CompleteSnapshotRequest::SetChecksum
void SetChecksum(Aws::String &&value)
Definition: CompleteSnapshotRequest.h:135
Aws::EBS::Model::CompleteSnapshotRequest::SetChecksumAlgorithm
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
Definition: CompleteSnapshotRequest.h:190
AWSString.h
Aws::EBS::Model::CompleteSnapshotRequest::SetChecksum
void SetChecksum(const Aws::String &value)
Definition: CompleteSnapshotRequest.h:126
Aws::EBS::Model::CompleteSnapshotRequest::WithChecksumAggregationMethod
CompleteSnapshotRequest & WithChecksumAggregationMethod(ChecksumAggregationMethod &&value)
Definition: CompleteSnapshotRequest.h:245
Aws::EBS::Model::CompleteSnapshotRequest::SetChecksumAggregationMethod
void SetChecksumAggregationMethod(ChecksumAggregationMethod &&value)
Definition: CompleteSnapshotRequest.h:233
Aws::EBS::Model::CompleteSnapshotRequest::SetChangedBlocksCount
void SetChangedBlocksCount(int value)
Definition: CompleteSnapshotRequest.h:93
Aws::EBS::Model::CompleteSnapshotRequest::ChangedBlocksCountHasBeenSet
bool ChangedBlocksCountHasBeenSet() const
Definition: CompleteSnapshotRequest.h:88
Aws::EBS::Model::CompleteSnapshotRequest::GetChecksumAggregationMethod
const ChecksumAggregationMethod & GetChecksumAggregationMethod() const
Definition: CompleteSnapshotRequest.h:215
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::CompleteSnapshotRequest::WithChecksum
CompleteSnapshotRequest & WithChecksum(const Aws::String &value)
Definition: CompleteSnapshotRequest.h:153
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::CompleteSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EBS::Model::CompleteSnapshotRequest::WithSnapshotId
CompleteSnapshotRequest & WithSnapshotId(const Aws::String &value)
Definition: CompleteSnapshotRequest.h:67
Aws::EBS::Model::CompleteSnapshotRequest::WithChecksumAggregationMethod
CompleteSnapshotRequest & WithChecksumAggregationMethod(const ChecksumAggregationMethod &value)
Definition: CompleteSnapshotRequest.h:239
Aws::EBS::Model::CompleteSnapshotRequest::WithChangedBlocksCount
CompleteSnapshotRequest & WithChangedBlocksCount(int value)
Definition: CompleteSnapshotRequest.h:98
Aws::EBS::Model::CompleteSnapshotRequest::ChecksumAlgorithmHasBeenSet
bool ChecksumAlgorithmHasBeenSet() const
Definition: CompleteSnapshotRequest.h:184
Aws::EBS::Model::CompleteSnapshotRequest::GetChangedBlocksCount
int GetChangedBlocksCount() const
Definition: CompleteSnapshotRequest.h:83
Aws::EBS::Model::CompleteSnapshotRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: CompleteSnapshotRequest.h:62
Aws::EBS::Model::CompleteSnapshotRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: CompleteSnapshotRequest.h:57
Aws::EBS::Model::CompleteSnapshotRequest::SetChecksum
void SetChecksum(const char *value)
Definition: CompleteSnapshotRequest.h:144