Interface KeyPair.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KeyPair.Builder,
,KeyPair> SdkBuilder<KeyPair.Builder,
,KeyPair> SdkPojo
- Enclosing class:
KeyPair
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).The timestamp when the key pair was created (1479816991.349
).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.location
(ResourceLocation location) The region name and Availability Zone where the key pair was created.The friendly name of the SSH key pair.resourceType
(String resourceType) The resource type (usuallyKeyPair
).resourceType
(ResourceType resourceType) The resource type (usuallyKeyPair
).supportCode
(String supportCode) The support code.tags
(Collection<Tag> tags) The tag keys and optional values for the resource.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values for the resource.The tag keys and optional values for the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The friendly name of the SSH key pair.
- Parameters:
name
- The friendly name of the SSH key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the key pair (
arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).- Parameters:
arn
- The Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the key pair was created (
1479816991.349
).- Parameters:
createdAt
- The timestamp when the key pair was created (1479816991.349
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The region name and Availability Zone where the key pair was created.
- Parameters:
location
- The region name and Availability Zone where the key pair was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The region name and Availability Zone where the key pair was created.
This is a convenience method that creates an instance of theResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(ResourceLocation)
.- Parameters:
location
- a consumer that will call methods onResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The resource type (usually
KeyPair
).- Parameters:
resourceType
- The resource type (usuallyKeyPair
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The resource type (usually
KeyPair
).- Parameters:
resourceType
- The resource type (usuallyKeyPair
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fingerprint
The RSA fingerprint of the key pair.
- Parameters:
fingerprint
- The RSA fingerprint of the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-