public class SSHPublicKeyMetadata
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an SSH public key, without the key's body or fingerprint.
This data type is used as a response element in the ListSSHPublicKeys action.
Modifier and Type | Field and Description |
---|---|
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 |
---|
SSHPublicKeyMetadata() |
Modifier and Type | Method and Description |
---|---|
SSHPublicKeyMetadata |
clone() |
boolean |
equals(java.lang.Object obj) |
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 |
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.
|
SSHPublicKeyMetadata |
withSSHPublicKeyId(java.lang.String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
SSHPublicKeyMetadata |
withStatus(StatusType status)
The status of the SSH public key.
|
SSHPublicKeyMetadata |
withStatus(java.lang.String status)
The status of the SSH public key.
|
SSHPublicKeyMetadata |
withUploadDate(java.util.Date uploadDate)
The date and time, in ISO 8601
date-time format, when the SSH public key was uploaded.
|
SSHPublicKeyMetadata |
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 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 SSHPublicKeyMetadata 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 SSHPublicKeyMetadata withSSHPublicKeyId(java.lang.String sSHPublicKeyId)
The unique identifier for the SSH public key.
sSHPublicKeyId
- The unique identifier for 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 SSHPublicKeyMetadata 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 SSHPublicKeyMetadata 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 SSHPublicKeyMetadata 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 SSHPublicKeyMetadata clone()
clone
in class java.lang.Object