AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CompleteSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ebs/EBSRequest.h>
9#include <aws/ebs/EBS_EXPORTS.h>
10#include <aws/ebs/model/ChecksumAggregationMethod.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 CompleteSnapshotRequest() = 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 "CompleteSnapshot"; }
30
31 AWS_EBS_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
40 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
41 template <typename SnapshotIdT = Aws::String>
42 void SetSnapshotId(SnapshotIdT&& value) {
43 m_snapshotIdHasBeenSet = true;
44 m_snapshotId = std::forward<SnapshotIdT>(value);
45 }
46 template <typename SnapshotIdT = Aws::String>
48 SetSnapshotId(std::forward<SnapshotIdT>(value));
49 return *this;
50 }
52
54
57 inline int GetChangedBlocksCount() const { return m_changedBlocksCount; }
58 inline bool ChangedBlocksCountHasBeenSet() const { return m_changedBlocksCountHasBeenSet; }
59 inline void SetChangedBlocksCount(int value) {
60 m_changedBlocksCountHasBeenSet = true;
61 m_changedBlocksCount = value;
62 }
65 return *this;
66 }
68
70
77 inline const Aws::String& GetChecksum() const { return m_checksum; }
78 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
79 template <typename ChecksumT = Aws::String>
80 void SetChecksum(ChecksumT&& value) {
81 m_checksumHasBeenSet = true;
82 m_checksum = std::forward<ChecksumT>(value);
83 }
84 template <typename ChecksumT = Aws::String>
86 SetChecksum(std::forward<ChecksumT>(value));
87 return *this;
88 }
90
92
96 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
97 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
99 m_checksumAlgorithmHasBeenSet = true;
100 m_checksumAlgorithm = value;
101 }
104 return *this;
105 }
107
109
113 inline ChecksumAggregationMethod GetChecksumAggregationMethod() const { return m_checksumAggregationMethod; }
114 inline bool ChecksumAggregationMethodHasBeenSet() const { return m_checksumAggregationMethodHasBeenSet; }
116 m_checksumAggregationMethodHasBeenSet = true;
117 m_checksumAggregationMethod = value;
118 }
121 return *this;
122 }
124 private:
125 Aws::String m_snapshotId;
126
127 int m_changedBlocksCount{0};
128
129 Aws::String m_checksum;
130
132
134 bool m_snapshotIdHasBeenSet = false;
135 bool m_changedBlocksCountHasBeenSet = false;
136 bool m_checksumHasBeenSet = false;
137 bool m_checksumAlgorithmHasBeenSet = false;
138 bool m_checksumAggregationMethodHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace EBS
143} // namespace Aws
ChecksumAggregationMethod GetChecksumAggregationMethod() const
void SetChecksumAggregationMethod(ChecksumAggregationMethod value)
CompleteSnapshotRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_EBS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EBS_API Aws::String SerializePayload() const override
CompleteSnapshotRequest & WithChecksumAggregationMethod(ChecksumAggregationMethod value)
void SetChecksumAlgorithm(ChecksumAlgorithm value)
CompleteSnapshotRequest & WithChecksum(ChecksumT &&value)
AWS_EBS_API CompleteSnapshotRequest()=default
virtual const char * GetServiceRequestName() const override
CompleteSnapshotRequest & WithSnapshotId(SnapshotIdT &&value)
CompleteSnapshotRequest & WithChangedBlocksCount(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String