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

Returns a token that you can use to call ListHostKeys again and * receive additional results, if there are any.

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

Returns a token that you can use to call ListHostKeys again and * receive additional results, if there are any.

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

Returns a token that you can use to call ListHostKeys again and * receive additional results, if there are any.

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

Returns a token that you can use to call ListHostKeys again and * receive additional results, if there are any.

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

Returns a token that you can use to call ListHostKeys again and * receive additional results, if there are any.

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

Returns a token that you can use to call ListHostKeys again and * receive additional results, if there are any.

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

Returns a token that you can use to call ListHostKeys again and * receive additional results, if there are any.

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

Returns the server identifier that contains the listed host keys.

*/ inline const Aws::String& GetServerId() const{ return m_serverId; } /** *

Returns the server identifier that contains the listed host keys.

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

Returns the server identifier that contains the listed host keys.

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

Returns the server identifier that contains the listed host keys.

*/ inline void SetServerId(const char* value) { m_serverId.assign(value); } /** *

Returns the server identifier that contains the listed host keys.

*/ inline ListHostKeysResult& WithServerId(const Aws::String& value) { SetServerId(value); return *this;} /** *

Returns the server identifier that contains the listed host keys.

*/ inline ListHostKeysResult& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;} /** *

Returns the server identifier that contains the listed host keys.

*/ inline ListHostKeysResult& WithServerId(const char* value) { SetServerId(value); return *this;} /** *

Returns an array, where each item contains the details of a host key.

*/ inline const Aws::Vector& GetHostKeys() const{ return m_hostKeys; } /** *

Returns an array, where each item contains the details of a host key.

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

Returns an array, where each item contains the details of a host key.

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

Returns an array, where each item contains the details of a host key.

*/ inline ListHostKeysResult& WithHostKeys(const Aws::Vector& value) { SetHostKeys(value); return *this;} /** *

Returns an array, where each item contains the details of a host key.

*/ inline ListHostKeysResult& WithHostKeys(Aws::Vector&& value) { SetHostKeys(std::move(value)); return *this;} /** *

Returns an array, where each item contains the details of a host key.

*/ inline ListHostKeysResult& AddHostKeys(const ListedHostKey& value) { m_hostKeys.push_back(value); return *this; } /** *

Returns an array, where each item contains the details of a host key.

*/ inline ListHostKeysResult& AddHostKeys(ListedHostKey&& value) { m_hostKeys.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 ListHostKeysResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListHostKeysResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListHostKeysResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::String m_serverId; Aws::Vector m_hostKeys; Aws::String m_requestId; }; } // namespace Model } // namespace Transfer } // namespace Aws