public class SSHPublicKey
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an SSH public key.
This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey actions.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fingerprint
The MD5 message digest of the SSH public key.
|
private java.lang.String |
sSHPublicKeyBody
The SSH public key.
|
private java.lang.String |
sSHPublicKeyId
The unique identifier for the SSH public key.
|
private java.lang.String |
status
The status of the SSH public key.
|
private java.util.Date |
uploadDate
The date and time, in ISO 8601
date-time format, when the SSH public key was uploaded.
|
private java.lang.String |
userName
The name of the IAM user associated with the SSH public key.
|
Constructor and Description |
---|
SSHPublicKey() |
Modifier and Type | Method and Description |
---|---|
SSHPublicKey |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFingerprint()
The MD5 message digest of the SSH public key.
|
java.lang.String |
getSSHPublicKeyBody()
The SSH public key.
|
java.lang.String |
getSSHPublicKeyId()
The unique identifier for the SSH public key.
|
java.lang.String |
getStatus()
The status of the SSH public key.
|
java.util.Date |
getUploadDate()
The date and time, in ISO 8601
date-time format, when the SSH public key was uploaded.
|
java.lang.String |
getUserName()
The name of the IAM user associated with the SSH public key.
|
int |
hashCode() |
void |
setFingerprint(java.lang.String fingerprint)
The MD5 message digest of the SSH public key.
|
void |
setSSHPublicKeyBody(java.lang.String sSHPublicKeyBody)
The SSH public key.
|
void |
setSSHPublicKeyId(java.lang.String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
void |
setStatus(StatusType status)
The status of the SSH public key.
|
void |
setStatus(java.lang.String status)
The status of the SSH public key.
|
void |
setUploadDate(java.util.Date uploadDate)
The date and time, in ISO 8601
date-time format, when the SSH public key was uploaded.
|
void |
setUserName(java.lang.String userName)
The name of the IAM user associated with the SSH public key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SSHPublicKey |
withFingerprint(java.lang.String fingerprint)
The MD5 message digest of the SSH public key.
|
SSHPublicKey |
withSSHPublicKeyBody(java.lang.String sSHPublicKeyBody)
The SSH public key.
|
SSHPublicKey |
withSSHPublicKeyId(java.lang.String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
SSHPublicKey |
withStatus(StatusType status)
The status of the SSH public key.
|
SSHPublicKey |
withStatus(java.lang.String status)
The status of the SSH public key.
|
SSHPublicKey |
withUploadDate(java.util.Date uploadDate)
The date and time, in ISO 8601
date-time format, when the SSH public key was uploaded.
|
SSHPublicKey |
withUserName(java.lang.String userName)
The name of the IAM user associated with the SSH public key.
|
private java.lang.String userName
The name of the IAM user associated with the SSH public key.
private java.lang.String sSHPublicKeyId
The unique identifier for the SSH public key.
private java.lang.String fingerprint
The MD5 message digest of the SSH public key.
private java.lang.String sSHPublicKeyBody
The SSH public key.
private java.lang.String status
The status of the SSH public key. Active
means the key can
be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
private java.util.Date uploadDate
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
public void setUserName(java.lang.String userName)
The name of the IAM user associated with the SSH public key.
userName
- The name of the IAM user associated with the SSH public key.public java.lang.String getUserName()
The name of the IAM user associated with the SSH public key.
public SSHPublicKey withUserName(java.lang.String userName)
The name of the IAM user associated with the SSH public key.
userName
- The name of the IAM user associated with the SSH public key.public void setSSHPublicKeyId(java.lang.String sSHPublicKeyId)
The unique identifier for the SSH public key.
sSHPublicKeyId
- The unique identifier for the SSH public key.public java.lang.String getSSHPublicKeyId()
The unique identifier for the SSH public key.
public SSHPublicKey withSSHPublicKeyId(java.lang.String sSHPublicKeyId)
The unique identifier for the SSH public key.
sSHPublicKeyId
- The unique identifier for the SSH public key.public void setFingerprint(java.lang.String fingerprint)
The MD5 message digest of the SSH public key.
fingerprint
- The MD5 message digest of the SSH public key.public java.lang.String getFingerprint()
The MD5 message digest of the SSH public key.
public SSHPublicKey withFingerprint(java.lang.String fingerprint)
The MD5 message digest of the SSH public key.
fingerprint
- The MD5 message digest of the SSH public key.public void setSSHPublicKeyBody(java.lang.String sSHPublicKeyBody)
The SSH public key.
sSHPublicKeyBody
- The SSH public key.public java.lang.String getSSHPublicKeyBody()
The SSH public key.
public SSHPublicKey withSSHPublicKeyBody(java.lang.String sSHPublicKeyBody)
The SSH public key.
sSHPublicKeyBody
- The SSH public key.public void setStatus(java.lang.String status)
The status of the SSH public key. Active
means the key can
be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
status
- The status of the SSH public key. Active
means the
key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public java.lang.String getStatus()
The status of the SSH public key. Active
means the key can
be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
Active
means the
key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public SSHPublicKey withStatus(java.lang.String status)
The status of the SSH public key. Active
means the key can
be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
status
- The status of the SSH public key. Active
means the
key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public void setStatus(StatusType status)
The status of the SSH public key. Active
means the key can
be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
status
- The status of the SSH public key. Active
means the
key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public SSHPublicKey withStatus(StatusType status)
The status of the SSH public key. Active
means the key can
be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
status
- The status of the SSH public key. Active
means the
key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public void setUploadDate(java.util.Date uploadDate)
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
uploadDate
- The date and time, in ISO
8601 date-time format, when the SSH public key was uploaded.public java.util.Date getUploadDate()
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
public SSHPublicKey withUploadDate(java.util.Date uploadDate)
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
uploadDate
- The date and time, in ISO
8601 date-time format, when the SSH public key was uploaded.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SSHPublicKey clone()
clone
in class java.lang.Object