Class SshPublicKey
- java.lang.Object
-
- software.amazon.awssdk.services.transfer.model.SshPublicKey
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SshPublicKey.Builder,SshPublicKey>
@Generated("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 Transfer Family user 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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SshPublicKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SshPublicKey.Builder
builder()
Instant
dateImported()
Specifies the date that the public key was added to the Transfer Family user.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<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 thePublicKeyId
.String
sshPublicKeyId()
Specifies theSshPublicKeyId
parameter contains the identifier of the public key.SshPublicKey.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
dateImported
public final Instant dateImported()
Specifies the date that the public key was added to the Transfer Family user.
- Returns:
- Specifies the date that the public key was added to the Transfer Family user.
-
sshPublicKeyBody
public final String sshPublicKeyBody()
Specifies the content of the SSH public key as specified by the
PublicKeyId
.Transfer Family accepts RSA, ECDSA, and ED25519 keys.
- Returns:
- Specifies the content of the SSH public key as specified by the
PublicKeyId
.Transfer Family accepts RSA, ECDSA, and ED25519 keys.
-
sshPublicKeyId
public final String sshPublicKeyId()
Specifies the
SshPublicKeyId
parameter contains the identifier of the public key.- Returns:
- Specifies the
SshPublicKeyId
parameter contains the identifier of the public key.
-
toBuilder
public SshPublicKey.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SshPublicKey.Builder,SshPublicKey>
-
builder
public static SshPublicKey.Builder builder()
-
serializableBuilderClass
public static Class<? extends SshPublicKey.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-