Class SSHPublicKey
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.SSHPublicKey
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SSHPublicKey extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SSHPublicKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSHPublicKey
clone()
boolean
equals(Object obj)
String
getFingerprint()
The MD5 message digest of the SSH public key.String
getSSHPublicKeyBody()
The SSH public key.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
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
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; useful for testing and debugging.SSHPublicKey
withFingerprint(String fingerprint)
The MD5 message digest of the SSH public key.SSHPublicKey
withSSHPublicKeyBody(String sSHPublicKeyBody)
The SSH public key.SSHPublicKey
withSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.SSHPublicKey
withStatus(StatusType status)
The status of the SSH public key.SSHPublicKey
withStatus(String status)
The status of the SSH public key.SSHPublicKey
withUploadDate(Date uploadDate)
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.SSHPublicKey
withUserName(String userName)
The name of the IAM user associated with the SSH public key.
-
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
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
public String 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
public SSHPublicKey withUserName(String userName)
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
public void setSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
- Parameters:
sSHPublicKeyId
- The unique identifier for the SSH public key.
-
getSSHPublicKeyId
public String getSSHPublicKeyId()
The unique identifier for the SSH public key.
- Returns:
- The unique identifier for the SSH public key.
-
withSSHPublicKeyId
public SSHPublicKey withSSHPublicKeyId(String sSHPublicKeyId)
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
public void setFingerprint(String fingerprint)
The MD5 message digest of the SSH public key.
- Parameters:
fingerprint
- The MD5 message digest of the SSH public key.
-
getFingerprint
public String getFingerprint()
The MD5 message digest of the SSH public key.
- Returns:
- The MD5 message digest of the SSH public key.
-
withFingerprint
public SSHPublicKey withFingerprint(String fingerprint)
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
public void setSSHPublicKeyBody(String sSHPublicKeyBody)
The SSH public key.
- Parameters:
sSHPublicKeyBody
- The SSH public key.
-
getSSHPublicKeyBody
public String getSSHPublicKeyBody()
The SSH public key.
- Returns:
- The SSH public key.
-
withSSHPublicKeyBody
public SSHPublicKey withSSHPublicKeyBody(String sSHPublicKeyBody)
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
public void setStatus(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.- 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:
StatusType
-
getStatus
public 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.- 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:
StatusType
-
withStatus
public SSHPublicKey withStatus(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.- 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:
StatusType
-
setStatus
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.- 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:
StatusType
-
withStatus
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.- 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:
StatusType
-
setUploadDate
public void setUploadDate(Date uploadDate)
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
public Date 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
public SSHPublicKey withUploadDate(Date uploadDate)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SSHPublicKey clone()
-
-