@Generated(value="software.amazon.awssdk:codegen") public final class SshPublicKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SshPublicKey.Builder,SshPublicKey>
Provides information about the public Secure Shell (SSH) key that is associated with a user account for the specific
file transfer protocol-enabled server (as identified by ServerId
). The information returned includes the
date the key was imported, the public key contents, and the public key ID. A user can store more than one SSH public
key associated with their user name on a specific server.
Modifier and Type | Class and Description |
---|---|
static interface |
SshPublicKey.Builder |
Modifier and Type | Method and Description |
---|---|
static SshPublicKey.Builder |
builder() |
Instant |
dateImported()
Specifies the date that the public key was added to the user account.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SshPublicKey.Builder> |
serializableBuilderClass() |
String |
sshPublicKeyBody()
Specifies the content of the SSH public key as specified by the
PublicKeyId . |
String |
sshPublicKeyId()
Specifies the
SshPublicKeyId parameter contains the identifier of the public key. |
SshPublicKey.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final Instant dateImported()
Specifies the date that the public key was added to the user account.
public final String sshPublicKeyBody()
Specifies the content of the SSH public key as specified by the PublicKeyId
.
PublicKeyId
.public final String sshPublicKeyId()
Specifies the SshPublicKeyId
parameter contains the identifier of the public key.
SshPublicKeyId
parameter contains the identifier of the public key.public SshPublicKey.Builder toBuilder()
ToCopyableBuilder
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)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()