/** * 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 ListChangedBlocksResult { public: AWS_EBS_API ListChangedBlocksResult(); AWS_EBS_API ListChangedBlocksResult(const Aws::AmazonWebServiceResult& result); AWS_EBS_API ListChangedBlocksResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of objects containing information about the changed blocks.

*/ inline const Aws::Vector& GetChangedBlocks() const{ return m_changedBlocks; } /** *

An array of objects containing information about the changed blocks.

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

An array of objects containing information about the changed blocks.

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

An array of objects containing information about the changed blocks.

*/ inline ListChangedBlocksResult& WithChangedBlocks(const Aws::Vector& value) { SetChangedBlocks(value); return *this;} /** *

An array of objects containing information about the changed blocks.

*/ inline ListChangedBlocksResult& WithChangedBlocks(Aws::Vector&& value) { SetChangedBlocks(std::move(value)); return *this;} /** *

An array of objects containing information about the changed blocks.

*/ inline ListChangedBlocksResult& AddChangedBlocks(const ChangedBlock& value) { m_changedBlocks.push_back(value); return *this; } /** *

An array of objects containing information about the changed blocks.

*/ inline ListChangedBlocksResult& AddChangedBlocks(ChangedBlock&& value) { m_changedBlocks.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 ListChangedBlocksResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;} /** *

The time when the BlockToken expires.

*/ inline ListChangedBlocksResult& 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 ListChangedBlocksResult& 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 ListChangedBlocksResult& 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 ListChangedBlocksResult& 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 ListChangedBlocksResult& 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 ListChangedBlocksResult& 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 ListChangedBlocksResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListChangedBlocksResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListChangedBlocksResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_changedBlocks; 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