/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the lightsail-2016-11-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Lightsail.Model { /// /// Describes the public SSH host keys or the RDP certificate. /// public partial class HostKeyAttributes { private string _algorithm; private string _fingerprintsha1; private string _fingerprintsha256; private DateTime? _notValidAfter; private DateTime? _notValidBefore; private string _publicKey; private DateTime? _witnessedAt; /// /// Gets and sets the property Algorithm. /// /// 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. /// /// public string Algorithm { get { return this._algorithm; } set { this._algorithm = value; } } // Check to see if Algorithm property is set internal bool IsSetAlgorithm() { return this._algorithm != null; } /// /// Gets and sets the property FingerprintSHA1. /// /// The SHA-1 fingerprint of the returned SSH host key or RDP certificate. /// /// /// public string FingerprintSHA1 { get { return this._fingerprintsha1; } set { this._fingerprintsha1 = value; } } // Check to see if FingerprintSHA1 property is set internal bool IsSetFingerprintSHA1() { return this._fingerprintsha1 != null; } /// /// Gets and sets the property FingerprintSHA256. /// /// The SHA-256 fingerprint of the returned SSH host key or RDP certificate. /// /// /// public string FingerprintSHA256 { get { return this._fingerprintsha256; } set { this._fingerprintsha256 = value; } } // Check to see if FingerprintSHA256 property is set internal bool IsSetFingerprintSHA256() { return this._fingerprintsha256 != null; } /// /// Gets and sets the property NotValidAfter. /// /// The returned RDP certificate is not valid after this point in time. /// /// /// /// This value is listed only for RDP certificates. /// /// public DateTime NotValidAfter { get { return this._notValidAfter.GetValueOrDefault(); } set { this._notValidAfter = value; } } // Check to see if NotValidAfter property is set internal bool IsSetNotValidAfter() { return this._notValidAfter.HasValue; } /// /// Gets and sets the property NotValidBefore. /// /// The returned RDP certificate is valid after this point in time. /// /// /// /// This value is listed only for RDP certificates. /// /// public DateTime NotValidBefore { get { return this._notValidBefore.GetValueOrDefault(); } set { this._notValidBefore = value; } } // Check to see if NotValidBefore property is set internal bool IsSetNotValidBefore() { return this._notValidBefore.HasValue; } /// /// Gets and sets the property PublicKey. /// /// The public SSH host key or the RDP certificate. /// /// public string PublicKey { get { return this._publicKey; } set { this._publicKey = value; } } // Check to see if PublicKey property is set internal bool IsSetPublicKey() { return this._publicKey != null; } /// /// Gets and sets the property WitnessedAt. /// /// The time that the SSH host key or RDP certificate was recorded by Lightsail. /// /// public DateTime WitnessedAt { get { return this._witnessedAt.GetValueOrDefault(); } set { this._witnessedAt = value; } } // Check to see if WitnessedAt property is set internal bool IsSetWitnessedAt() { return this._witnessedAt.HasValue; } } }