@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SshPublicKey extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the public Secure Shell (SSH) key that is associated with a Transfer Family user for the
specific file transfer protocol-enabled server (as identified by ServerId
). The information returned
includes the date the key was imported, the public key contents, and the public key ID. A user can store more than
one SSH public key associated with their user name on a specific server.
Constructor and Description |
---|
SshPublicKey() |
Modifier and Type | Method and Description |
---|---|
SshPublicKey |
clone() |
boolean |
equals(Object obj) |
Date |
getDateImported()
Specifies the date that the public key was added to the Transfer Family user.
|
String |
getSshPublicKeyBody()
Specifies the content of the SSH public key as specified by the
PublicKeyId . |
String |
getSshPublicKeyId()
Specifies the
SshPublicKeyId parameter contains the identifier of the public key. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDateImported(Date dateImported)
Specifies the date that the public key was added to the Transfer Family user.
|
void |
setSshPublicKeyBody(String sshPublicKeyBody)
Specifies the content of the SSH public key as specified by the
PublicKeyId . |
void |
setSshPublicKeyId(String sshPublicKeyId)
Specifies the
SshPublicKeyId parameter contains the identifier of the public key. |
String |
toString()
Returns a string representation of this object.
|
SshPublicKey |
withDateImported(Date dateImported)
Specifies the date that the public key was added to the Transfer Family user.
|
SshPublicKey |
withSshPublicKeyBody(String sshPublicKeyBody)
Specifies the content of the SSH public key as specified by the
PublicKeyId . |
SshPublicKey |
withSshPublicKeyId(String sshPublicKeyId)
Specifies the
SshPublicKeyId parameter contains the identifier of the public key. |
public void setDateImported(Date dateImported)
Specifies the date that the public key was added to the Transfer Family user.
dateImported
- Specifies the date that the public key was added to the Transfer Family user.public Date getDateImported()
Specifies the date that the public key was added to the Transfer Family user.
public SshPublicKey withDateImported(Date dateImported)
Specifies the date that the public key was added to the Transfer Family user.
dateImported
- Specifies the date that the public key was added to the Transfer Family user.public void setSshPublicKeyBody(String sshPublicKeyBody)
Specifies the content of the SSH public key as specified by the PublicKeyId
.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
sshPublicKeyBody
- Specifies the content of the SSH public key as specified by the PublicKeyId
.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
public String getSshPublicKeyBody()
Specifies the content of the SSH public key as specified by the PublicKeyId
.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
PublicKeyId
.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
public SshPublicKey withSshPublicKeyBody(String sshPublicKeyBody)
Specifies the content of the SSH public key as specified by the PublicKeyId
.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
sshPublicKeyBody
- Specifies the content of the SSH public key as specified by the PublicKeyId
.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
public void setSshPublicKeyId(String sshPublicKeyId)
Specifies the SshPublicKeyId
parameter contains the identifier of the public key.
sshPublicKeyId
- Specifies the SshPublicKeyId
parameter contains the identifier of the public key.public String getSshPublicKeyId()
Specifies the SshPublicKeyId
parameter contains the identifier of the public key.
SshPublicKeyId
parameter contains the identifier of the public key.public SshPublicKey withSshPublicKeyId(String sshPublicKeyId)
Specifies the SshPublicKeyId
parameter contains the identifier of the public key.
sshPublicKeyId
- Specifies the SshPublicKeyId
parameter contains the identifier of the public key.public String toString()
toString
in class Object
Object.toString()
public SshPublicKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.