public static interface KeyPair.Builder extends CopyableBuilder<KeyPair.Builder,KeyPair>
Modifier and Type | Method and Description |
---|---|
KeyPair.Builder |
arn(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 ). |
KeyPair.Builder |
createdAt(Instant createdAt)
The timestamp when the key pair was created (e.g.,
1479816991.349 ). |
KeyPair.Builder |
fingerprint(String fingerprint)
The RSA fingerprint of the key pair.
|
default KeyPair.Builder |
location(Consumer<ResourceLocation.Builder> location)
The region name and Availability Zone where the key pair was created.
|
KeyPair.Builder |
location(ResourceLocation location)
The region name and Availability Zone where the key pair was created.
|
KeyPair.Builder |
name(String name)
The friendly name of the SSH key pair.
|
KeyPair.Builder |
resourceType(ResourceType resourceType)
The resource type (usually
KeyPair ). |
KeyPair.Builder |
resourceType(String resourceType)
The resource type (usually
KeyPair ). |
KeyPair.Builder |
supportCode(String supportCode)
The support code.
|
copy
applyMutation, build
KeyPair.Builder name(String name)
The friendly name of the SSH key pair.
name
- The friendly name of the SSH key pair.KeyPair.Builder arn(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
- The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).KeyPair.Builder supportCode(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.
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.KeyPair.Builder createdAt(Instant createdAt)
The timestamp when the key pair was created (e.g., 1479816991.349
).
createdAt
- The timestamp when the key pair was created (e.g., 1479816991.349
).KeyPair.Builder location(ResourceLocation location)
The region name and Availability Zone where the key pair was created.
location
- The region name and Availability Zone where the key pair was created.default KeyPair.Builder location(Consumer<ResourceLocation.Builder> location)
The region name and Availability Zone where the key pair was created.
This is a convenience that creates an instance of theResourceLocation.Builder
avoiding the need to
create one manually via ResourceLocation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to location(ResourceLocation)
.location
- a consumer that will call methods on ResourceLocation.Builder
location(ResourceLocation)
KeyPair.Builder resourceType(String resourceType)
The resource type (usually KeyPair
).
resourceType
- The resource type (usually KeyPair
).ResourceType
,
ResourceType
KeyPair.Builder resourceType(ResourceType resourceType)
The resource type (usually KeyPair
).
resourceType
- The resource type (usually KeyPair
).ResourceType
,
ResourceType
KeyPair.Builder fingerprint(String fingerprint)
The RSA fingerprint of the key pair.
fingerprint
- The RSA fingerprint of the key pair.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.