/* * Copyright 2018-2023 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. */ package com.amazonaws.services.transfer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The details for a server host key. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribedHostKey implements Serializable, Cloneable, StructuredPojo { /** *

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

*/ private String arn; /** *

* A unique identifier for the host key. *

*/ private String hostKeyId; /** *

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

*/ private String hostKeyFingerprint; /** *

* The text description for this host key. *

*/ private String description; /** *

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

* */ private String type; /** *

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

*/ private java.util.Date dateImported; /** *

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

*/ private java.util.List tags; /** *

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

* * @param arn * The unique Amazon Resource Name (ARN) for the host key. */ public void setArn(String arn) { this.arn = arn; } /** *

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

* * @return The unique Amazon Resource Name (ARN) for the host key. */ public String getArn() { return this.arn; } /** *

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

* * @param arn * The unique Amazon Resource Name (ARN) for the host key. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedHostKey withArn(String arn) { setArn(arn); return this; } /** *

* A unique identifier for the host key. *

* * @param hostKeyId * A unique identifier for the host key. */ public void setHostKeyId(String hostKeyId) { this.hostKeyId = hostKeyId; } /** *

* A unique identifier for the host key. *

* * @return A unique identifier for the host key. */ public String getHostKeyId() { return this.hostKeyId; } /** *

* A unique identifier for the host key. *

* * @param hostKeyId * A unique identifier for the host key. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedHostKey withHostKeyId(String hostKeyId) { setHostKeyId(hostKeyId); return this; } /** *

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

* * @param hostKeyFingerprint * The public key fingerprint, which is a short sequence of bytes used to identify the longer public key. */ public void setHostKeyFingerprint(String hostKeyFingerprint) { this.hostKeyFingerprint = hostKeyFingerprint; } /** *

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

* * @return The public key fingerprint, which is a short sequence of bytes used to identify the longer public key. */ public String getHostKeyFingerprint() { return this.hostKeyFingerprint; } /** *

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

* * @param hostKeyFingerprint * The public key fingerprint, which is a short sequence of bytes used to identify the longer public key. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedHostKey withHostKeyFingerprint(String hostKeyFingerprint) { setHostKeyFingerprint(hostKeyFingerprint); return this; } /** *

* The text description for this host key. *

* * @param description * The text description for this host key. */ public void setDescription(String description) { this.description = description; } /** *

* The text description for this host key. *

* * @return The text description for this host key. */ public String getDescription() { return this.description; } /** *

* The text description for this host key. *

* * @param description * The text description for this host key. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedHostKey withDescription(String description) { setDescription(description); return this; } /** *

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

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

*