Interface Instance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Instance.Builder,Instance>,SdkBuilder<Instance.Builder,Instance>,SdkPojo
- Enclosing class:
- Instance
public static interface Instance.Builder extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Instance.BuilderaddOns(Collection<AddOn> addOns)An array of objects representing the add-ons enabled on the instance.Instance.BuilderaddOns(Consumer<AddOn.Builder>... addOns)An array of objects representing the add-ons enabled on the instance.Instance.BuilderaddOns(AddOn... addOns)An array of objects representing the add-ons enabled on the instance.Instance.Builderarn(String arn)The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).Instance.BuilderblueprintId(String blueprintId)The blueprint ID (os_amlinux_2016_03).Instance.BuilderblueprintName(String blueprintName)The friendly name of the blueprint (Amazon Linux).Instance.BuilderbundleId(String bundleId)The bundle for the instance (micro_1_0).Instance.BuildercreatedAt(Instant createdAt)The timestamp when the instance was created (1479734909.17) in Unix time format.default Instance.Builderhardware(Consumer<InstanceHardware.Builder> hardware)The size of the vCPU and the amount of RAM for the instance.Instance.Builderhardware(InstanceHardware hardware)The size of the vCPU and the amount of RAM for the instance.Instance.BuilderipAddressType(String ipAddressType)The IP address type of the instance.Instance.BuilderipAddressType(IpAddressType ipAddressType)The IP address type of the instance.Instance.Builderipv6Addresses(String... ipv6Addresses)The IPv6 addresses of the instance.Instance.Builderipv6Addresses(Collection<String> ipv6Addresses)The IPv6 addresses of the instance.Instance.BuilderisStaticIp(Boolean isStaticIp)A Boolean value indicating whether this instance has a static IP assigned to it.default Instance.Builderlocation(Consumer<ResourceLocation.Builder> location)The region name and Availability Zone where the instance is located.Instance.Builderlocation(ResourceLocation location)The region name and Availability Zone where the instance is located.default Instance.BuildermetadataOptions(Consumer<InstanceMetadataOptions.Builder> metadataOptions)The metadata options for the Amazon Lightsail instance.Instance.BuildermetadataOptions(InstanceMetadataOptions metadataOptions)The metadata options for the Amazon Lightsail instance.Instance.Buildername(String name)The name the user gave the instance (Amazon_Linux-1GB-Ohio-1).default Instance.Buildernetworking(Consumer<InstanceNetworking.Builder> networking)Information about the public ports and monthly data transfer rates for the instance.Instance.Buildernetworking(InstanceNetworking networking)Information about the public ports and monthly data transfer rates for the instance.Instance.BuilderprivateIpAddress(String privateIpAddress)The private IP address of the instance.Instance.BuilderpublicIpAddress(String publicIpAddress)The public IP address of the instance.Instance.BuilderresourceType(String resourceType)The type of resource (usuallyInstance).Instance.BuilderresourceType(ResourceType resourceType)The type of resource (usuallyInstance).Instance.BuildersshKeyName(String sshKeyName)The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).default Instance.Builderstate(Consumer<InstanceState.Builder> state)The status code and the state (running) for the instance.Instance.Builderstate(InstanceState state)The status code and the state (running) for the instance.Instance.BuildersupportCode(String supportCode)The support code.Instance.Buildertags(Collection<Tag> tags)The tag keys and optional values for the resource.Instance.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values for the resource.Instance.Buildertags(Tag... tags)The tag keys and optional values for the resource.Instance.Builderusername(String username)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 Detail
-
name
Instance.Builder name(String 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
Instance.Builder arn(String 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
Instance.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
Instance.Builder createdAt(Instant 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
Instance.Builder location(ResourceLocation 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
default Instance.Builder location(Consumer<ResourceLocation.Builder> location)
The region name and Availability Zone where the instance is located.
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
Instance.Builder resourceType(String 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,ResourceType
-
resourceType
Instance.Builder resourceType(ResourceType 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,ResourceType
-
tags
Instance.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
Instance.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
Instance.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)
-
blueprintId
Instance.Builder blueprintId(String 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
Instance.Builder blueprintName(String 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
Instance.Builder bundleId(String 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
Instance.Builder addOns(Collection<AddOn> 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
Instance.Builder addOns(AddOn... 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
Instance.Builder addOns(Consumer<AddOn.Builder>... addOns)
An array of objects representing the add-ons enabled on the instance.
This is a convenience method that creates an instance of theAddOn.Builderavoiding the need to create one manually viaAddOn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#addOns(List.) - 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:
#addOns(java.util.Collection)
-
isStaticIp
Instance.Builder isStaticIp(Boolean 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
Instance.Builder privateIpAddress(String 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
Instance.Builder publicIpAddress(String 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
Instance.Builder ipv6Addresses(Collection<String> 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
Instance.Builder ipv6Addresses(String... 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
Instance.Builder ipAddressType(String ipAddressType)
The IP address type of the instance.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Parameters:
ipAddressType- The IP address type of the instance.The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType,IpAddressType
-
ipAddressType
Instance.Builder ipAddressType(IpAddressType ipAddressType)
The IP address type of the instance.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Parameters:
ipAddressType- The IP address type of the instance.The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType,IpAddressType
-
hardware
Instance.Builder hardware(InstanceHardware 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
default Instance.Builder hardware(Consumer<InstanceHardware.Builder> 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.Builderavoiding the need to create one manually viaInstanceHardware.builder().When the
Consumercompletes,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:
hardware(InstanceHardware)
-
networking
Instance.Builder networking(InstanceNetworking 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
default Instance.Builder networking(Consumer<InstanceNetworking.Builder> 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.Builderavoiding the need to create one manually viaInstanceNetworking.builder().When the
Consumercompletes,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:
networking(InstanceNetworking)
-
state
Instance.Builder state(InstanceState 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
default Instance.Builder state(Consumer<InstanceState.Builder> state)
The status code and the state (
This is a convenience method that creates an instance of therunning) for the instance.InstanceState.Builderavoiding the need to create one manually viaInstanceState.builder().When the
Consumercompletes,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:
state(InstanceState)
-
username
Instance.Builder username(String 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
Instance.Builder sshKeyName(String 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
Instance.Builder metadataOptions(InstanceMetadataOptions 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
default Instance.Builder metadataOptions(Consumer<InstanceMetadataOptions.Builder> metadataOptions)
The metadata options for the Amazon Lightsail instance.
This is a convenience method that creates an instance of theInstanceMetadataOptions.Builderavoiding the need to create one manually viaInstanceMetadataOptions.builder().When the
Consumercompletes,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:
metadataOptions(InstanceMetadataOptions)
-
-