/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Transfer { namespace Model { /** */ class ListHostKeysRequest : public TransferRequest { public: AWS_TRANSFER_API ListHostKeysRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListHostKeys"; } AWS_TRANSFER_API Aws::String SerializePayload() const override; AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The maximum number of host keys to return.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of host keys to return.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of host keys to return.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of host keys to return.

*/ inline ListHostKeysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

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

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

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

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

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

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

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

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

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

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

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

When there are additional results that were not returned, a * NextToken parameter is returned. You can use that value for a * subsequent call to ListHostKeys to continue listing results.

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

The identifier of the server that contains the host keys that you want to * view.

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

The identifier of the server that contains the host keys that you want to * view.

*/ inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; } /** *

The identifier of the server that contains the host keys that you want to * view.

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

The identifier of the server that contains the host keys that you want to * view.

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

The identifier of the server that contains the host keys that you want to * view.

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

The identifier of the server that contains the host keys that you want to * view.

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

The identifier of the server that contains the host keys that you want to * view.

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

The identifier of the server that contains the host keys that you want to * view.

*/ inline ListHostKeysRequest& WithServerId(const char* value) { SetServerId(value); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_serverId; bool m_serverIdHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws