/** * 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 OpenSearchService { namespace Model { /** *

Contains a list of connections matching the filter criteria.

See * Also:

AWS * API Reference

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

List of outbound connections that match the filter criteria.

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

List of outbound connections that match the filter criteria.

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

List of outbound connections that match the filter criteria.

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

List of outbound connections that match the filter criteria.

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

List of outbound connections that match the filter criteria.

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

List of outbound connections that match the filter criteria.

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

List of outbound connections that match the filter criteria.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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