@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SSHPublicKeyMetadata extends Object implements Serializable, 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 operation.
Constructor and Description |
---|
SSHPublicKeyMetadata() |
Modifier and Type | Method and Description |
---|---|
SSHPublicKeyMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getSSHPublicKeyId()
The unique identifier for the SSH public key.
|
String |
getStatus()
The status of the SSH public key.
|
Date |
getUploadDate()
The date and time, in ISO 8601 date-time format, when the SSH public
key was uploaded.
|
String |
getUserName()
The name of the IAM user associated with the SSH public key.
|
int |
hashCode() |
void |
setSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
void |
setStatus(StatusType status)
The status of the SSH public key.
|
void |
setStatus(String status)
The status of the SSH public key.
|
void |
setUploadDate(Date uploadDate)
The date and time, in ISO 8601 date-time format, when the SSH public
key was uploaded.
|
void |
setUserName(String userName)
The name of the IAM user associated with the SSH public key.
|
String |
toString()
Returns a string representation of this object.
|
SSHPublicKeyMetadata |
withSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
SSHPublicKeyMetadata |
withStatus(StatusType status)
The status of the SSH public key.
|
SSHPublicKeyMetadata |
withStatus(String status)
The status of the SSH public key.
|
SSHPublicKeyMetadata |
withUploadDate(Date uploadDate)
The date and time, in ISO 8601 date-time format, when the SSH public
key was uploaded.
|
SSHPublicKeyMetadata |
withUserName(String userName)
The name of the IAM user associated with the SSH public key.
|
public void setUserName(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 String getUserName()
The name of the IAM user associated with the SSH public key.
public SSHPublicKeyMetadata withUserName(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(String sSHPublicKeyId)
The unique identifier for the SSH public key.
sSHPublicKeyId
- The unique identifier for the SSH public key.public String getSSHPublicKeyId()
The unique identifier for the SSH public key.
public SSHPublicKeyMetadata withSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
sSHPublicKeyId
- The unique identifier for the SSH public key.public void setStatus(String status)
The status of the SSH public key. Active
means that the key can be used for authentication with an
CodeCommit repository. Inactive
means that the key cannot be used.
status
- The status of the SSH public key. Active
means that the key can be used for authentication
with an CodeCommit repository. Inactive
means that the key cannot be used.StatusType
public String getStatus()
The status of the SSH public key. Active
means that the key can be used for authentication with an
CodeCommit repository. Inactive
means that the key cannot be used.
Active
means that the key can be used for authentication
with an CodeCommit repository. Inactive
means that the key cannot be used.StatusType
public SSHPublicKeyMetadata withStatus(String status)
The status of the SSH public key. Active
means that the key can be used for authentication with an
CodeCommit repository. Inactive
means that the key cannot be used.
status
- The status of the SSH public key. Active
means that the key can be used for authentication
with an CodeCommit repository. Inactive
means that the key cannot be used.StatusType
public void setStatus(StatusType status)
The status of the SSH public key. Active
means that the key can be used for authentication with an
CodeCommit repository. Inactive
means that the key cannot be used.
status
- The status of the SSH public key. Active
means that the key can be used for authentication
with an CodeCommit repository. Inactive
means that the key cannot be used.StatusType
public SSHPublicKeyMetadata withStatus(StatusType status)
The status of the SSH public key. Active
means that the key can be used for authentication with an
CodeCommit repository. Inactive
means that the key cannot be used.
status
- The status of the SSH public key. Active
means that the key can be used for authentication
with an CodeCommit repository. Inactive
means that the key cannot be used.StatusType
public void setUploadDate(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 Date getUploadDate()
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
public SSHPublicKeyMetadata withUploadDate(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 String toString()
toString
in class Object
Object.toString()
public SSHPublicKeyMetadata clone()