AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutSnapshotBlockRequest.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/ebs/EBSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/ebs/model/ChecksumAlgorithm.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EBS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EBS_API PutSnapshotBlockRequest() = 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 "PutSnapshotBlock"; }
33
35
36 AWS_EBS_API bool SignBody() const override { return false; }
37
38
40
48 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
49 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
50 template<typename SnapshotIdT = Aws::String>
51 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
52 template<typename SnapshotIdT = Aws::String>
53 PutSnapshotBlockRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
55
57
64 inline int GetBlockIndex() const { return m_blockIndex; }
65 inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
66 inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
67 inline PutSnapshotBlockRequest& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
69
71
76 inline int GetDataLength() const { return m_dataLength; }
77 inline bool DataLengthHasBeenSet() const { return m_dataLengthHasBeenSet; }
78 inline void SetDataLength(int value) { m_dataLengthHasBeenSet = true; m_dataLength = value; }
79 inline PutSnapshotBlockRequest& WithDataLength(int value) { SetDataLength(value); return *this;}
81
83
86 inline int GetProgress() const { return m_progress; }
87 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
88 inline void SetProgress(int value) { m_progressHasBeenSet = true; m_progress = value; }
89 inline PutSnapshotBlockRequest& WithProgress(int value) { SetProgress(value); return *this;}
91
93
97 inline const Aws::String& GetChecksum() const { return m_checksum; }
98 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
99 template<typename ChecksumT = Aws::String>
100 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
101 template<typename ChecksumT = Aws::String>
102 PutSnapshotBlockRequest& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
104
106
110 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
111 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
112 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
115 private:
116
117 Aws::String m_snapshotId;
118 bool m_snapshotIdHasBeenSet = false;
119
120 int m_blockIndex{0};
121 bool m_blockIndexHasBeenSet = false;
122
123
124 int m_dataLength{0};
125 bool m_dataLengthHasBeenSet = false;
126
127 int m_progress{0};
128 bool m_progressHasBeenSet = false;
129
130 Aws::String m_checksum;
131 bool m_checksumHasBeenSet = false;
132
134 bool m_checksumAlgorithmHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EBS
139} // 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