AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PutSnapshotBlockRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ebs/EBSRequest.h>
10#include <aws/ebs/EBS_EXPORTS.h>
11#include <aws/ebs/model/ChecksumAlgorithm.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EBS {
17namespace Model {
18
22 public:
23 AWS_EBS_API PutSnapshotBlockRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutSnapshotBlock"; }
30
32
33 AWS_EBS_API bool SignBody() const override { return false; }
34
36
44 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
45 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
46 template <typename SnapshotIdT = Aws::String>
47 void SetSnapshotId(SnapshotIdT&& value) {
48 m_snapshotIdHasBeenSet = true;
49 m_snapshotId = std::forward<SnapshotIdT>(value);
50 }
51 template <typename SnapshotIdT = Aws::String>
53 SetSnapshotId(std::forward<SnapshotIdT>(value));
54 return *this;
55 }
57
59
66 inline int GetBlockIndex() const { return m_blockIndex; }
67 inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
68 inline void SetBlockIndex(int value) {
69 m_blockIndexHasBeenSet = true;
70 m_blockIndex = value;
71 }
73 SetBlockIndex(value);
74 return *this;
75 }
77
79
84 inline int GetDataLength() const { return m_dataLength; }
85 inline bool DataLengthHasBeenSet() const { return m_dataLengthHasBeenSet; }
86 inline void SetDataLength(int value) {
87 m_dataLengthHasBeenSet = true;
88 m_dataLength = value;
89 }
91 SetDataLength(value);
92 return *this;
93 }
95
97
100 inline int GetProgress() const { return m_progress; }
101 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
102 inline void SetProgress(int value) {
103 m_progressHasBeenSet = true;
104 m_progress = value;
105 }
107 SetProgress(value);
108 return *this;
109 }
111
113
117 inline const Aws::String& GetChecksum() const { return m_checksum; }
118 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
119 template <typename ChecksumT = Aws::String>
120 void SetChecksum(ChecksumT&& value) {
121 m_checksumHasBeenSet = true;
122 m_checksum = std::forward<ChecksumT>(value);
123 }
124 template <typename ChecksumT = Aws::String>
126 SetChecksum(std::forward<ChecksumT>(value));
127 return *this;
128 }
130
132
136 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
137 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
139 m_checksumAlgorithmHasBeenSet = true;
140 m_checksumAlgorithm = value;
141 }
144 return *this;
145 }
147 private:
148 Aws::String m_snapshotId;
149
150 int m_blockIndex{0};
151
152 int m_dataLength{0};
153
154 int m_progress{0};
155
156 Aws::String m_checksum;
157
159 bool m_snapshotIdHasBeenSet = false;
160 bool m_blockIndexHasBeenSet = false;
161 bool m_dataLengthHasBeenSet = false;
162 bool m_progressHasBeenSet = false;
163 bool m_checksumHasBeenSet = false;
164 bool m_checksumAlgorithmHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace EBS
169} // namespace Aws
AWS_EBS_API bool SignBody() const override
void SetChecksumAlgorithm(ChecksumAlgorithm value)
PutSnapshotBlockRequest & WithProgress(int value)
AWS_EBS_API PutSnapshotBlockRequest()=default
PutSnapshotBlockRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_EBS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
PutSnapshotBlockRequest & WithDataLength(int value)
PutSnapshotBlockRequest & WithBlockIndex(int value)
PutSnapshotBlockRequest & WithSnapshotId(SnapshotIdT &&value)
PutSnapshotBlockRequest & WithChecksum(ChecksumT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String