/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Transfer { namespace Model { /** *

The details for a server host key.

See Also:

AWS * API Reference

*/ class DescribedHostKey { public: AWS_TRANSFER_API DescribedHostKey(); AWS_TRANSFER_API DescribedHostKey(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSFER_API DescribedHostKey& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline DescribedHostKey& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline DescribedHostKey& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The unique Amazon Resource Name (ARN) for the host key.

*/ inline DescribedHostKey& WithArn(const char* value) { SetArn(value); return *this;} /** *

A unique identifier for the host key.

*/ inline const Aws::String& GetHostKeyId() const{ return m_hostKeyId; } /** *

A unique identifier for the host key.

*/ inline bool HostKeyIdHasBeenSet() const { return m_hostKeyIdHasBeenSet; } /** *

A unique identifier for the host key.

*/ inline void SetHostKeyId(const Aws::String& value) { m_hostKeyIdHasBeenSet = true; m_hostKeyId = value; } /** *

A unique identifier for the host key.

*/ inline void SetHostKeyId(Aws::String&& value) { m_hostKeyIdHasBeenSet = true; m_hostKeyId = std::move(value); } /** *

A unique identifier for the host key.

*/ inline void SetHostKeyId(const char* value) { m_hostKeyIdHasBeenSet = true; m_hostKeyId.assign(value); } /** *

A unique identifier for the host key.

*/ inline DescribedHostKey& WithHostKeyId(const Aws::String& value) { SetHostKeyId(value); return *this;} /** *

A unique identifier for the host key.

*/ inline DescribedHostKey& WithHostKeyId(Aws::String&& value) { SetHostKeyId(std::move(value)); return *this;} /** *

A unique identifier for the host key.

*/ inline DescribedHostKey& WithHostKeyId(const char* value) { SetHostKeyId(value); return *this;} /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline const Aws::String& GetHostKeyFingerprint() const{ return m_hostKeyFingerprint; } /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline bool HostKeyFingerprintHasBeenSet() const { return m_hostKeyFingerprintHasBeenSet; } /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline void SetHostKeyFingerprint(const Aws::String& value) { m_hostKeyFingerprintHasBeenSet = true; m_hostKeyFingerprint = value; } /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline void SetHostKeyFingerprint(Aws::String&& value) { m_hostKeyFingerprintHasBeenSet = true; m_hostKeyFingerprint = std::move(value); } /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline void SetHostKeyFingerprint(const char* value) { m_hostKeyFingerprintHasBeenSet = true; m_hostKeyFingerprint.assign(value); } /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline DescribedHostKey& WithHostKeyFingerprint(const Aws::String& value) { SetHostKeyFingerprint(value); return *this;} /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline DescribedHostKey& WithHostKeyFingerprint(Aws::String&& value) { SetHostKeyFingerprint(std::move(value)); return *this;} /** *

The public key fingerprint, which is a short sequence of bytes used to * identify the longer public key.

*/ inline DescribedHostKey& WithHostKeyFingerprint(const char* value) { SetHostKeyFingerprint(value); return *this;} /** *

The text description for this host key.

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

The text description for this host key.

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

The text description for this host key.

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

The text description for this host key.

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

The text description for this host key.

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

The text description for this host key.

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

The text description for this host key.

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

The text description for this host key.

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

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline DescribedHostKey& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline DescribedHostKey& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The encryption algorithm that is used for the host key. The Type * parameter is specified by using one of the following values:

  • * ssh-rsa

  • ssh-ed25519

  • *
  • ecdsa-sha2-nistp256

  • * ecdsa-sha2-nistp384

  • * ecdsa-sha2-nistp521

*/ inline DescribedHostKey& WithType(const char* value) { SetType(value); return *this;} /** *

The date on which the host key was added to the server.

*/ inline const Aws::Utils::DateTime& GetDateImported() const{ return m_dateImported; } /** *

The date on which the host key was added to the server.

*/ inline bool DateImportedHasBeenSet() const { return m_dateImportedHasBeenSet; } /** *

The date on which the host key was added to the server.

*/ inline void SetDateImported(const Aws::Utils::DateTime& value) { m_dateImportedHasBeenSet = true; m_dateImported = value; } /** *

The date on which the host key was added to the server.

*/ inline void SetDateImported(Aws::Utils::DateTime&& value) { m_dateImportedHasBeenSet = true; m_dateImported = std::move(value); } /** *

The date on which the host key was added to the server.

*/ inline DescribedHostKey& WithDateImported(const Aws::Utils::DateTime& value) { SetDateImported(value); return *this;} /** *

The date on which the host key was added to the server.

*/ inline DescribedHostKey& WithDateImported(Aws::Utils::DateTime&& value) { SetDateImported(std::move(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 DescribedHostKey& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

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

*/ inline DescribedHostKey& 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 DescribedHostKey& 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 DescribedHostKey& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_hostKeyId; bool m_hostKeyIdHasBeenSet = false; Aws::String m_hostKeyFingerprint; bool m_hostKeyFingerprintHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_dateImported; bool m_dateImportedHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws