Class SSHPublicKey
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about an SSH public key.
This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey actions.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The MD5 message digest of the SSH public key.The SSH public key.The unique identifier for the SSH public key.The status of the SSH public key.The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.The name of the IAM user associated with the SSH public key.int
hashCode()
void
setFingerprint
(String fingerprint) The MD5 message digest of the SSH public key.void
setSSHPublicKeyBody
(String sSHPublicKeyBody) The SSH public key.void
setSSHPublicKeyId
(String sSHPublicKeyId) The unique identifier for the SSH public key.void
setStatus
(StatusType status) The status of the SSH public key.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withFingerprint
(String fingerprint) The MD5 message digest of the SSH public key.withSSHPublicKeyBody
(String sSHPublicKeyBody) The SSH public key.withSSHPublicKeyId
(String sSHPublicKeyId) The unique identifier for the SSH public key.withStatus
(StatusType status) The status of the SSH public key.withStatus
(String status) The status of the SSH public key.withUploadDate
(Date uploadDate) The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.withUserName
(String userName) The name of the IAM user associated with the SSH public key.
-
Constructor Details
-
SSHPublicKey
public SSHPublicKey()
-
-
Method Details
-
setUserName
The name of the IAM user associated with the SSH public key.
- Parameters:
userName
- The name of the IAM user associated with the SSH public key.
-
getUserName
The name of the IAM user associated with the SSH public key.
- Returns:
- The name of the IAM user associated with the SSH public key.
-
withUserName
The name of the IAM user associated with the SSH public key.
- Parameters:
userName
- The name of the IAM user associated with the SSH public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSSHPublicKeyId
The unique identifier for the SSH public key.
- Parameters:
sSHPublicKeyId
- The unique identifier for the SSH public key.
-
getSSHPublicKeyId
The unique identifier for the SSH public key.
- Returns:
- The unique identifier for the SSH public key.
-
withSSHPublicKeyId
The unique identifier for the SSH public key.
- Parameters:
sSHPublicKeyId
- The unique identifier for the SSH public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFingerprint
The MD5 message digest of the SSH public key.
- Parameters:
fingerprint
- The MD5 message digest of the SSH public key.
-
getFingerprint
The MD5 message digest of the SSH public key.
- Returns:
- The MD5 message digest of the SSH public key.
-
withFingerprint
The MD5 message digest of the SSH public key.
- Parameters:
fingerprint
- The MD5 message digest of the SSH public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSSHPublicKeyBody
The SSH public key.
- Parameters:
sSHPublicKeyBody
- The SSH public key.
-
getSSHPublicKeyBody
The SSH public key.
- Returns:
- The SSH public key.
-
withSSHPublicKeyBody
The SSH public key.
- Parameters:
sSHPublicKeyBody
- The SSH public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
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.- Parameters:
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.- See Also:
-
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.- Returns:
- 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. - See Also:
-
withStatus
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStatus
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.- Parameters:
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.- See Also:
-
withStatus
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setUploadDate
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
- Parameters:
uploadDate
- The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
-
getUploadDate
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
- Returns:
- The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
-
withUploadDate
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
- Parameters:
uploadDate
- The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-