/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EBS { namespace Model { /** */ class CompleteSnapshotRequest : public EBSRequest { public: AWS_EBS_API CompleteSnapshotRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CompleteSnapshot"; } AWS_EBS_API Aws::String SerializePayload() const override; AWS_EBS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the snapshot.

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

The ID of the snapshot.

*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *

The ID of the snapshot.

*/ inline CompleteSnapshotRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The ID of the snapshot.

*/ inline CompleteSnapshotRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

The ID of the snapshot.

*/ inline CompleteSnapshotRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *

The number of blocks that were written to the snapshot.

*/ inline int GetChangedBlocksCount() const{ return m_changedBlocksCount; } /** *

The number of blocks that were written to the snapshot.

*/ inline bool ChangedBlocksCountHasBeenSet() const { return m_changedBlocksCountHasBeenSet; } /** *

The number of blocks that were written to the snapshot.

*/ inline void SetChangedBlocksCount(int value) { m_changedBlocksCountHasBeenSet = true; m_changedBlocksCount = value; } /** *

The number of blocks that were written to the snapshot.

*/ inline CompleteSnapshotRequest& WithChangedBlocksCount(int value) { SetChangedBlocksCount(value); return *this;} /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline const Aws::String& GetChecksum() const{ return m_checksum; } /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; } /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; } /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); } /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); } /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline CompleteSnapshotRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline CompleteSnapshotRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} /** *

An aggregated Base-64 SHA256 checksum based on the checksums of each written * block.

To generate the aggregated checksum using the linear aggregation * method, arrange the checksums for each written block in ascending order of their * block index, concatenate them to form a single string, and then generate the * checksum on the entire string using the SHA256 algorithm.

*/ inline CompleteSnapshotRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;} /** *

The algorithm used to generate the checksum. Currently, the only supported * algorithm is SHA256.

*/ inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; } /** *

The algorithm used to generate the checksum. Currently, the only supported * algorithm is SHA256.

*/ inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; } /** *

The algorithm used to generate the checksum. Currently, the only supported * algorithm is SHA256.

*/ inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; } /** *

The algorithm used to generate the checksum. Currently, the only supported * algorithm is SHA256.

*/ inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); } /** *

The algorithm used to generate the checksum. Currently, the only supported * algorithm is SHA256.

*/ inline CompleteSnapshotRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;} /** *

The algorithm used to generate the checksum. Currently, the only supported * algorithm is SHA256.

*/ inline CompleteSnapshotRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;} /** *

The aggregation method used to generate the checksum. Currently, the only * supported aggregation method is LINEAR.

*/ inline const ChecksumAggregationMethod& GetChecksumAggregationMethod() const{ return m_checksumAggregationMethod; } /** *

The aggregation method used to generate the checksum. Currently, the only * supported aggregation method is LINEAR.

*/ inline bool ChecksumAggregationMethodHasBeenSet() const { return m_checksumAggregationMethodHasBeenSet; } /** *

The aggregation method used to generate the checksum. Currently, the only * supported aggregation method is LINEAR.

*/ inline void SetChecksumAggregationMethod(const ChecksumAggregationMethod& value) { m_checksumAggregationMethodHasBeenSet = true; m_checksumAggregationMethod = value; } /** *

The aggregation method used to generate the checksum. Currently, the only * supported aggregation method is LINEAR.

*/ inline void SetChecksumAggregationMethod(ChecksumAggregationMethod&& value) { m_checksumAggregationMethodHasBeenSet = true; m_checksumAggregationMethod = std::move(value); } /** *

The aggregation method used to generate the checksum. Currently, the only * supported aggregation method is LINEAR.

*/ inline CompleteSnapshotRequest& WithChecksumAggregationMethod(const ChecksumAggregationMethod& value) { SetChecksumAggregationMethod(value); return *this;} /** *

The aggregation method used to generate the checksum. Currently, the only * supported aggregation method is LINEAR.

*/ inline CompleteSnapshotRequest& WithChecksumAggregationMethod(ChecksumAggregationMethod&& value) { SetChecksumAggregationMethod(std::move(value)); return *this;} private: Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; int m_changedBlocksCount; bool m_changedBlocksCountHasBeenSet = false; Aws::String m_checksum; bool m_checksumHasBeenSet = false; ChecksumAlgorithm m_checksumAlgorithm; bool m_checksumAlgorithmHasBeenSet = false; ChecksumAggregationMethod m_checksumAggregationMethod; bool m_checksumAggregationMethodHasBeenSet = false; }; } // namespace Model } // namespace EBS } // namespace Aws