@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportKeyPairResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ImportKeyPairResult() |
Modifier and Type | Method and Description |
---|---|
ImportKeyPairResult |
clone() |
boolean |
equals(Object obj) |
String |
getKeyFingerprint()
|
String |
getKeyName()
The key pair name that you provided.
|
String |
getKeyPairId()
The ID of the resulting key pair.
|
List<Tag> |
getTags()
The tags applied to the imported key pair.
|
int |
hashCode() |
void |
setKeyFingerprint(String keyFingerprint)
|
void |
setKeyName(String keyName)
The key pair name that you provided.
|
void |
setKeyPairId(String keyPairId)
The ID of the resulting key pair.
|
void |
setTags(Collection<Tag> tags)
The tags applied to the imported key pair.
|
String |
toString()
Returns a string representation of this object.
|
ImportKeyPairResult |
withKeyFingerprint(String keyFingerprint)
|
ImportKeyPairResult |
withKeyName(String keyName)
The key pair name that you provided.
|
ImportKeyPairResult |
withKeyPairId(String keyPairId)
The ID of the resulting key pair.
|
ImportKeyPairResult |
withTags(Collection<Tag> tags)
The tags applied to the imported key pair.
|
ImportKeyPairResult |
withTags(Tag... tags)
The tags applied to the imported key pair.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKeyFingerprint(String keyFingerprint)
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
keyFingerprint
- For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
public String getKeyFingerprint()
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
public ImportKeyPairResult withKeyFingerprint(String keyFingerprint)
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
keyFingerprint
- For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
public void setKeyName(String keyName)
The key pair name that you provided.
keyName
- The key pair name that you provided.public String getKeyName()
The key pair name that you provided.
public ImportKeyPairResult withKeyName(String keyName)
The key pair name that you provided.
keyName
- The key pair name that you provided.public void setKeyPairId(String keyPairId)
The ID of the resulting key pair.
keyPairId
- The ID of the resulting key pair.public String getKeyPairId()
The ID of the resulting key pair.
public ImportKeyPairResult withKeyPairId(String keyPairId)
The ID of the resulting key pair.
keyPairId
- The ID of the resulting key pair.public List<Tag> getTags()
The tags applied to the imported key pair.
public void setTags(Collection<Tag> tags)
The tags applied to the imported key pair.
tags
- The tags applied to the imported key pair.public ImportKeyPairResult withTags(Tag... tags)
The tags applied to the imported key pair.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags applied to the imported key pair.public ImportKeyPairResult withTags(Collection<Tag> tags)
The tags applied to the imported key pair.
tags
- The tags applied to the imported key pair.public String toString()
toString
in class Object
Object.toString()
public ImportKeyPairResult clone()