Class SSHPublicKeyMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.iam.model.SSHPublicKeyMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SSHPublicKeyMetadata.Builder,SSHPublicKeyMetadata>
@Generated("software.amazon.awssdk:codegen") public final class SSHPublicKeyMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SSHPublicKeyMetadata.Builder,SSHPublicKeyMetadata>
Contains information about an SSH public key, without the key's body or fingerprint.
This data type is used as a response element in the ListSSHPublicKeys operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSSHPublicKeyMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SSHPublicKeyMetadata.Builderbuilder()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 SSHPublicKeyMetadata.Builder>serializableBuilderClass()StringsshPublicKeyId()The unique identifier for the SSH public key.StatusTypestatus()The status of the SSH public key.StringstatusAsString()The status of the SSH public key.SSHPublicKeyMetadata.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantuploadDate()The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.StringuserName()The name of the IAM user associated with the SSH public key.-
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
-
userName
public final String userName()
The name of the IAM user associated with the SSH public key.
- Returns:
- The name of the IAM user associated with the SSH public key.
-
sshPublicKeyId
public final String sshPublicKeyId()
The unique identifier for the SSH public key.
- Returns:
- The unique identifier for the SSH public key.
-
status
public final StatusType status()
The status of the SSH public key.
Activemeans that the key can be used for authentication with an CodeCommit repository.Inactivemeans that the key cannot be used.If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the SSH public key.
Activemeans that the key can be used for authentication with an CodeCommit repository.Inactivemeans that the key cannot be used. - See Also:
StatusType
-
statusAsString
public final String statusAsString()
The status of the SSH public key.
Activemeans that the key can be used for authentication with an CodeCommit repository.Inactivemeans that the key cannot be used.If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the SSH public key.
Activemeans that the key can be used for authentication with an CodeCommit repository.Inactivemeans that the key cannot be used. - See Also:
StatusType
-
uploadDate
public final Instant uploadDate()
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
- Returns:
- The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
-
toBuilder
public SSHPublicKeyMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SSHPublicKeyMetadata.Builder,SSHPublicKeyMetadata>
-
builder
public static SSHPublicKeyMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends SSHPublicKeyMetadata.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
-
-