AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
46 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
47 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
48 inline CompleteSnapshotRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
49 inline CompleteSnapshotRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
50 inline CompleteSnapshotRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
52
54
57 inline int GetChangedBlocksCount() const{ return m_changedBlocksCount; }
58 inline bool ChangedBlocksCountHasBeenSet() const { return m_changedBlocksCountHasBeenSet; }
59 inline void SetChangedBlocksCount(int value) { m_changedBlocksCountHasBeenSet = true; m_changedBlocksCount = value; }
60 inline CompleteSnapshotRequest& WithChangedBlocksCount(int value) { SetChangedBlocksCount(value); return *this;}
62
64
71 inline const Aws::String& GetChecksum() const{ return m_checksum; }
72 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
73 inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
74 inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
75 inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
76 inline CompleteSnapshotRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
77 inline CompleteSnapshotRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
78 inline CompleteSnapshotRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
80
82
86 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
87 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
88 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
89 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
91 inline CompleteSnapshotRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
93
95
99 inline const ChecksumAggregationMethod& GetChecksumAggregationMethod() const{ return m_checksumAggregationMethod; }
100 inline bool ChecksumAggregationMethodHasBeenSet() const { return m_checksumAggregationMethodHasBeenSet; }
101 inline void SetChecksumAggregationMethod(const ChecksumAggregationMethod& value) { m_checksumAggregationMethodHasBeenSet = true; m_checksumAggregationMethod = value; }
102 inline void SetChecksumAggregationMethod(ChecksumAggregationMethod&& value) { m_checksumAggregationMethodHasBeenSet = true; m_checksumAggregationMethod = std::move(value); }
106 private:
107
108 Aws::String m_snapshotId;
109 bool m_snapshotIdHasBeenSet = false;
110
111 int m_changedBlocksCount;
112 bool m_changedBlocksCountHasBeenSet = false;
113
114 Aws::String m_checksum;
115 bool m_checksumHasBeenSet = false;
116
117 ChecksumAlgorithm m_checksumAlgorithm;
118 bool m_checksumAlgorithmHasBeenSet = false;
119
120 ChecksumAggregationMethod m_checksumAggregationMethod;
121 bool m_checksumAggregationMethodHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EBS
126} // namespace Aws
CompleteSnapshotRequest & WithChecksum(const char *value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
CompleteSnapshotRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
void SetChecksumAggregationMethod(ChecksumAggregationMethod &&value)
CompleteSnapshotRequest & WithChecksum(Aws::String &&value)
void SetChecksumAggregationMethod(const ChecksumAggregationMethod &value)
CompleteSnapshotRequest & WithSnapshotId(const Aws::String &value)
AWS_EBS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EBS_API Aws::String SerializePayload() const override
const ChecksumAlgorithm & GetChecksumAlgorithm() const
CompleteSnapshotRequest & WithChecksum(const Aws::String &value)
CompleteSnapshotRequest & WithSnapshotId(const char *value)
const ChecksumAggregationMethod & GetChecksumAggregationMethod() const
CompleteSnapshotRequest & WithChecksumAggregationMethod(const ChecksumAggregationMethod &value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
CompleteSnapshotRequest & WithSnapshotId(Aws::String &&value)
CompleteSnapshotRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
virtual const char * GetServiceRequestName() const override
CompleteSnapshotRequest & WithChangedBlocksCount(int value)
CompleteSnapshotRequest & WithChecksumAggregationMethod(ChecksumAggregationMethod &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String