@Generated(value="software.amazon.awssdk:codegen") public final class Instance extends Object implements StructuredPojo, ToCopyableBuilder<Instance.Builder,Instance>
Describes an instance (a virtual private server).
Modifier and Type | Class and Description |
---|---|
static interface |
Instance.Builder |
Modifier and Type | Method and Description |
---|---|
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 ). |
String |
blueprintId()
The blueprint ID (e.g.,
os_amlinux_2016_03 ). |
String |
blueprintName()
The friendly name of the blueprint (e.g.,
Amazon Linux ). |
static Instance.Builder |
builder() |
String |
bundleId()
The bundle for the instance (e.g.,
micro_1_0 ). |
Instant |
createdAt()
The timestamp when the instance was created (e.g.,
1479734909.17 ). |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
InstanceHardware |
hardware()
The size of the vCPU and the amount of RAM for the instance.
|
int |
hashCode() |
String |
ipv6Address()
The IPv6 address of the instance.
|
Boolean |
isStaticIp()
A Boolean value indicating whether this instance has a static IP assigned to it.
|
ResourceLocation |
location()
The region name and availability zone where the instance is located.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name the user gave the instance (e.g.,
Amazon_Linux-1GB-Ohio-1 ). |
InstanceNetworking |
networking()
Information about the public ports and monthly data transfer rates for the instance.
|
String |
privateIpAddress()
The private IP address of the instance.
|
String |
publicIpAddress()
The public IP address of the instance.
|
ResourceType |
resourceType()
The type of resource (usually
Instance ). |
String |
resourceTypeAsString()
The type of resource (usually
Instance ). |
static Class<? extends Instance.Builder> |
serializableBuilderClass() |
String |
sshKeyName()
The name of the SSH key being used to connect to the instance (e.g.,
LightsailDefaultKeyPair ). |
InstanceState |
state()
The status code and the state (e.g.,
running ) for the instance. |
String |
supportCode()
The support code.
|
Instance.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
username()
The user name for connecting to the instance (e.g.,
ec2-user ). |
copy
public String name()
The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1
).
Amazon_Linux-1GB-Ohio-1
).public 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:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).public 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.
public Instant createdAt()
The timestamp when the instance was created (e.g., 1479734909.17
).
1479734909.17
).public ResourceLocation location()
The region name and availability zone where the instance is located.
public ResourceType resourceType()
The type of resource (usually Instance
).
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
Instance
).ResourceType
public String resourceTypeAsString()
The type of resource (usually Instance
).
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
Instance
).ResourceType
public String blueprintId()
The blueprint ID (e.g., os_amlinux_2016_03
).
os_amlinux_2016_03
).public String blueprintName()
The friendly name of the blueprint (e.g., Amazon Linux
).
Amazon Linux
).public String bundleId()
The bundle for the instance (e.g., micro_1_0
).
micro_1_0
).public Boolean isStaticIp()
A Boolean value indicating whether this instance has a static IP assigned to it.
public String privateIpAddress()
The private IP address of the instance.
public String publicIpAddress()
The public IP address of the instance.
public String ipv6Address()
The IPv6 address of the instance.
public InstanceHardware hardware()
The size of the vCPU and the amount of RAM for the instance.
public InstanceNetworking networking()
Information about the public ports and monthly data transfer rates for the instance.
public InstanceState state()
The status code and the state (e.g., running
) for the instance.
running
) for the instance.public String username()
The user name for connecting to the instance (e.g., ec2-user
).
ec2-user
).public String sshKeyName()
The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair
).
LightsailDefaultKeyPair
).public Instance.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Instance.Builder,Instance>
public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.