@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable, StructuredPojo
Describes an instance (a virtual private server).
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE ). |
String |
getBlueprintId()
The blueprint ID (e.g.,
os_amlinux_2016_03 ). |
String |
getBlueprintName()
The friendly name of the blueprint (e.g.,
Amazon Linux ). |
String |
getBundleId()
The bundle for the instance (e.g.,
micro_1_0 ). |
Date |
getCreatedAt()
The timestamp when the instance was created (e.g.,
1479734909.17 ). |
InstanceHardware |
getHardware()
The size of the vCPU and the amount of RAM for the instance.
|
String |
getIpv6Address()
The IPv6 address of the instance.
|
Boolean |
getIsStaticIp()
A Boolean value indicating whether this instance has a static IP assigned to it.
|
ResourceLocation |
getLocation()
The region name and availability zone where the instance is located.
|
String |
getName()
The name the user gave the instance (e.g.,
Amazon_Linux-1GB-Virginia-1 ). |
InstanceNetworking |
getNetworking()
Information about the public ports and monthly data transfer rates for the instance.
|
String |
getPrivateIpAddress()
The private IP address of the instance.
|
String |
getPublicIpAddress()
The public IP address of the instance.
|
String |
getResourceType()
The type of resource (usually
Instance ). |
String |
getSshKeyName()
The name of the SSH key being used to connect to the instance (e.g.,
LightsailDefaultKeyPair ). |
InstanceState |
getState()
The status code and the state (e.g.,
running ) for the instance. |
String |
getSupportCode()
The support code.
|
String |
getUsername()
The user name for connecting to the instance (e.g.,
ec2-user ). |
int |
hashCode() |
Boolean |
isStaticIp()
A Boolean value indicating whether this instance has a static IP assigned to it.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE ). |
void |
setBlueprintId(String blueprintId)
The blueprint ID (e.g.,
os_amlinux_2016_03 ). |
void |
setBlueprintName(String blueprintName)
The friendly name of the blueprint (e.g.,
Amazon Linux ). |
void |
setBundleId(String bundleId)
The bundle for the instance (e.g.,
micro_1_0 ). |
void |
setCreatedAt(Date createdAt)
The timestamp when the instance was created (e.g.,
1479734909.17 ). |
void |
setHardware(InstanceHardware hardware)
The size of the vCPU and the amount of RAM for the instance.
|
void |
setIpv6Address(String ipv6Address)
The IPv6 address of the instance.
|
void |
setIsStaticIp(Boolean isStaticIp)
A Boolean value indicating whether this instance has a static IP assigned to it.
|
void |
setLocation(ResourceLocation location)
The region name and availability zone where the instance is located.
|
void |
setName(String name)
The name the user gave the instance (e.g.,
Amazon_Linux-1GB-Virginia-1 ). |
void |
setNetworking(InstanceNetworking networking)
Information about the public ports and monthly data transfer rates for the instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
|
void |
setPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
|
void |
setResourceType(ResourceType resourceType)
The type of resource (usually
Instance ). |
void |
setResourceType(String resourceType)
The type of resource (usually
Instance ). |
void |
setSshKeyName(String sshKeyName)
The name of the SSH key being used to connect to the instance (e.g.,
LightsailDefaultKeyPair ). |
void |
setState(InstanceState state)
The status code and the state (e.g.,
running ) for the instance. |
void |
setSupportCode(String supportCode)
The support code.
|
void |
setUsername(String username)
The user name for connecting to the instance (e.g.,
ec2-user ). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Instance |
withArn(String arn)
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE ). |
Instance |
withBlueprintId(String blueprintId)
The blueprint ID (e.g.,
os_amlinux_2016_03 ). |
Instance |
withBlueprintName(String blueprintName)
The friendly name of the blueprint (e.g.,
Amazon Linux ). |
Instance |
withBundleId(String bundleId)
The bundle for the instance (e.g.,
micro_1_0 ). |
Instance |
withCreatedAt(Date createdAt)
The timestamp when the instance was created (e.g.,
1479734909.17 ). |
Instance |
withHardware(InstanceHardware hardware)
The size of the vCPU and the amount of RAM for the instance.
|
Instance |
withIpv6Address(String ipv6Address)
The IPv6 address of the instance.
|
Instance |
withIsStaticIp(Boolean isStaticIp)
A Boolean value indicating whether this instance has a static IP assigned to it.
|
Instance |
withLocation(ResourceLocation location)
The region name and availability zone where the instance is located.
|
Instance |
withName(String name)
The name the user gave the instance (e.g.,
Amazon_Linux-1GB-Virginia-1 ). |
Instance |
withNetworking(InstanceNetworking networking)
Information about the public ports and monthly data transfer rates for the instance.
|
Instance |
withPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
|
Instance |
withPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
|
Instance |
withResourceType(ResourceType resourceType)
The type of resource (usually
Instance ). |
Instance |
withResourceType(String resourceType)
The type of resource (usually
Instance ). |
Instance |
withSshKeyName(String sshKeyName)
The name of the SSH key being used to connect to the instance (e.g.,
LightsailDefaultKeyPair ). |
Instance |
withState(InstanceState state)
The status code and the state (e.g.,
running ) for the instance. |
Instance |
withSupportCode(String supportCode)
The support code.
|
Instance |
withUsername(String username)
The user name for connecting to the instance (e.g.,
ec2-user ). |
public void setName(String name)
The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1
).
name
- The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1
).public String getName()
The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1
).
Amazon_Linux-1GB-Virginia-1
).public Instance withName(String name)
The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1
).
name
- The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1
).public void setArn(String arn)
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).
arn
- The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).public String getArn()
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).public Instance withArn(String arn)
The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).
arn
- The Amazon Resource Name (ARN) of the instance (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE
).public void setSupportCode(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.public String getSupportCode()
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 Instance withSupportCode(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.public void setCreatedAt(Date createdAt)
The timestamp when the instance was created (e.g., 1479734909.17
).
createdAt
- The timestamp when the instance was created (e.g., 1479734909.17
).public Date getCreatedAt()
The timestamp when the instance was created (e.g., 1479734909.17
).
1479734909.17
).public Instance withCreatedAt(Date createdAt)
The timestamp when the instance was created (e.g., 1479734909.17
).
createdAt
- The timestamp when the instance was created (e.g., 1479734909.17
).public void setLocation(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.public ResourceLocation getLocation()
The region name and availability zone where the instance is located.
public Instance withLocation(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.public void setResourceType(String resourceType)
The type of resource (usually Instance
).
resourceType
- The type of resource (usually Instance
).ResourceType
public String getResourceType()
The type of resource (usually Instance
).
Instance
).ResourceType
public Instance withResourceType(String resourceType)
The type of resource (usually Instance
).
resourceType
- The type of resource (usually Instance
).ResourceType
public void setResourceType(ResourceType resourceType)
The type of resource (usually Instance
).
resourceType
- The type of resource (usually Instance
).ResourceType
public Instance withResourceType(ResourceType resourceType)
The type of resource (usually Instance
).
resourceType
- The type of resource (usually Instance
).ResourceType
public void setBlueprintId(String blueprintId)
The blueprint ID (e.g., os_amlinux_2016_03
).
blueprintId
- The blueprint ID (e.g., os_amlinux_2016_03
).public String getBlueprintId()
The blueprint ID (e.g., os_amlinux_2016_03
).
os_amlinux_2016_03
).public Instance withBlueprintId(String blueprintId)
The blueprint ID (e.g., os_amlinux_2016_03
).
blueprintId
- The blueprint ID (e.g., os_amlinux_2016_03
).public void setBlueprintName(String blueprintName)
The friendly name of the blueprint (e.g., Amazon Linux
).
blueprintName
- The friendly name of the blueprint (e.g., Amazon Linux
).public String getBlueprintName()
The friendly name of the blueprint (e.g., Amazon Linux
).
Amazon Linux
).public Instance withBlueprintName(String blueprintName)
The friendly name of the blueprint (e.g., Amazon Linux
).
blueprintName
- The friendly name of the blueprint (e.g., Amazon Linux
).public void setBundleId(String bundleId)
The bundle for the instance (e.g., micro_1_0
).
bundleId
- The bundle for the instance (e.g., micro_1_0
).public String getBundleId()
The bundle for the instance (e.g., micro_1_0
).
micro_1_0
).public Instance withBundleId(String bundleId)
The bundle for the instance (e.g., micro_1_0
).
bundleId
- The bundle for the instance (e.g., micro_1_0
).public void setIsStaticIp(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.public Boolean getIsStaticIp()
A Boolean value indicating whether this instance has a static IP assigned to it.
public Instance withIsStaticIp(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.public Boolean isStaticIp()
A Boolean value indicating whether this instance has a static IP assigned to it.
public void setPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.public String getPrivateIpAddress()
The private IP address of the instance.
public Instance withPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.public void setPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public String getPublicIpAddress()
The public IP address of the instance.
public Instance withPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public void setIpv6Address(String ipv6Address)
The IPv6 address of the instance.
ipv6Address
- The IPv6 address of the instance.public String getIpv6Address()
The IPv6 address of the instance.
public Instance withIpv6Address(String ipv6Address)
The IPv6 address of the instance.
ipv6Address
- The IPv6 address of the instance.public void setHardware(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.public InstanceHardware getHardware()
The size of the vCPU and the amount of RAM for the instance.
public Instance withHardware(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.public void setNetworking(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.public InstanceNetworking getNetworking()
Information about the public ports and monthly data transfer rates for the instance.
public Instance withNetworking(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.public void setState(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.public InstanceState getState()
The status code and the state (e.g., running
) for the instance.
running
) for the instance.public Instance withState(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.public void setUsername(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
).public String getUsername()
The user name for connecting to the instance (e.g., ec2-user
).
ec2-user
).public Instance withUsername(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
).public void setSshKeyName(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
).public String getSshKeyName()
The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair
).
LightsailDefaultKeyPair
).public Instance withSshKeyName(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
).public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.