@Generated(value="software.amazon.awssdk:codegen") public final class KeyPair extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KeyPair.Builder,KeyPair>
Describes the SSH key pair.
| Modifier and Type | Class and Description |
|---|---|
static interface |
KeyPair.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE). |
static KeyPair.Builder |
builder() |
Instant |
createdAt()
The timestamp when the key pair was created (e.g.,
1479816991.349). |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fingerprint()
The RSA fingerprint of the key pair.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
ResourceLocation |
location()
The region name and Availability Zone where the key pair was created.
|
String |
name()
The friendly name of the SSH key pair.
|
ResourceType |
resourceType()
The resource type (usually
KeyPair). |
String |
resourceTypeAsString()
The resource type (usually
KeyPair). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends KeyPair.Builder> |
serializableBuilderClass() |
String |
supportCode()
The support code.
|
List<Tag> |
tags()
The tag keys and optional values for the resource.
|
KeyPair.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The friendly name of the SSH key pair.
public final String arn()
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).public final String supportCode()
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
public final Instant createdAt()
The timestamp when the key pair was created (e.g., 1479816991.349).
1479816991.349).public final ResourceLocation location()
The region name and Availability Zone where the key pair was created.
public final ResourceType resourceType()
The resource type (usually KeyPair).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
KeyPair).ResourceTypepublic final String resourceTypeAsString()
The resource type (usually KeyPair).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
KeyPair).ResourceTypepublic final boolean hasTags()
public final List<Tag> tags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final String fingerprint()
The RSA fingerprint of the key pair.
public KeyPair.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<KeyPair.Builder,KeyPair>public static KeyPair.Builder builder()
public static Class<? extends KeyPair.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.