/** * 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 ListStreams operation.

See * Also:

AWS * API Reference

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

A list of stream descriptors associated with the current account and * endpoint.

*/ inline const Aws::Vector& GetStreams() const{ return m_streams; } /** *

A list of stream descriptors associated with the current account and * endpoint.

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

A list of stream descriptors associated with the current account and * endpoint.

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

A list of stream descriptors associated with the current account and * endpoint.

*/ inline ListStreamsResult& WithStreams(const Aws::Vector& value) { SetStreams(value); return *this;} /** *

A list of stream descriptors associated with the current account and * endpoint.

*/ inline ListStreamsResult& WithStreams(Aws::Vector&& value) { SetStreams(std::move(value)); return *this;} /** *

A list of stream descriptors associated with the current account and * endpoint.

*/ inline ListStreamsResult& AddStreams(const Stream& value) { m_streams.push_back(value); return *this; } /** *

A list of stream descriptors associated with the current account and * endpoint.

*/ inline ListStreamsResult& AddStreams(Stream&& value) { m_streams.push_back(std::move(value)); return *this; } /** *

The stream ARN of the item where the operation stopped, inclusive of the * previous result set. Use this value to start a new operation, excluding this * value in the new request.

If LastEvaluatedStreamArn is * empty, then the "last page" of results has been processed and there is no more * data to be retrieved.

If LastEvaluatedStreamArn is not * empty, it does not necessarily mean that there is more data in the result set. * The only way to know when you have reached the end of the result set is when * LastEvaluatedStreamArn is empty.

*/ inline const Aws::String& GetLastEvaluatedStreamArn() const{ return m_lastEvaluatedStreamArn; } /** *

The stream ARN of the item where the operation stopped, inclusive of the * previous result set. Use this value to start a new operation, excluding this * value in the new request.

If LastEvaluatedStreamArn is * empty, then the "last page" of results has been processed and there is no more * data to be retrieved.

If LastEvaluatedStreamArn is not * empty, it does not necessarily mean that there is more data in the result set. * The only way to know when you have reached the end of the result set is when * LastEvaluatedStreamArn is empty.

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

The stream ARN of the item where the operation stopped, inclusive of the * previous result set. Use this value to start a new operation, excluding this * value in the new request.

If LastEvaluatedStreamArn is * empty, then the "last page" of results has been processed and there is no more * data to be retrieved.

If LastEvaluatedStreamArn is not * empty, it does not necessarily mean that there is more data in the result set. * The only way to know when you have reached the end of the result set is when * LastEvaluatedStreamArn is empty.

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

The stream ARN of the item where the operation stopped, inclusive of the * previous result set. Use this value to start a new operation, excluding this * value in the new request.

If LastEvaluatedStreamArn is * empty, then the "last page" of results has been processed and there is no more * data to be retrieved.

If LastEvaluatedStreamArn is not * empty, it does not necessarily mean that there is more data in the result set. * The only way to know when you have reached the end of the result set is when * LastEvaluatedStreamArn is empty.

*/ inline void SetLastEvaluatedStreamArn(const char* value) { m_lastEvaluatedStreamArn.assign(value); } /** *

The stream ARN of the item where the operation stopped, inclusive of the * previous result set. Use this value to start a new operation, excluding this * value in the new request.

If LastEvaluatedStreamArn is * empty, then the "last page" of results has been processed and there is no more * data to be retrieved.

If LastEvaluatedStreamArn is not * empty, it does not necessarily mean that there is more data in the result set. * The only way to know when you have reached the end of the result set is when * LastEvaluatedStreamArn is empty.

*/ inline ListStreamsResult& WithLastEvaluatedStreamArn(const Aws::String& value) { SetLastEvaluatedStreamArn(value); return *this;} /** *

The stream ARN of the item where the operation stopped, inclusive of the * previous result set. Use this value to start a new operation, excluding this * value in the new request.

If LastEvaluatedStreamArn is * empty, then the "last page" of results has been processed and there is no more * data to be retrieved.

If LastEvaluatedStreamArn is not * empty, it does not necessarily mean that there is more data in the result set. * The only way to know when you have reached the end of the result set is when * LastEvaluatedStreamArn is empty.

*/ inline ListStreamsResult& WithLastEvaluatedStreamArn(Aws::String&& value) { SetLastEvaluatedStreamArn(std::move(value)); return *this;} /** *

The stream ARN of the item where the operation stopped, inclusive of the * previous result set. Use this value to start a new operation, excluding this * value in the new request.

If LastEvaluatedStreamArn is * empty, then the "last page" of results has been processed and there is no more * data to be retrieved.

If LastEvaluatedStreamArn is not * empty, it does not necessarily mean that there is more data in the result set. * The only way to know when you have reached the end of the result set is when * LastEvaluatedStreamArn is empty.

*/ inline ListStreamsResult& WithLastEvaluatedStreamArn(const char* value) { SetLastEvaluatedStreamArn(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 ListStreamsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListStreamsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListStreamsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_streams; Aws::String m_lastEvaluatedStreamArn; Aws::String m_requestId; }; } // namespace Model } // namespace DynamoDBStreams } // namespace Aws