/** * 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 CloudWatchEvents { namespace Model { class ListConnectionsResult { public: AWS_CLOUDWATCHEVENTS_API ListConnectionsResult(); AWS_CLOUDWATCHEVENTS_API ListConnectionsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHEVENTS_API ListConnectionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of connections objects that include details about the * connections.

*/ inline const Aws::Vector& GetConnections() const{ return m_connections; } /** *

An array of connections objects that include details about the * connections.

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

An array of connections objects that include details about the * connections.

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

An array of connections objects that include details about the * connections.

*/ inline ListConnectionsResult& WithConnections(const Aws::Vector& value) { SetConnections(value); return *this;} /** *

An array of connections objects that include details about the * connections.

*/ inline ListConnectionsResult& WithConnections(Aws::Vector&& value) { SetConnections(std::move(value)); return *this;} /** *

An array of connections objects that include details about the * connections.

*/ inline ListConnectionsResult& AddConnections(const Connection& value) { m_connections.push_back(value); return *this; } /** *

An array of connections objects that include details about the * connections.

*/ inline ListConnectionsResult& AddConnections(Connection&& value) { m_connections.push_back(std::move(value)); return *this; } /** *

A token you can use in a subsequent request to retrieve the next set of * results.

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

A token you can use in a subsequent request to retrieve the next set of * results.

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

A token you can use in a subsequent request to retrieve the next set of * results.

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

A token you can use in a subsequent request to retrieve the next set of * results.

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

A token you can use in a subsequent request to retrieve the next set of * results.

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

A token you can use in a subsequent request to retrieve the next set of * results.

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

A token you can use in a subsequent request to retrieve the next set of * results.

*/ inline ListConnectionsResult& 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 ListConnectionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListConnectionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListConnectionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_connections; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws