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

When you can get additional results from the ListServers * operation, a NextToken parameter is returned in the output. In a * following command, you can pass in the NextToken parameter to * continue listing additional servers.

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

When you can get additional results from the ListServers * operation, a NextToken parameter is returned in the output. In a * following command, you can pass in the NextToken parameter to * continue listing additional servers.

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

When you can get additional results from the ListServers * operation, a NextToken parameter is returned in the output. In a * following command, you can pass in the NextToken parameter to * continue listing additional servers.

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

When you can get additional results from the ListServers * operation, a NextToken parameter is returned in the output. In a * following command, you can pass in the NextToken parameter to * continue listing additional servers.

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

When you can get additional results from the ListServers * operation, a NextToken parameter is returned in the output. In a * following command, you can pass in the NextToken parameter to * continue listing additional servers.

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

When you can get additional results from the ListServers * operation, a NextToken parameter is returned in the output. In a * following command, you can pass in the NextToken parameter to * continue listing additional servers.

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

When you can get additional results from the ListServers * operation, a NextToken parameter is returned in the output. In a * following command, you can pass in the NextToken parameter to * continue listing additional servers.

*/ inline ListServersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

An array of servers that were listed.

*/ inline const Aws::Vector& GetServers() const{ return m_servers; } /** *

An array of servers that were listed.

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

An array of servers that were listed.

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

An array of servers that were listed.

*/ inline ListServersResult& WithServers(const Aws::Vector& value) { SetServers(value); return *this;} /** *

An array of servers that were listed.

*/ inline ListServersResult& WithServers(Aws::Vector&& value) { SetServers(std::move(value)); return *this;} /** *

An array of servers that were listed.

*/ inline ListServersResult& AddServers(const ListedServer& value) { m_servers.push_back(value); return *this; } /** *

An array of servers that were listed.

*/ inline ListServersResult& AddServers(ListedServer&& value) { m_servers.push_back(std::move(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 ListServersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListServersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListServersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_servers; Aws::String m_requestId; }; } // namespace Model } // namespace Transfer } // namespace Aws