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.
Constructor and Description |
---|
SSHPublicKey() |
Modifier and Type | Method and 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.
|
public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name of the IAM user associated with the SSH public key.public SSHPublicKey withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name of the IAM user associated with the SSH public key.public String getSSHPublicKeyId()
Constraints:
Length: 20 - 128
Pattern: [\w]+
public void setSSHPublicKeyId(String sSHPublicKeyId)
Constraints:
Length: 20 - 128
Pattern: [\w]+
sSHPublicKeyId
- The unique identifier for the SSH public key.public SSHPublicKey withSSHPublicKeyId(String sSHPublicKeyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 128
Pattern: [\w]+
sSHPublicKeyId
- The unique identifier for the SSH public key.public String getFingerprint()
Constraints:
Length: 48 - 48
Pattern: [:\w]+
public void setFingerprint(String fingerprint)
Constraints:
Length: 48 - 48
Pattern: [:\w]+
fingerprint
- The MD5 message digest of the SSH public key.public SSHPublicKey withFingerprint(String fingerprint)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 48 - 48
Pattern: [:\w]+
fingerprint
- The MD5 message digest of the SSH public key.public String getSSHPublicKeyBody()
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setSSHPublicKeyBody(String sSHPublicKeyBody)
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
sSHPublicKeyBody
- The SSH public key.public SSHPublicKey withSSHPublicKeyBody(String sSHPublicKeyBody)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
sSHPublicKeyBody
- The SSH public key.public String getStatus()
Active
means the key
can be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
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(String status)
Active
means the key
can be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
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(String status)
Active
means the key
can be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
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)
Active
means the key
can be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
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)
Active
means the key
can be used for authentication with an AWS CodeCommit repository.
Inactive
means the key cannot be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
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 Date getUploadDate()
public void setUploadDate(Date uploadDate)
uploadDate
- The date and time, in ISO
8601 date-time format, when the SSH public key was uploaded.public SSHPublicKey withUploadDate(Date uploadDate)
Returns a reference to this object so that method calls can be chained together.
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 SSHPublicKey clone()
Copyright © 2015. All rights reserved.