/* * 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:
*
* ssh-rsa
*
* ssh-ed25519
*
* ecdsa-sha2-nistp256
*
* ecdsa-sha2-nistp384
*
* ecdsa-sha2-nistp521
*
* 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* 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:
*
* ssh-rsa
*
* ssh-ed25519
*
* ecdsa-sha2-nistp256
*
* ecdsa-sha2-nistp384
*
* ecdsa-sha2-nistp521
*
Type
parameter is specified by
* using one of the following values:
*
* ssh-rsa
*
* ssh-ed25519
*
* ecdsa-sha2-nistp256
*
* ecdsa-sha2-nistp384
*
* ecdsa-sha2-nistp521
*
* 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
*
Type
parameter is specified by
* using one of the following values:
*
* ssh-rsa
*
* ssh-ed25519
*
* ecdsa-sha2-nistp256
*
* ecdsa-sha2-nistp384
*
* ecdsa-sha2-nistp521
*
* 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
*
Type
parameter is specified by
* using one of the following values:
*
* ssh-rsa
*
* ssh-ed25519
*
* ecdsa-sha2-nistp256
*
* ecdsa-sha2-nistp384
*
* ecdsa-sha2-nistp521
*
* The date on which the host key was added to the server. *
* * @param dateImported * The date on which the host key was added to the server. */ public void setDateImported(java.util.Date dateImported) { this.dateImported = dateImported; } /** ** The date on which the host key was added to the server. *
* * @return The date on which the host key was added to the server. */ public java.util.Date getDateImported() { return this.dateImported; } /** ** The date on which the host key was added to the server. *
* * @param dateImported * The date on which the host key was added to the server. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedHostKey withDateImported(java.util.Date dateImported) { setDateImported(dateImported); return this; } /** ** Key-value pairs that can be used to group and search for host keys. *
* * @return Key-value pairs that can be used to group and search for host keys. */ public java.util.List* Key-value pairs that can be used to group and search for host keys. *
* * @param tags * Key-value pairs that can be used to group and search for host keys. */ public void setTags(java.util.Collection* Key-value pairs that can be used to group and search for host keys. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Key-value pairs that can be used to group and search for host keys. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedHostKey withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Key-value pairs that can be used to group and search for host keys. *
* * @param tags * Key-value pairs that can be used to group and search for host keys. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedHostKey withTags(java.util.Collection