/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the public SSH host keys or the RDP certificate.See
* Also:
AWS
* API Reference
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The SSH host key algorithm or the RDP certificate format.
For SSH host
* keys, the algorithm may be ssh-rsa
,
* ecdsa-sha2-nistp256
, ssh-ed25519
, etc. For RDP
* certificates, the algorithm is always x509-cert
.
The public SSH host key or the RDP certificate.
*/ inline const Aws::String& GetPublicKey() const{ return m_publicKey; } /** *The public SSH host key or the RDP certificate.
*/ inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; } /** *The public SSH host key or the RDP certificate.
*/ inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; } /** *The public SSH host key or the RDP certificate.
*/ inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); } /** *The public SSH host key or the RDP certificate.
*/ inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); } /** *The public SSH host key or the RDP certificate.
*/ inline HostKeyAttributes& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;} /** *The public SSH host key or the RDP certificate.
*/ inline HostKeyAttributes& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;} /** *The public SSH host key or the RDP certificate.
*/ inline HostKeyAttributes& WithPublicKey(const char* value) { SetPublicKey(value); return *this;} /** *The time that the SSH host key or RDP certificate was recorded by * Lightsail.
*/ inline const Aws::Utils::DateTime& GetWitnessedAt() const{ return m_witnessedAt; } /** *The time that the SSH host key or RDP certificate was recorded by * Lightsail.
*/ inline bool WitnessedAtHasBeenSet() const { return m_witnessedAtHasBeenSet; } /** *The time that the SSH host key or RDP certificate was recorded by * Lightsail.
*/ inline void SetWitnessedAt(const Aws::Utils::DateTime& value) { m_witnessedAtHasBeenSet = true; m_witnessedAt = value; } /** *The time that the SSH host key or RDP certificate was recorded by * Lightsail.
*/ inline void SetWitnessedAt(Aws::Utils::DateTime&& value) { m_witnessedAtHasBeenSet = true; m_witnessedAt = std::move(value); } /** *The time that the SSH host key or RDP certificate was recorded by * Lightsail.
*/ inline HostKeyAttributes& WithWitnessedAt(const Aws::Utils::DateTime& value) { SetWitnessedAt(value); return *this;} /** *The time that the SSH host key or RDP certificate was recorded by * Lightsail.
*/ inline HostKeyAttributes& WithWitnessedAt(Aws::Utils::DateTime&& value) { SetWitnessedAt(std::move(value)); return *this;} /** *The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-1 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-1 SSH fingerprint:
* SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0
Example of an * SHA-1 RDP fingerprint:
* af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The SHA-256 fingerprint of the returned SSH host key or RDP certificate.
*Example of an SHA-256 SSH fingerprint:
* SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o
Example of an SHA-256 RDP fingerprint:
* 03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68
*
The returned RDP certificate is valid after this point in time.
This * value is listed only for RDP certificates.
*/ inline const Aws::Utils::DateTime& GetNotValidBefore() const{ return m_notValidBefore; } /** *The returned RDP certificate is valid after this point in time.
This * value is listed only for RDP certificates.
*/ inline bool NotValidBeforeHasBeenSet() const { return m_notValidBeforeHasBeenSet; } /** *The returned RDP certificate is valid after this point in time.
This * value is listed only for RDP certificates.
*/ inline void SetNotValidBefore(const Aws::Utils::DateTime& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = value; } /** *The returned RDP certificate is valid after this point in time.
This * value is listed only for RDP certificates.
*/ inline void SetNotValidBefore(Aws::Utils::DateTime&& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = std::move(value); } /** *The returned RDP certificate is valid after this point in time.
This * value is listed only for RDP certificates.
*/ inline HostKeyAttributes& WithNotValidBefore(const Aws::Utils::DateTime& value) { SetNotValidBefore(value); return *this;} /** *The returned RDP certificate is valid after this point in time.
This * value is listed only for RDP certificates.
*/ inline HostKeyAttributes& WithNotValidBefore(Aws::Utils::DateTime&& value) { SetNotValidBefore(std::move(value)); return *this;} /** *The returned RDP certificate is not valid after this point in time.
*This value is listed only for RDP certificates.
*/ inline const Aws::Utils::DateTime& GetNotValidAfter() const{ return m_notValidAfter; } /** *The returned RDP certificate is not valid after this point in time.
*This value is listed only for RDP certificates.
*/ inline bool NotValidAfterHasBeenSet() const { return m_notValidAfterHasBeenSet; } /** *The returned RDP certificate is not valid after this point in time.
*This value is listed only for RDP certificates.
*/ inline void SetNotValidAfter(const Aws::Utils::DateTime& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = value; } /** *The returned RDP certificate is not valid after this point in time.
*This value is listed only for RDP certificates.
*/ inline void SetNotValidAfter(Aws::Utils::DateTime&& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = std::move(value); } /** *The returned RDP certificate is not valid after this point in time.
*This value is listed only for RDP certificates.
*/ inline HostKeyAttributes& WithNotValidAfter(const Aws::Utils::DateTime& value) { SetNotValidAfter(value); return *this;} /** *The returned RDP certificate is not valid after this point in time.
*This value is listed only for RDP certificates.
*/ inline HostKeyAttributes& WithNotValidAfter(Aws::Utils::DateTime&& value) { SetNotValidAfter(std::move(value)); return *this;} private: Aws::String m_algorithm; bool m_algorithmHasBeenSet = false; Aws::String m_publicKey; bool m_publicKeyHasBeenSet = false; Aws::Utils::DateTime m_witnessedAt; bool m_witnessedAtHasBeenSet = false; Aws::String m_fingerprintSHA1; bool m_fingerprintSHA1HasBeenSet = false; Aws::String m_fingerprintSHA256; bool m_fingerprintSHA256HasBeenSet = false; Aws::Utils::DateTime m_notValidBefore; bool m_notValidBeforeHasBeenSet = false; Aws::Utils::DateTime m_notValidAfter; bool m_notValidAfterHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws