public static interface Instance.Builder extends CopyableBuilder<Instance.Builder,Instance>
Modifier and Type | Method and Description |
---|---|
Instance.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE ). |
Instance.Builder |
blueprintId(String blueprintId)
The blueprint ID (e.g.,
os_amlinux_2016_03 ). |
Instance.Builder |
blueprintName(String blueprintName)
The friendly name of the blueprint (e.g.,
Amazon Linux ). |
Instance.Builder |
bundleId(String bundleId)
The bundle for the instance (e.g.,
micro_1_0 ). |
Instance.Builder |
createdAt(Instant createdAt)
The timestamp when the instance was created (e.g.,
1479734909.17 ). |
default Instance.Builder |
hardware(Consumer<InstanceHardware.Builder> hardware)
The size of the vCPU and the amount of RAM for the instance.
|
Instance.Builder |
hardware(InstanceHardware hardware)
The size of the vCPU and the amount of RAM for the instance.
|
Instance.Builder |
ipv6Address(String ipv6Address)
The IPv6 address of the instance.
|
Instance.Builder |
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.
|
Instance.Builder |
location(ResourceLocation location)
The region name and availability zone where the instance is located.
|
Instance.Builder |
name(String name)
The name the user gave the instance (e.g.,
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.
|
Instance.Builder |
networking(InstanceNetworking networking)
Information about the public ports and monthly data transfer rates for the instance.
|
Instance.Builder |
privateIpAddress(String privateIpAddress)
The private IP address of the instance.
|
Instance.Builder |
publicIpAddress(String publicIpAddress)
The public IP address of the instance.
|
Instance.Builder |
resourceType(ResourceType resourceType)
The type of resource (usually
Instance ). |
Instance.Builder |
resourceType(String resourceType)
The type of resource (usually
Instance ). |
Instance.Builder |
sshKeyName(String sshKeyName)
The name of the SSH key being used to connect to the instance (e.g.,
LightsailDefaultKeyPair ). |
default Instance.Builder |
state(Consumer<InstanceState.Builder> state)
The status code and the state (e.g.,
running ) for the instance. |
Instance.Builder |
state(InstanceState state)
The status code and the state (e.g.,
running ) for the instance. |
Instance.Builder |
supportCode(String supportCode)
The support code.
|
Instance.Builder |
username(String username)
The user name for connecting to the instance (e.g.,
ec2-user ). |
copy
apply, build
Instance.Builder name(String name)
The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1
).
name
- The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1
).Instance.Builder arn(String arn)
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).
arn
- The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).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.
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.Instance.Builder createdAt(Instant createdAt)
The timestamp when the instance was created (e.g., 1479734909.17
).
createdAt
- The timestamp when the instance was created (e.g., 1479734909.17
).Instance.Builder location(ResourceLocation location)
The region name and availability zone where the instance is located.
location
- The region name and availability zone where the instance is located.default Instance.Builder location(Consumer<ResourceLocation.Builder> location)
The region name and availability zone where the instance is located.
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)
Instance.Builder resourceType(String resourceType)
The type of resource (usually Instance
).
resourceType
- The type of resource (usually Instance
).ResourceType
,
ResourceType
Instance.Builder resourceType(ResourceType resourceType)
The type of resource (usually Instance
).
resourceType
- The type of resource (usually Instance
).ResourceType
,
ResourceType
Instance.Builder blueprintId(String blueprintId)
The blueprint ID (e.g., os_amlinux_2016_03
).
blueprintId
- The blueprint ID (e.g., os_amlinux_2016_03
).Instance.Builder blueprintName(String blueprintName)
The friendly name of the blueprint (e.g., Amazon Linux
).
blueprintName
- The friendly name of the blueprint (e.g., Amazon Linux
).Instance.Builder bundleId(String bundleId)
The bundle for the instance (e.g., micro_1_0
).
bundleId
- The bundle for the instance (e.g., micro_1_0
).Instance.Builder isStaticIp(Boolean isStaticIp)
A Boolean value indicating whether this instance has a static IP assigned to it.
isStaticIp
- A Boolean value indicating whether this instance has a static IP assigned to it.Instance.Builder privateIpAddress(String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.Instance.Builder publicIpAddress(String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.Instance.Builder ipv6Address(String ipv6Address)
The IPv6 address of the instance.
ipv6Address
- The IPv6 address of the instance.Instance.Builder hardware(InstanceHardware hardware)
The size of the vCPU and the amount of RAM for the instance.
hardware
- The size of the vCPU and the amount of RAM for the instance.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 that creates an instance of theInstanceHardware.Builder
avoiding the need to
create one manually via InstanceHardware.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to hardware(InstanceHardware)
.hardware
- a consumer that will call methods on InstanceHardware.Builder
hardware(InstanceHardware)
Instance.Builder networking(InstanceNetworking networking)
Information about the public ports and monthly data transfer rates for the instance.
networking
- Information about the public ports and monthly data transfer rates for the instance.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 that creates an instance of theInstanceNetworking.Builder
avoiding the need to
create one manually via InstanceNetworking.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to networking(InstanceNetworking)
.networking
- a consumer that will call methods on InstanceNetworking.Builder
networking(InstanceNetworking)
Instance.Builder state(InstanceState state)
The status code and the state (e.g., running
) for the instance.
state
- The status code and the state (e.g., running
) for the instance.default Instance.Builder state(Consumer<InstanceState.Builder> state)
The status code and the state (e.g., running
) for the instance.
InstanceState.Builder
avoiding the need to
create one manually via InstanceState.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to state(InstanceState)
.state
- a consumer that will call methods on InstanceState.Builder
state(InstanceState)
Instance.Builder username(String username)
The user name for connecting to the instance (e.g., ec2-user
).
username
- The user name for connecting to the instance (e.g., ec2-user
).Instance.Builder sshKeyName(String sshKeyName)
The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair
).
sshKeyName
- The name of the SSH key being used to connect to the instance (e.g.,
LightsailDefaultKeyPair
).Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.