Interface KeyPair.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KeyPair.Builder,KeyPair>,SdkBuilder<KeyPair.Builder,KeyPair>,SdkPojo
- Enclosing class:
- KeyPair
public static interface KeyPair.Builder extends SdkPojo, CopyableBuilder<KeyPair.Builder,KeyPair>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KeyPair.Builderarn(String arn)The Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).KeyPair.BuildercreatedAt(Instant createdAt)The timestamp when the key pair was created (1479816991.349).KeyPair.Builderfingerprint(String fingerprint)The RSA fingerprint of the key pair.default KeyPair.Builderlocation(Consumer<ResourceLocation.Builder> location)The region name and Availability Zone where the key pair was created.KeyPair.Builderlocation(ResourceLocation location)The region name and Availability Zone where the key pair was created.KeyPair.Buildername(String name)The friendly name of the SSH key pair.KeyPair.BuilderresourceType(String resourceType)The resource type (usuallyKeyPair).KeyPair.BuilderresourceType(ResourceType resourceType)The resource type (usuallyKeyPair).KeyPair.BuildersupportCode(String supportCode)The support code.KeyPair.Buildertags(Collection<Tag> tags)The tag keys and optional values for the resource.KeyPair.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values for the resource.KeyPair.Buildertags(Tag... tags)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 Detail
-
name
KeyPair.Builder name(String 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
KeyPair.Builder arn(String 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
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.
- 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
KeyPair.Builder createdAt(Instant 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
KeyPair.Builder location(ResourceLocation 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
default KeyPair.Builder location(Consumer<ResourceLocation.Builder> location)
The region name and Availability Zone where the key pair was created.
This is a convenience method that creates an instance of theResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,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:
location(ResourceLocation)
-
resourceType
KeyPair.Builder resourceType(String 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,ResourceType
-
resourceType
KeyPair.Builder resourceType(ResourceType 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,ResourceType
-
tags
KeyPair.Builder tags(Collection<Tag> 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
KeyPair.Builder tags(Tag... 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
KeyPair.Builder tags(Consumer<Tag.Builder>... 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
fingerprint
KeyPair.Builder fingerprint(String 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.
-
-