/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Transfer { namespace Model { /** */ class ImportHostKeyRequest : public TransferRequest { public: AWS_TRANSFER_API ImportHostKeyRequest(); // 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 "ImportHostKey"; } AWS_TRANSFER_API Aws::String SerializePayload() const override; AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the server that contains the host key that you are * importing.

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

The identifier of the server that contains the host key that you are * importing.

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

The identifier of the server that contains the host key that you are * importing.

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

The identifier of the server that contains the host key that you are * importing.

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

The identifier of the server that contains the host key that you are * importing.

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

The identifier of the server that contains the host key that you are * importing.

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

The identifier of the server that contains the host key that you are * importing.

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

The identifier of the server that contains the host key that you are * importing.

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

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline const Aws::String& GetHostKeyBody() const{ return m_hostKeyBody; } /** *

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline bool HostKeyBodyHasBeenSet() const { return m_hostKeyBodyHasBeenSet; } /** *

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline void SetHostKeyBody(const Aws::String& value) { m_hostKeyBodyHasBeenSet = true; m_hostKeyBody = value; } /** *

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline void SetHostKeyBody(Aws::String&& value) { m_hostKeyBodyHasBeenSet = true; m_hostKeyBody = std::move(value); } /** *

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline void SetHostKeyBody(const char* value) { m_hostKeyBodyHasBeenSet = true; m_hostKeyBody.assign(value); } /** *

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline ImportHostKeyRequest& WithHostKeyBody(const Aws::String& value) { SetHostKeyBody(value); return *this;} /** *

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline ImportHostKeyRequest& WithHostKeyBody(Aws::String&& value) { SetHostKeyBody(std::move(value)); return *this;} /** *

The private key portion of an SSH key pair.

Transfer Family accepts * RSA, ECDSA, and ED25519 keys.

*/ inline ImportHostKeyRequest& WithHostKeyBody(const char* value) { SetHostKeyBody(value); return *this;} /** *

The text description that identifies this host key.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The text description that identifies this host key.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The text description that identifies this host key.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The text description that identifies this host key.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The text description that identifies this host key.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The text description that identifies this host key.

*/ inline ImportHostKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The text description that identifies this host key.

*/ inline ImportHostKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The text description that identifies this host key.

*/ inline ImportHostKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline ImportHostKeyRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline ImportHostKeyRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline ImportHostKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Key-value pairs that can be used to group and search for host keys.

*/ inline ImportHostKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_serverId; bool m_serverIdHasBeenSet = false; Aws::String m_hostKeyBody; bool m_hostKeyBodyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws