AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
51 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
52 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
53 inline PutSnapshotBlockRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
54 inline PutSnapshotBlockRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
55 inline PutSnapshotBlockRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
57
59
66 inline int GetBlockIndex() const{ return m_blockIndex; }
67 inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
68 inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
69 inline PutSnapshotBlockRequest& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
71
73
78 inline int GetDataLength() const{ return m_dataLength; }
79 inline bool DataLengthHasBeenSet() const { return m_dataLengthHasBeenSet; }
80 inline void SetDataLength(int value) { m_dataLengthHasBeenSet = true; m_dataLength = value; }
81 inline PutSnapshotBlockRequest& WithDataLength(int value) { SetDataLength(value); return *this;}
83
85
88 inline int GetProgress() const{ return m_progress; }
89 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
90 inline void SetProgress(int value) { m_progressHasBeenSet = true; m_progress = value; }
91 inline PutSnapshotBlockRequest& WithProgress(int value) { SetProgress(value); return *this;}
93
95
99 inline const Aws::String& GetChecksum() const{ return m_checksum; }
100 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
101 inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
102 inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
103 inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
104 inline PutSnapshotBlockRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
105 inline PutSnapshotBlockRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
106 inline PutSnapshotBlockRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
108
110
114 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
115 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
116 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
117 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
119 inline PutSnapshotBlockRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_snapshotId;
124 bool m_snapshotIdHasBeenSet = false;
125
126 int m_blockIndex;
127 bool m_blockIndexHasBeenSet = false;
128
129
130 int m_dataLength;
131 bool m_dataLengthHasBeenSet = false;
132
133 int m_progress;
134 bool m_progressHasBeenSet = false;
135
136 Aws::String m_checksum;
137 bool m_checksumHasBeenSet = false;
138
139 ChecksumAlgorithm m_checksumAlgorithm;
140 bool m_checksumAlgorithmHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace EBS
145} // namespace Aws
AWS_EBS_API bool SignBody() const override
PutSnapshotBlockRequest & WithChecksum(const Aws::String &value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
PutSnapshotBlockRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutSnapshotBlockRequest & WithProgress(int value)
PutSnapshotBlockRequest & WithSnapshotId(const char *value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
PutSnapshotBlockRequest & WithChecksum(Aws::String &&value)
AWS_EBS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
PutSnapshotBlockRequest & WithDataLength(int value)
PutSnapshotBlockRequest & WithSnapshotId(Aws::String &&value)
PutSnapshotBlockRequest & WithBlockIndex(int value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutSnapshotBlockRequest & WithChecksum(const char *value)
PutSnapshotBlockRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutSnapshotBlockRequest & WithSnapshotId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String