AWS SDK for C++  1.9.130
AWS SDK for C++
PutSnapshotBlockRequest.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>
10 #include <aws/core/utils/Array.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 "PutSnapshotBlock"; }
33 
35 
36  bool SignBody() const override { return false; }
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 PutSnapshotBlockRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
68 
72  inline PutSnapshotBlockRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
73 
77  inline PutSnapshotBlockRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
78 
79 
87  inline int GetBlockIndex() const{ return m_blockIndex; }
88 
96  inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
97 
105  inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
106 
114  inline PutSnapshotBlockRequest& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
115 
116 
122  inline int GetDataLength() const{ return m_dataLength; }
123 
129  inline bool DataLengthHasBeenSet() const { return m_dataLengthHasBeenSet; }
130 
136  inline void SetDataLength(int value) { m_dataLengthHasBeenSet = true; m_dataLength = value; }
137 
143  inline PutSnapshotBlockRequest& WithDataLength(int value) { SetDataLength(value); return *this;}
144 
145 
149  inline int GetProgress() const{ return m_progress; }
150 
154  inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
155 
159  inline void SetProgress(int value) { m_progressHasBeenSet = true; m_progress = value; }
160 
164  inline PutSnapshotBlockRequest& WithProgress(int value) { SetProgress(value); return *this;}
165 
166 
171  inline const Aws::String& GetChecksum() const{ return m_checksum; }
172 
177  inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
178 
183  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
184 
189  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
190 
195  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
196 
201  inline PutSnapshotBlockRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
202 
207  inline PutSnapshotBlockRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
208 
213  inline PutSnapshotBlockRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
214 
215 
220  inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
221 
226  inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
227 
232  inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
233 
238  inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
239 
244  inline PutSnapshotBlockRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
245 
250  inline PutSnapshotBlockRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
251 
252  private:
253 
254  Aws::String m_snapshotId;
255  bool m_snapshotIdHasBeenSet;
256 
257  int m_blockIndex;
258  bool m_blockIndexHasBeenSet;
259 
260 
261  int m_dataLength;
262  bool m_dataLengthHasBeenSet;
263 
264  int m_progress;
265  bool m_progressHasBeenSet;
266 
267  Aws::String m_checksum;
268  bool m_checksumHasBeenSet;
269 
270  ChecksumAlgorithm m_checksumAlgorithm;
271  bool m_checksumAlgorithmHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace EBS
276 } // namespace Aws
Aws::EBS::Model::ChecksumAlgorithm
ChecksumAlgorithm
Definition: ChecksumAlgorithm.h:17
Aws::EBS::Model::PutSnapshotBlockRequest::SetChecksumAlgorithm
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
Definition: PutSnapshotBlockRequest.h:232
Aws::EBS::Model::PutSnapshotBlockRequest::WithSnapshotId
PutSnapshotBlockRequest & WithSnapshotId(const Aws::String &value)
Definition: PutSnapshotBlockRequest.h:67
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EBS::Model::PutSnapshotBlockRequest::SetChecksum
void SetChecksum(const Aws::String &value)
Definition: PutSnapshotBlockRequest.h:183
Aws::EBS::Model::PutSnapshotBlockRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutSnapshotBlockRequest.h:32
Aws::EBS::Model::PutSnapshotBlockRequest::WithChecksumAlgorithm
PutSnapshotBlockRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
Definition: PutSnapshotBlockRequest.h:244
EBS_EXPORTS.h
Aws::EBS::Model::PutSnapshotBlockRequest::GetProgress
int GetProgress() const
Definition: PutSnapshotBlockRequest.h:149
Aws::EBS::Model::PutSnapshotBlockRequest::ChecksumAlgorithmHasBeenSet
bool ChecksumAlgorithmHasBeenSet() const
Definition: PutSnapshotBlockRequest.h:226
Aws::EBS::Model::PutSnapshotBlockRequest::GetDataLength
int GetDataLength() const
Definition: PutSnapshotBlockRequest.h:122
Aws::EBS::Model::PutSnapshotBlockRequest::SignBody
bool SignBody() const override
Definition: PutSnapshotBlockRequest.h:36
Aws::EBS::Model::PutSnapshotBlockRequest::WithSnapshotId
PutSnapshotBlockRequest & WithSnapshotId(Aws::String &&value)
Definition: PutSnapshotBlockRequest.h:72
Aws::EBS::Model::PutSnapshotBlockRequest::WithSnapshotId
PutSnapshotBlockRequest & WithSnapshotId(const char *value)
Definition: PutSnapshotBlockRequest.h:77
Aws::EBS::Model::PutSnapshotBlockRequest::GetBlockIndex
int GetBlockIndex() const
Definition: PutSnapshotBlockRequest.h:87
Aws::EBS::Model::PutSnapshotBlockRequest::ProgressHasBeenSet
bool ProgressHasBeenSet() const
Definition: PutSnapshotBlockRequest.h:154
Aws::EBS::Model::PutSnapshotBlockRequest::SetChecksumAlgorithm
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
Definition: PutSnapshotBlockRequest.h:238
EBSRequest.h
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
ChecksumAlgorithm.h
Aws::EBS::Model::PutSnapshotBlockRequest::SetChecksum
void SetChecksum(Aws::String &&value)
Definition: PutSnapshotBlockRequest.h:189
Aws::EBS::Model::PutSnapshotBlockRequest::WithProgress
PutSnapshotBlockRequest & WithProgress(int value)
Definition: PutSnapshotBlockRequest.h:164
Aws::EBS::Model::PutSnapshotBlockRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: PutSnapshotBlockRequest.h:57
Aws::EBS::Model::PutSnapshotBlockRequest::WithDataLength
PutSnapshotBlockRequest & WithDataLength(int value)
Definition: PutSnapshotBlockRequest.h:143
AWSString.h
Aws::EBS::Model::PutSnapshotBlockRequest::SetProgress
void SetProgress(int value)
Definition: PutSnapshotBlockRequest.h:159
Aws::EBS::Model::PutSnapshotBlockRequest::WithChecksum
PutSnapshotBlockRequest & WithChecksum(const char *value)
Definition: PutSnapshotBlockRequest.h:213
Aws::EBS::Model::PutSnapshotBlockRequest::ChecksumHasBeenSet
bool ChecksumHasBeenSet() const
Definition: PutSnapshotBlockRequest.h:177
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws::EBS::Model::PutSnapshotBlockRequest::GetChecksum
const Aws::String & GetChecksum() const
Definition: PutSnapshotBlockRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::PutSnapshotBlockRequest::DataLengthHasBeenSet
bool DataLengthHasBeenSet() const
Definition: PutSnapshotBlockRequest.h:129
Array.h
Aws::EBS::Model::PutSnapshotBlockRequest::WithChecksum
PutSnapshotBlockRequest & WithChecksum(Aws::String &&value)
Definition: PutSnapshotBlockRequest.h:207
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::PutSnapshotBlockRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: PutSnapshotBlockRequest.h:47
Aws::EBS::Model::PutSnapshotBlockRequest::WithChecksum
PutSnapshotBlockRequest & WithChecksum(const Aws::String &value)
Definition: PutSnapshotBlockRequest.h:201
Aws::EBS::Model::PutSnapshotBlockRequest::SetBlockIndex
void SetBlockIndex(int value)
Definition: PutSnapshotBlockRequest.h:105
Aws::EBS::Model::PutSnapshotBlockRequest
Definition: PutSnapshotBlockRequest.h:24
Aws::EBS::Model::PutSnapshotBlockRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EBS::Model::PutSnapshotBlockRequest::WithBlockIndex
PutSnapshotBlockRequest & WithBlockIndex(int value)
Definition: PutSnapshotBlockRequest.h:114
Aws::EBS::Model::PutSnapshotBlockRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: PutSnapshotBlockRequest.h:62
Aws::EBS::Model::PutSnapshotBlockRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: PutSnapshotBlockRequest.h:42
Aws::EBS::Model::PutSnapshotBlockRequest::GetChecksumAlgorithm
const ChecksumAlgorithm & GetChecksumAlgorithm() const
Definition: PutSnapshotBlockRequest.h:220
Aws::EBS::Model::PutSnapshotBlockRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: PutSnapshotBlockRequest.h:52
Aws::EBS::Model::PutSnapshotBlockRequest::SetChecksum
void SetChecksum(const char *value)
Definition: PutSnapshotBlockRequest.h:195
Aws::EBS::Model::PutSnapshotBlockRequest::BlockIndexHasBeenSet
bool BlockIndexHasBeenSet() const
Definition: PutSnapshotBlockRequest.h:96
Aws::EBS::Model::PutSnapshotBlockRequest::SetDataLength
void SetDataLength(int value)
Definition: PutSnapshotBlockRequest.h:136
Aws::EBS::Model::PutSnapshotBlockRequest::WithChecksumAlgorithm
PutSnapshotBlockRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
Definition: PutSnapshotBlockRequest.h:250
Aws::EBS::Model::PutSnapshotBlockRequest::PutSnapshotBlockRequest
PutSnapshotBlockRequest()