/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EBS { namespace Model { class ListSnapshotBlocksResult { public: AWS_EBS_API ListSnapshotBlocksResult(); AWS_EBS_API ListSnapshotBlocksResult(const Aws::AmazonWebServiceResult& result); AWS_EBS_API ListSnapshotBlocksResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of objects containing information about the blocks.

*/ inline const Aws::Vector& GetBlocks() const{ return m_blocks; } /** *

An array of objects containing information about the blocks.

*/ inline void SetBlocks(const Aws::Vector& value) { m_blocks = value; } /** *

An array of objects containing information about the blocks.

*/ inline void SetBlocks(Aws::Vector&& value) { m_blocks = std::move(value); } /** *

An array of objects containing information about the blocks.

*/ inline ListSnapshotBlocksResult& WithBlocks(const Aws::Vector& value) { SetBlocks(value); return *this;} /** *

An array of objects containing information about the blocks.

*/ inline ListSnapshotBlocksResult& WithBlocks(Aws::Vector&& value) { SetBlocks(std::move(value)); return *this;} /** *

An array of objects containing information about the blocks.

*/ inline ListSnapshotBlocksResult& AddBlocks(const Block& value) { m_blocks.push_back(value); return *this; } /** *

An array of objects containing information about the blocks.

*/ inline ListSnapshotBlocksResult& AddBlocks(Block&& value) { m_blocks.push_back(std::move(value)); return *this; } /** *

The time when the BlockToken expires.

*/ inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; } /** *

The time when the BlockToken expires.

*/ inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTime = value; } /** *

The time when the BlockToken expires.

*/ inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTime = std::move(value); } /** *

The time when the BlockToken expires.

*/ inline ListSnapshotBlocksResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;} /** *

The time when the BlockToken expires.

*/ inline ListSnapshotBlocksResult& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;} /** *

The size of the volume in GB.

*/ inline long long GetVolumeSize() const{ return m_volumeSize; } /** *

The size of the volume in GB.

*/ inline void SetVolumeSize(long long value) { m_volumeSize = value; } /** *

The size of the volume in GB.

*/ inline ListSnapshotBlocksResult& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;} /** *

The size of the blocks in the snapshot, in bytes.

*/ inline int GetBlockSize() const{ return m_blockSize; } /** *

The size of the blocks in the snapshot, in bytes.

*/ inline void SetBlockSize(int value) { m_blockSize = value; } /** *

The size of the blocks in the snapshot, in bytes.

*/ inline ListSnapshotBlocksResult& WithBlockSize(int value) { SetBlockSize(value); return *this;} /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline ListSnapshotBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline ListSnapshotBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline ListSnapshotBlocksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListSnapshotBlocksResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListSnapshotBlocksResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListSnapshotBlocksResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_blocks; Aws::Utils::DateTime m_expiryTime; long long m_volumeSize; int m_blockSize; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace EBS } // namespace Aws