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

A list of connections and the details for each connection, such as status, * owner, and provider type.

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

A list of connections and the details for each connection, such as status, * owner, and provider type.

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

A list of connections and the details for each connection, such as status, * owner, and provider type.

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

A list of connections and the details for each connection, such as status, * owner, and provider type.

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

A list of connections and the details for each connection, such as status, * owner, and provider type.

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

A list of connections and the details for each connection, such as status, * owner, and provider type.

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

A list of connections and the details for each connection, such as status, * owner, and provider type.

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

A token that can be used in the next ListConnections call. To * view all items in the list, continue to call this operation with each subsequent * token until no more nextToken values are returned.

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

A token that can be used in the next ListConnections call. To * view all items in the list, continue to call this operation with each subsequent * token until no more nextToken values are returned.

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

A token that can be used in the next ListConnections call. To * view all items in the list, continue to call this operation with each subsequent * token until no more nextToken values are returned.

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

A token that can be used in the next ListConnections call. To * view all items in the list, continue to call this operation with each subsequent * token until no more nextToken values are returned.

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

A token that can be used in the next ListConnections call. To * view all items in the list, continue to call this operation with each subsequent * token until no more nextToken values are returned.

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

A token that can be used in the next ListConnections call. To * view all items in the list, continue to call this operation with each subsequent * token until no more nextToken values are returned.

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

A token that can be used in the next ListConnections call. To * view all items in the list, continue to call this operation with each subsequent * token until no more nextToken values are returned.

*/ 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 CodeStarconnections } // namespace Aws