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 interfaceSshPublicKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SshPublicKey.Builderbuilder()InstantdateImported()Specifies the date that the public key was added to the Transfer Family user.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SshPublicKey.Builder>serializableBuilderClass()StringsshPublicKeyBody()Specifies the content of the SSH public key as specified by thePublicKeyId.StringsshPublicKeyId()Specifies theSshPublicKeyIdparameter contains the identifier of the public key.SshPublicKey.BuildertoBuilder()StringtoString()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
SshPublicKeyIdparameter contains the identifier of the public key.- Returns:
- Specifies the
SshPublicKeyIdparameter contains the identifier of the public key.
-
toBuilder
public SshPublicKey.Builder toBuilder()
- Specified by:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-