Interface Instance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Instance.Builder,
,Instance> SdkBuilder<Instance.Builder,
,Instance> SdkPojo
- Enclosing class:
Instance
-
Method Summary
Modifier and TypeMethodDescriptionaddOns
(Collection<AddOn> addOns) An array of objects representing the add-ons enabled on the instance.addOns
(Consumer<AddOn.Builder>... addOns) An array of objects representing the add-ons enabled on the instance.An array of objects representing the add-ons enabled on the instance.The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).blueprintId
(String blueprintId) The blueprint ID (os_amlinux_2016_03
).blueprintName
(String blueprintName) The friendly name of the blueprint (Amazon Linux
).The bundle for the instance (micro_1_0
).The timestamp when the instance was created (1479734909.17
) in Unix time format.default Instance.Builder
hardware
(Consumer<InstanceHardware.Builder> hardware) The size of the vCPU and the amount of RAM for the instance.hardware
(InstanceHardware hardware) The size of the vCPU and the amount of RAM for the instance.ipAddressType
(String ipAddressType) The IP address type of the instance.ipAddressType
(IpAddressType ipAddressType) The IP address type of the instance.ipv6Addresses
(String... ipv6Addresses) The IPv6 addresses of the instance.ipv6Addresses
(Collection<String> ipv6Addresses) The IPv6 addresses of the instance.isStaticIp
(Boolean isStaticIp) A Boolean value indicating whether this instance has a static IP assigned to it.default Instance.Builder
location
(Consumer<ResourceLocation.Builder> location) The region name and Availability Zone where the instance is located.location
(ResourceLocation location) The region name and Availability Zone where the instance is located.default Instance.Builder
metadataOptions
(Consumer<InstanceMetadataOptions.Builder> metadataOptions) The metadata options for the Amazon Lightsail instance.metadataOptions
(InstanceMetadataOptions metadataOptions) The metadata options for the Amazon Lightsail instance.The name the user gave the instance (Amazon_Linux-1GB-Ohio-1
).default Instance.Builder
networking
(Consumer<InstanceNetworking.Builder> networking) Information about the public ports and monthly data transfer rates for the instance.networking
(InstanceNetworking networking) Information about the public ports and monthly data transfer rates for the instance.privateIpAddress
(String privateIpAddress) The private IP address of the instance.publicIpAddress
(String publicIpAddress) The public IP address of the instance.resourceType
(String resourceType) The type of resource (usuallyInstance
).resourceType
(ResourceType resourceType) The type of resource (usuallyInstance
).sshKeyName
(String sshKeyName) The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair
).default Instance.Builder
state
(Consumer<InstanceState.Builder> state) The status code and the state (running
) for the instance.state
(InstanceState state) The status code and the state (running
) for the instance.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.The user name for connecting to the instance (ec2-user
).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 name the user gave the instance (
Amazon_Linux-1GB-Ohio-1
).- Parameters:
name
- The name the user gave the instance (Amazon_Linux-1GB-Ohio-1
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the instance (
arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).- Parameters:
arn
- The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-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 instance was created (
1479734909.17
) in Unix time format.- Parameters:
createdAt
- The timestamp when the instance was created (1479734909.17
) in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The region name and Availability Zone where the instance is located.
- Parameters:
location
- The region name and Availability Zone where the instance is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The region name and Availability Zone where the instance is located.
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 type of resource (usually
Instance
).- Parameters:
resourceType
- The type of resource (usuallyInstance
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource (usually
Instance
).- Parameters:
resourceType
- The type of resource (usuallyInstance
).- 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:
-
blueprintId
The blueprint ID (
os_amlinux_2016_03
).- Parameters:
blueprintId
- The blueprint ID (os_amlinux_2016_03
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blueprintName
The friendly name of the blueprint (
Amazon Linux
).- Parameters:
blueprintName
- The friendly name of the blueprint (Amazon Linux
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bundleId
The bundle for the instance (
micro_1_0
).- Parameters:
bundleId
- The bundle for the instance (micro_1_0
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOns
An array of objects representing the add-ons enabled on the instance.
- Parameters:
addOns
- An array of objects representing the add-ons enabled on the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOns
An array of objects representing the add-ons enabled on the instance.
- Parameters:
addOns
- An array of objects representing the add-ons enabled on the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOns
An array of objects representing the add-ons enabled on the instance.
This is a convenience method that creates an instance of theAddOn.Builder
avoiding the need to create one manually viaAddOn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddOns(List<AddOn>)
.- Parameters:
addOns
- a consumer that will call methods onAddOn.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isStaticIp
A Boolean value indicating whether this instance has a static IP assigned to it.
- Parameters:
isStaticIp
- A Boolean value indicating whether this instance has a static IP assigned to it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
The private IP address of the instance.
- Parameters:
privateIpAddress
- The private IP address of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicIpAddress
The public IP address of the instance.
- Parameters:
publicIpAddress
- The public IP address of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
The IPv6 addresses of the instance.
- Parameters:
ipv6Addresses
- The IPv6 addresses of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
The IPv6 addresses of the instance.
- Parameters:
ipv6Addresses
- The IPv6 addresses of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddressType
The IP address type of the instance.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Parameters:
ipAddressType
- The IP address type of the instance.The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The IP address type of the instance.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Parameters:
ipAddressType
- The IP address type of the instance.The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hardware
The size of the vCPU and the amount of RAM for the instance.
- Parameters:
hardware
- The size of the vCPU and the amount of RAM for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hardware
The size of the vCPU and the amount of RAM for the instance.
This is a convenience method that creates an instance of theInstanceHardware.Builder
avoiding the need to create one manually viaInstanceHardware.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohardware(InstanceHardware)
.- Parameters:
hardware
- a consumer that will call methods onInstanceHardware.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networking
Information about the public ports and monthly data transfer rates for the instance.
- Parameters:
networking
- Information about the public ports and monthly data transfer rates for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networking
Information about the public ports and monthly data transfer rates for the instance.
This is a convenience method that creates an instance of theInstanceNetworking.Builder
avoiding the need to create one manually viaInstanceNetworking.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworking(InstanceNetworking)
.- Parameters:
networking
- a consumer that will call methods onInstanceNetworking.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The status code and the state (
running
) for the instance.- Parameters:
state
- The status code and the state (running
) for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The status code and the state (
This is a convenience method that creates an instance of therunning
) for the instance.InstanceState.Builder
avoiding the need to create one manually viaInstanceState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(InstanceState)
.- Parameters:
state
- a consumer that will call methods onInstanceState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
username
The user name for connecting to the instance (
ec2-user
).- Parameters:
username
- The user name for connecting to the instance (ec2-user
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sshKeyName
The name of the SSH key being used to connect to the instance (
LightsailDefaultKeyPair
).- Parameters:
sshKeyName
- The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataOptions
The metadata options for the Amazon Lightsail instance.
- Parameters:
metadataOptions
- The metadata options for the Amazon Lightsail instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataOptions
The metadata options for the Amazon Lightsail instance.
This is a convenience method that creates an instance of theInstanceMetadataOptions.Builder
avoiding the need to create one manually viaInstanceMetadataOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataOptions(InstanceMetadataOptions)
.- Parameters:
metadataOptions
- a consumer that will call methods onInstanceMetadataOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-