StructuredPojo
, ToCopyableBuilder<KeyPair.Builder,KeyPair>
@Generated("software.amazon.awssdk:codegen") public class KeyPair extends Object implements StructuredPojo, ToCopyableBuilder<KeyPair.Builder,KeyPair>
Describes the SSH key pair.
Modifier and Type | Class | Description |
---|---|---|
static interface |
KeyPair.Builder |
Modifier and Type | Method | Description |
---|---|---|
String |
arn() |
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE ). |
static KeyPair.Builder |
builder() |
|
Date |
createdAt() |
The timestamp when the key pair was created (e.g.,
1479816991.349 ). |
boolean |
equals(Object obj) |
|
String |
fingerprint() |
The RSA fingerprint of the key pair.
|
int |
hashCode() |
|
ResourceLocation |
location() |
The region name and Availability Zone where the key pair was created.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name() |
The friendly name of the SSH key pair.
|
String |
resourceType() |
The resource type (usually
KeyPair ). |
static Class<? extends KeyPair.Builder> |
serializableBuilderClass() |
|
String |
supportCode() |
The support code.
|
KeyPair.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public String name()
The friendly name of the SSH key pair.
public String arn()
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).public 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 Date createdAt()
The timestamp when the key pair was created (e.g., 1479816991.349
).
1479816991.349
).public ResourceLocation location()
The region name and Availability Zone where the key pair was created.
public String resourceType()
The resource type (usually KeyPair
).
KeyPair
).ResourceType
public String fingerprint()
The RSA fingerprint of the key pair.
public KeyPair.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<KeyPair.Builder,KeyPair>
public static KeyPair.Builder builder()
public static Class<? extends KeyPair.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.