@Generated(value="software.amazon.awssdk:codegen") public final class SSHPublicKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SSHPublicKey.Builder,SSHPublicKey>
Contains information about an SSH public key.
This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey operations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SSHPublicKey.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SSHPublicKey.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fingerprint()
The MD5 message digest of the SSH public key.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SSHPublicKey.Builder> |
serializableBuilderClass() |
String |
sshPublicKeyBody()
The SSH public key.
|
String |
sshPublicKeyId()
The unique identifier for the SSH public key.
|
StatusType |
status()
The status of the SSH public key.
|
String |
statusAsString()
The status of the SSH public key.
|
SSHPublicKey.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
uploadDate()
The date and time, in ISO 8601 date-time format, when the SSH public
key was uploaded.
|
String |
userName()
The name of the IAM user associated with the SSH public key.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String userName()
The name of the IAM user associated with the SSH public key.
public final String sshPublicKeyId()
The unique identifier for the SSH public key.
public final String fingerprint()
The MD5 message digest of the SSH public key.
public final String sshPublicKeyBody()
The SSH public key.
public final 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.
If the service returns an enum value that is not available in the current SDK version, status will
return StatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Active means that the key can be used for authentication
with an CodeCommit repository. Inactive means that the key cannot be used.StatusTypepublic final String statusAsString()
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.
If the service returns an enum value that is not available in the current SDK version, status will
return StatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Active means that the key can be used for authentication
with an CodeCommit repository. Inactive means that the key cannot be used.StatusTypepublic final Instant uploadDate()
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
public SSHPublicKey.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SSHPublicKey.Builder,SSHPublicKey>public static SSHPublicKey.Builder builder()
public static Class<? extends SSHPublicKey.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.