/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DynamoDBStreams { namespace Model { /** *

Represents the output of a GetRecords operation.

See * Also:

AWS * API Reference

*/ class GetRecordsResult { public: AWS_DYNAMODBSTREAMS_API GetRecordsResult(); AWS_DYNAMODBSTREAMS_API GetRecordsResult(const Aws::AmazonWebServiceResult& result); AWS_DYNAMODBSTREAMS_API GetRecordsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The stream records from the shard, which were retrieved using the shard * iterator.

*/ inline const Aws::Vector& GetRecords() const{ return m_records; } /** *

The stream records from the shard, which were retrieved using the shard * iterator.

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

The stream records from the shard, which were retrieved using the shard * iterator.

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

The stream records from the shard, which were retrieved using the shard * iterator.

*/ inline GetRecordsResult& WithRecords(const Aws::Vector& value) { SetRecords(value); return *this;} /** *

The stream records from the shard, which were retrieved using the shard * iterator.

*/ inline GetRecordsResult& WithRecords(Aws::Vector&& value) { SetRecords(std::move(value)); return *this;} /** *

The stream records from the shard, which were retrieved using the shard * iterator.

*/ inline GetRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; } /** *

The stream records from the shard, which were retrieved using the shard * iterator.

*/ inline GetRecordsResult& AddRecords(Record&& value) { m_records.push_back(std::move(value)); return *this; } /** *

The next position in the shard from which to start sequentially reading * stream records. If set to null, the shard has been closed and the * requested iterator will not return any more data.

*/ inline const Aws::String& GetNextShardIterator() const{ return m_nextShardIterator; } /** *

The next position in the shard from which to start sequentially reading * stream records. If set to null, the shard has been closed and the * requested iterator will not return any more data.

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

The next position in the shard from which to start sequentially reading * stream records. If set to null, the shard has been closed and the * requested iterator will not return any more data.

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

The next position in the shard from which to start sequentially reading * stream records. If set to null, the shard has been closed and the * requested iterator will not return any more data.

*/ inline void SetNextShardIterator(const char* value) { m_nextShardIterator.assign(value); } /** *

The next position in the shard from which to start sequentially reading * stream records. If set to null, the shard has been closed and the * requested iterator will not return any more data.

*/ inline GetRecordsResult& WithNextShardIterator(const Aws::String& value) { SetNextShardIterator(value); return *this;} /** *

The next position in the shard from which to start sequentially reading * stream records. If set to null, the shard has been closed and the * requested iterator will not return any more data.

*/ inline GetRecordsResult& WithNextShardIterator(Aws::String&& value) { SetNextShardIterator(std::move(value)); return *this;} /** *

The next position in the shard from which to start sequentially reading * stream records. If set to null, the shard has been closed and the * requested iterator will not return any more data.

*/ inline GetRecordsResult& WithNextShardIterator(const char* value) { SetNextShardIterator(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 GetRecordsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRecordsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRecordsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_records; Aws::String m_nextShardIterator; Aws::String m_requestId; }; } // namespace Model } // namespace DynamoDBStreams } // namespace Aws