@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 user account for a specific
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 SFTP server.
Constructor and Description |
---|
SshPublicKey() |
Modifier and Type | Method and Description |
---|---|
SshPublicKey |
clone() |
boolean |
equals(Object obj) |
Date |
getDateImported()
The date that the public key was added to the user account.
|
String |
getSshPublicKeyBody()
The content of the SSH public key as specified by the
PublicKeyId . |
String |
getSshPublicKeyId()
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)
The date that the public key was added to the user account.
|
void |
setSshPublicKeyBody(String sshPublicKeyBody)
The content of the SSH public key as specified by the
PublicKeyId . |
void |
setSshPublicKeyId(String sshPublicKeyId)
The
SshPublicKeyId parameter contains the identifier of the public key. |
String |
toString()
Returns a string representation of this object.
|
SshPublicKey |
withDateImported(Date dateImported)
The date that the public key was added to the user account.
|
SshPublicKey |
withSshPublicKeyBody(String sshPublicKeyBody)
The content of the SSH public key as specified by the
PublicKeyId . |
SshPublicKey |
withSshPublicKeyId(String sshPublicKeyId)
The
SshPublicKeyId parameter contains the identifier of the public key. |
public void setDateImported(Date dateImported)
The date that the public key was added to the user account.
dateImported
- The date that the public key was added to the user account.public Date getDateImported()
The date that the public key was added to the user account.
public SshPublicKey withDateImported(Date dateImported)
The date that the public key was added to the user account.
dateImported
- The date that the public key was added to the user account.public void setSshPublicKeyBody(String sshPublicKeyBody)
The content of the SSH public key as specified by the PublicKeyId
.
sshPublicKeyBody
- The content of the SSH public key as specified by the PublicKeyId
.public String getSshPublicKeyBody()
The content of the SSH public key as specified by the PublicKeyId
.
PublicKeyId
.public SshPublicKey withSshPublicKeyBody(String sshPublicKeyBody)
The content of the SSH public key as specified by the PublicKeyId
.
sshPublicKeyBody
- The content of the SSH public key as specified by the PublicKeyId
.public void setSshPublicKeyId(String sshPublicKeyId)
The SshPublicKeyId
parameter contains the identifier of the public key.
sshPublicKeyId
- The SshPublicKeyId
parameter contains the identifier of the public key.public String getSshPublicKeyId()
The SshPublicKeyId
parameter contains the identifier of the public key.
SshPublicKeyId
parameter contains the identifier of the public key.public SshPublicKey withSshPublicKeyId(String sshPublicKeyId)
The SshPublicKeyId
parameter contains the identifier of the public key.
sshPublicKeyId
- 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.