AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CompleteSnapshotRequest.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/ebs/model/ChecksumAlgorithm.h>
11#include <aws/ebs/model/ChecksumAggregationMethod.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EBS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EBS_API CompleteSnapshotRequest() = 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 "CompleteSnapshot"; }
33
34 AWS_EBS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
44 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
45 template<typename SnapshotIdT = Aws::String>
46 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
47 template<typename SnapshotIdT = Aws::String>
48 CompleteSnapshotRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
50
52
55 inline int GetChangedBlocksCount() const { return m_changedBlocksCount; }
56 inline bool ChangedBlocksCountHasBeenSet() const { return m_changedBlocksCountHasBeenSet; }
57 inline void SetChangedBlocksCount(int value) { m_changedBlocksCountHasBeenSet = true; m_changedBlocksCount = value; }
58 inline CompleteSnapshotRequest& WithChangedBlocksCount(int value) { SetChangedBlocksCount(value); return *this;}
60
62
69 inline const Aws::String& GetChecksum() const { return m_checksum; }
70 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
71 template<typename ChecksumT = Aws::String>
72 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
73 template<typename ChecksumT = Aws::String>
74 CompleteSnapshotRequest& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
76
78
82 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
83 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
84 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
87
89
93 inline ChecksumAggregationMethod GetChecksumAggregationMethod() const { return m_checksumAggregationMethod; }
94 inline bool ChecksumAggregationMethodHasBeenSet() const { return m_checksumAggregationMethodHasBeenSet; }
95 inline void SetChecksumAggregationMethod(ChecksumAggregationMethod value) { m_checksumAggregationMethodHasBeenSet = true; m_checksumAggregationMethod = value; }
98 private:
99
100 Aws::String m_snapshotId;
101 bool m_snapshotIdHasBeenSet = false;
102
103 int m_changedBlocksCount{0};
104 bool m_changedBlocksCountHasBeenSet = false;
105
106 Aws::String m_checksum;
107 bool m_checksumHasBeenSet = false;
108
110 bool m_checksumAlgorithmHasBeenSet = false;
111
113 bool m_checksumAggregationMethodHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace EBS
118} // 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