/* * 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 transfer-2018-11-05.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.Transfer.Model { /// /// The details for a server host key. /// public partial class DescribedHostKey { private string _arn; private DateTime? _dateImported; private string _description; private string _hostKeyFingerprint; private string _hostKeyId; private List _tags = new List(); private string _type; /// /// Gets and sets the property Arn. /// /// The unique Amazon Resource Name (ARN) for the host key. /// /// [AWSProperty(Required=true, Min=20, Max=1600)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property DateImported. /// /// The date on which the host key was added to the server. /// /// public DateTime DateImported { get { return this._dateImported.GetValueOrDefault(); } set { this._dateImported = value; } } // Check to see if DateImported property is set internal bool IsSetDateImported() { return this._dateImported.HasValue; } /// /// Gets and sets the property Description. /// /// The text description for this host key. /// /// [AWSProperty(Min=0, Max=200)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property HostKeyFingerprint. /// /// The public key fingerprint, which is a short sequence of bytes used to identify the /// longer public key. /// /// public string HostKeyFingerprint { get { return this._hostKeyFingerprint; } set { this._hostKeyFingerprint = value; } } // Check to see if HostKeyFingerprint property is set internal bool IsSetHostKeyFingerprint() { return this._hostKeyFingerprint != null; } /// /// Gets and sets the property HostKeyId. /// /// A unique identifier for the host key. /// /// [AWSProperty(Min=25, Max=25)] public string HostKeyId { get { return this._hostKeyId; } set { this._hostKeyId = value; } } // Check to see if HostKeyId property is set internal bool IsSetHostKeyId() { return this._hostKeyId != null; } /// /// Gets and sets the property Tags. /// /// Key-value pairs that can be used to group and search for host keys. /// /// [AWSProperty(Min=1, Max=50)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property 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 /// ///
///
public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }