@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 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 user account.
|
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 user account.
|
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 user account.
|
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 user account.
dateImported
- Specifies the date that the public key was added to the user account.public Date getDateImported()
Specifies the date that the public key was added to the user account.
public SshPublicKey withDateImported(Date dateImported)
Specifies the date that the public key was added to the user account.
dateImported
- Specifies the date that the public key was added to the user account.public void setSshPublicKeyBody(String sshPublicKeyBody)
Specifies the content of the SSH public key as specified by the PublicKeyId
.
sshPublicKeyBody
- Specifies the content of the SSH public key as specified by the PublicKeyId
.public String getSshPublicKeyBody()
Specifies the content of the SSH public key as specified by the PublicKeyId
.
PublicKeyId
.public SshPublicKey withSshPublicKeyBody(String sshPublicKeyBody)
Specifies the content of the SSH public key as specified by the PublicKeyId
.
sshPublicKeyBody
- Specifies the content of the SSH public key as specified by the PublicKeyId
.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.