public class Instance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
amiLaunchIndex
The AMI launch index, which can be used to find this instance in the
launch group.
|
private java.lang.String |
architecture
The architecture of the image.
|
private SdkInternalList<InstanceBlockDeviceMapping> |
blockDeviceMappings
Any block device mapping entries for the instance.
|
private java.lang.String |
clientToken
The idempotency token you provided when you launched the instance, if
applicable.
|
private java.lang.Boolean |
ebsOptimized
Indicates whether the instance is optimized for EBS I/O.
|
private java.lang.String |
hypervisor
The hypervisor type of the instance.
|
private IamInstanceProfile |
iamInstanceProfile
The IAM instance profile associated with the instance, if applicable.
|
private java.lang.String |
imageId
The ID of the AMI used to launch the instance.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
instanceLifecycle
Indicates whether this is a Spot instance or a Scheduled Instance.
|
private java.lang.String |
instanceType
The instance type.
|
private java.lang.String |
kernelId
The kernel associated with this instance, if applicable.
|
private java.lang.String |
keyName
The name of the key pair, if this instance was launched with an
associated key pair.
|
private java.util.Date |
launchTime
The time the instance was launched.
|
private Monitoring |
monitoring
The monitoring information for the instance.
|
private SdkInternalList<InstanceNetworkInterface> |
networkInterfaces
[EC2-VPC] One or more network interfaces for the instance.
|
private Placement |
placement
The location where the instance launched, if applicable.
|
private java.lang.String |
platform
The value is
Windows for Windows instances; otherwise blank. |
private java.lang.String |
privateDnsName
The private DNS name assigned to the instance.
|
private java.lang.String |
privateIpAddress
The private IP address assigned to the instance.
|
private SdkInternalList<ProductCode> |
productCodes
The product codes attached to this instance, if applicable.
|
private java.lang.String |
publicDnsName
The public DNS name assigned to the instance.
|
private java.lang.String |
publicIpAddress
The public IP address assigned to the instance, if applicable.
|
private java.lang.String |
ramdiskId
The RAM disk associated with this instance, if applicable.
|
private java.lang.String |
rootDeviceName
The root device name (for example,
/dev/sda1 or
/dev/xvda ). |
private java.lang.String |
rootDeviceType
The root device type used by the AMI.
|
private SdkInternalList<GroupIdentifier> |
securityGroups
One or more security groups for the instance.
|
private java.lang.Boolean |
sourceDestCheck
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
private java.lang.String |
spotInstanceRequestId
If the request is a Spot instance request, the ID of the request.
|
private java.lang.String |
sriovNetSupport
Specifies whether enhanced networking is enabled.
|
private InstanceState |
state
The current state of the instance.
|
private StateReason |
stateReason
The reason for the most recent state transition.
|
private java.lang.String |
stateTransitionReason
The reason for the most recent state transition.
|
private java.lang.String |
subnetId
[EC2-VPC] The ID of the subnet in which the instance is running.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the instance.
|
private java.lang.String |
virtualizationType
The virtualization type of the instance.
|
private java.lang.String |
vpcId
[EC2-VPC] The ID of the VPC in which the instance is running.
|
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance in the
launch group.
|
java.lang.String |
getArchitecture()
The architecture of the image.
|
java.util.List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
Any block device mapping entries for the instance.
|
java.lang.String |
getClientToken()
The idempotency token you provided when you launched the instance, if
applicable.
|
java.lang.Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
java.lang.String |
getHypervisor()
The hypervisor type of the instance.
|
IamInstanceProfile |
getIamInstanceProfile()
The IAM instance profile associated with the instance, if applicable.
|
java.lang.String |
getImageId()
The ID of the AMI used to launch the instance.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getInstanceLifecycle()
Indicates whether this is a Spot instance or a Scheduled Instance.
|
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.String |
getKernelId()
The kernel associated with this instance, if applicable.
|
java.lang.String |
getKeyName()
The name of the key pair, if this instance was launched with an
associated key pair.
|
java.util.Date |
getLaunchTime()
The time the instance was launched.
|
Monitoring |
getMonitoring()
The monitoring information for the instance.
|
java.util.List<InstanceNetworkInterface> |
getNetworkInterfaces()
[EC2-VPC] One or more network interfaces for the instance.
|
Placement |
getPlacement()
The location where the instance launched, if applicable.
|
java.lang.String |
getPlatform()
The value is
Windows for Windows instances; otherwise blank. |
java.lang.String |
getPrivateDnsName()
The private DNS name assigned to the instance.
|
java.lang.String |
getPrivateIpAddress()
The private IP address assigned to the instance.
|
java.util.List<ProductCode> |
getProductCodes()
The product codes attached to this instance, if applicable.
|
java.lang.String |
getPublicDnsName()
The public DNS name assigned to the instance.
|
java.lang.String |
getPublicIpAddress()
The public IP address assigned to the instance, if applicable.
|
java.lang.String |
getRamdiskId()
The RAM disk associated with this instance, if applicable.
|
java.lang.String |
getRootDeviceName()
The root device name (for example,
/dev/sda1 or
/dev/xvda ). |
java.lang.String |
getRootDeviceType()
The root device type used by the AMI.
|
java.util.List<GroupIdentifier> |
getSecurityGroups()
One or more security groups for the instance.
|
java.lang.Boolean |
getSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
java.lang.String |
getSpotInstanceRequestId()
If the request is a Spot instance request, the ID of the request.
|
java.lang.String |
getSriovNetSupport()
Specifies whether enhanced networking is enabled.
|
InstanceState |
getState()
The current state of the instance.
|
StateReason |
getStateReason()
The reason for the most recent state transition.
|
java.lang.String |
getStateTransitionReason()
The reason for the most recent state transition.
|
java.lang.String |
getSubnetId()
[EC2-VPC] The ID of the subnet in which the instance is running.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the instance.
|
java.lang.String |
getVirtualizationType()
The virtualization type of the instance.
|
java.lang.String |
getVpcId()
[EC2-VPC] The ID of the VPC in which the instance is running.
|
int |
hashCode() |
java.lang.Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
java.lang.Boolean |
isSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
void |
setAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the
launch group.
|
void |
setArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
void |
setArchitecture(java.lang.String architecture)
The architecture of the image.
|
void |
setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
|
void |
setClientToken(java.lang.String clientToken)
The idempotency token you provided when you launched the instance, if
applicable.
|
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
void |
setHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
|
void |
setHypervisor(java.lang.String hypervisor)
The hypervisor type of the instance.
|
void |
setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
|
void |
setImageId(java.lang.String imageId)
The ID of the AMI used to launch the instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
|
void |
setInstanceLifecycle(java.lang.String instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
|
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setKernelId(java.lang.String kernelId)
The kernel associated with this instance, if applicable.
|
void |
setKeyName(java.lang.String keyName)
The name of the key pair, if this instance was launched with an
associated key pair.
|
void |
setLaunchTime(java.util.Date launchTime)
The time the instance was launched.
|
void |
setMonitoring(Monitoring monitoring)
The monitoring information for the instance.
|
void |
setNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
|
void |
setPlacement(Placement placement)
The location where the instance launched, if applicable.
|
void |
setPlatform(PlatformValues platform)
The value is
Windows for Windows instances; otherwise blank. |
void |
setPlatform(java.lang.String platform)
The value is
Windows for Windows instances; otherwise blank. |
void |
setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name assigned to the instance.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address assigned to the instance.
|
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
|
void |
setPublicDnsName(java.lang.String publicDnsName)
The public DNS name assigned to the instance.
|
void |
setPublicIpAddress(java.lang.String publicIpAddress)
The public IP address assigned to the instance, if applicable.
|
void |
setRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with this instance, if applicable.
|
void |
setRootDeviceName(java.lang.String rootDeviceName)
The root device name (for example,
/dev/sda1 or
/dev/xvda ). |
void |
setRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI.
|
void |
setRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI.
|
void |
setSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
One or more security groups for the instance.
|
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
void |
setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
If the request is a Spot instance request, the ID of the request.
|
void |
setSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
|
void |
setState(InstanceState state)
The current state of the instance.
|
void |
setStateReason(StateReason stateReason)
The reason for the most recent state transition.
|
void |
setStateTransitionReason(java.lang.String stateTransitionReason)
The reason for the most recent state transition.
|
void |
setSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
|
void |
setVirtualizationType(java.lang.String virtualizationType)
The virtualization type of the instance.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
|
void |
setVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the
launch group.
|
Instance |
withArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
Instance |
withArchitecture(java.lang.String architecture)
The architecture of the image.
|
Instance |
withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
|
Instance |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries for the instance.
|
Instance |
withClientToken(java.lang.String clientToken)
The idempotency token you provided when you launched the instance, if
applicable.
|
Instance |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
Instance |
withHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
|
Instance |
withHypervisor(java.lang.String hypervisor)
The hypervisor type of the instance.
|
Instance |
withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
|
Instance |
withImageId(java.lang.String imageId)
The ID of the AMI used to launch the instance.
|
Instance |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
Instance |
withInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
|
Instance |
withInstanceLifecycle(java.lang.String instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
|
Instance |
withInstanceType(InstanceType instanceType)
The instance type.
|
Instance |
withInstanceType(java.lang.String instanceType)
The instance type.
|
Instance |
withKernelId(java.lang.String kernelId)
The kernel associated with this instance, if applicable.
|
Instance |
withKeyName(java.lang.String keyName)
The name of the key pair, if this instance was launched with an
associated key pair.
|
Instance |
withLaunchTime(java.util.Date launchTime)
The time the instance was launched.
|
Instance |
withMonitoring(Monitoring monitoring)
The monitoring information for the instance.
|
Instance |
withNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
|
Instance |
withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
|
Instance |
withPlacement(Placement placement)
The location where the instance launched, if applicable.
|
Instance |
withPlatform(PlatformValues platform)
The value is
Windows for Windows instances; otherwise blank. |
Instance |
withPlatform(java.lang.String platform)
The value is
Windows for Windows instances; otherwise blank. |
Instance |
withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name assigned to the instance.
|
Instance |
withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address assigned to the instance.
|
Instance |
withProductCodes(java.util.Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
|
Instance |
withProductCodes(ProductCode... productCodes)
The product codes attached to this instance, if applicable.
|
Instance |
withPublicDnsName(java.lang.String publicDnsName)
The public DNS name assigned to the instance.
|
Instance |
withPublicIpAddress(java.lang.String publicIpAddress)
The public IP address assigned to the instance, if applicable.
|
Instance |
withRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with this instance, if applicable.
|
Instance |
withRootDeviceName(java.lang.String rootDeviceName)
The root device name (for example,
/dev/sda1 or
/dev/xvda ). |
Instance |
withRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI.
|
Instance |
withRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI.
|
Instance |
withSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
One or more security groups for the instance.
|
Instance |
withSecurityGroups(GroupIdentifier... securityGroups)
One or more security groups for the instance.
|
Instance |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
Instance |
withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
If the request is a Spot instance request, the ID of the request.
|
Instance |
withSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
|
Instance |
withState(InstanceState state)
The current state of the instance.
|
Instance |
withStateReason(StateReason stateReason)
The reason for the most recent state transition.
|
Instance |
withStateTransitionReason(java.lang.String stateTransitionReason)
The reason for the most recent state transition.
|
Instance |
withSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
|
Instance |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
|
Instance |
withTags(Tag... tags)
Any tags assigned to the instance.
|
Instance |
withVirtualizationType(java.lang.String virtualizationType)
The virtualization type of the instance.
|
Instance |
withVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
|
Instance |
withVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
|
private java.lang.String instanceId
The ID of the instance.
private java.lang.String imageId
The ID of the AMI used to launch the instance.
private InstanceState state
The current state of the instance.
private java.lang.String privateDnsName
The private DNS name assigned to the instance. This DNS name can only be
used inside the Amazon EC2 network. This name is not available until the
instance enters the running
state. For EC2-VPC, this name is
only available if you've enabled DNS hostnames for your VPC.
private java.lang.String publicDnsName
The public DNS name assigned to the instance. This name is not available
until the instance enters the running
state. For EC2-VPC,
this name is only available if you've enabled DNS hostnames for your VPC.
private java.lang.String stateTransitionReason
The reason for the most recent state transition. This might be an empty string.
private java.lang.String keyName
The name of the key pair, if this instance was launched with an associated key pair.
private java.lang.Integer amiLaunchIndex
The AMI launch index, which can be used to find this instance in the launch group.
private SdkInternalList<ProductCode> productCodes
The product codes attached to this instance, if applicable.
private java.lang.String instanceType
The instance type.
private java.util.Date launchTime
The time the instance was launched.
private Placement placement
The location where the instance launched, if applicable.
private java.lang.String kernelId
The kernel associated with this instance, if applicable.
private java.lang.String ramdiskId
The RAM disk associated with this instance, if applicable.
private java.lang.String platform
The value is Windows
for Windows instances; otherwise blank.
private Monitoring monitoring
The monitoring information for the instance.
private java.lang.String subnetId
[EC2-VPC] The ID of the subnet in which the instance is running.
private java.lang.String vpcId
[EC2-VPC] The ID of the VPC in which the instance is running.
private java.lang.String privateIpAddress
The private IP address assigned to the instance.
private java.lang.String publicIpAddress
The public IP address assigned to the instance, if applicable.
private StateReason stateReason
The reason for the most recent state transition.
private java.lang.String architecture
The architecture of the image.
private java.lang.String rootDeviceType
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
private java.lang.String rootDeviceName
The root device name (for example, /dev/sda1
or
/dev/xvda
).
private SdkInternalList<InstanceBlockDeviceMapping> blockDeviceMappings
Any block device mapping entries for the instance.
private java.lang.String virtualizationType
The virtualization type of the instance.
private java.lang.String instanceLifecycle
Indicates whether this is a Spot instance or a Scheduled Instance.
private java.lang.String spotInstanceRequestId
If the request is a Spot instance request, the ID of the request.
private java.lang.String clientToken
The idempotency token you provided when you launched the instance, if applicable.
private SdkInternalList<Tag> tags
Any tags assigned to the instance.
private SdkInternalList<GroupIdentifier> securityGroups
One or more security groups for the instance.
private java.lang.Boolean sourceDestCheck
Specifies whether to enable an instance launched in a VPC to perform NAT.
This controls whether source/destination checking is enabled on the
instance. A value of true
means checking is enabled, and
false
means checking is disabled. The value must be
false
for the instance to perform NAT. For more information,
see NAT Instances in the Amazon Virtual Private Cloud User Guide.
private java.lang.String hypervisor
The hypervisor type of the instance.
private SdkInternalList<InstanceNetworkInterface> networkInterfaces
[EC2-VPC] One or more network interfaces for the instance.
private IamInstanceProfile iamInstanceProfile
The IAM instance profile associated with the instance, if applicable.
private java.lang.Boolean ebsOptimized
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
private java.lang.String sriovNetSupport
Specifies whether enhanced networking is enabled.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public Instance withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setImageId(java.lang.String imageId)
The ID of the AMI used to launch the instance.
imageId
- The ID of the AMI used to launch the instance.public java.lang.String getImageId()
The ID of the AMI used to launch the instance.
public Instance withImageId(java.lang.String imageId)
The ID of the AMI used to launch the instance.
imageId
- The ID of the AMI used to launch the instance.public void setState(InstanceState state)
The current state of the instance.
state
- The current state of the instance.public InstanceState getState()
The current state of the instance.
public Instance withState(InstanceState state)
The current state of the instance.
state
- The current state of the instance.public void setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name assigned to the instance. This DNS name can only be
used inside the Amazon EC2 network. This name is not available until the
instance enters the running
state. For EC2-VPC, this name is
only available if you've enabled DNS hostnames for your VPC.
privateDnsName
- The private DNS name assigned to the instance. This DNS name can
only be used inside the Amazon EC2 network. This name is not
available until the instance enters the running
state. For EC2-VPC, this name is only available if you've enabled
DNS hostnames for your VPC.public java.lang.String getPrivateDnsName()
The private DNS name assigned to the instance. This DNS name can only be
used inside the Amazon EC2 network. This name is not available until the
instance enters the running
state. For EC2-VPC, this name is
only available if you've enabled DNS hostnames for your VPC.
running
state. For EC2-VPC, this name is only available if you've enabled
DNS hostnames for your VPC.public Instance withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name assigned to the instance. This DNS name can only be
used inside the Amazon EC2 network. This name is not available until the
instance enters the running
state. For EC2-VPC, this name is
only available if you've enabled DNS hostnames for your VPC.
privateDnsName
- The private DNS name assigned to the instance. This DNS name can
only be used inside the Amazon EC2 network. This name is not
available until the instance enters the running
state. For EC2-VPC, this name is only available if you've enabled
DNS hostnames for your VPC.public void setPublicDnsName(java.lang.String publicDnsName)
The public DNS name assigned to the instance. This name is not available
until the instance enters the running
state. For EC2-VPC,
this name is only available if you've enabled DNS hostnames for your VPC.
publicDnsName
- The public DNS name assigned to the instance. This name is not
available until the instance enters the running
state. For EC2-VPC, this name is only available if you've enabled
DNS hostnames for your VPC.public java.lang.String getPublicDnsName()
The public DNS name assigned to the instance. This name is not available
until the instance enters the running
state. For EC2-VPC,
this name is only available if you've enabled DNS hostnames for your VPC.
running
state. For EC2-VPC, this name is only available if you've enabled
DNS hostnames for your VPC.public Instance withPublicDnsName(java.lang.String publicDnsName)
The public DNS name assigned to the instance. This name is not available
until the instance enters the running
state. For EC2-VPC,
this name is only available if you've enabled DNS hostnames for your VPC.
publicDnsName
- The public DNS name assigned to the instance. This name is not
available until the instance enters the running
state. For EC2-VPC, this name is only available if you've enabled
DNS hostnames for your VPC.public void setStateTransitionReason(java.lang.String stateTransitionReason)
The reason for the most recent state transition. This might be an empty string.
stateTransitionReason
- The reason for the most recent state transition. This might be an
empty string.public java.lang.String getStateTransitionReason()
The reason for the most recent state transition. This might be an empty string.
public Instance withStateTransitionReason(java.lang.String stateTransitionReason)
The reason for the most recent state transition. This might be an empty string.
stateTransitionReason
- The reason for the most recent state transition. This might be an
empty string.public void setKeyName(java.lang.String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
keyName
- The name of the key pair, if this instance was launched with an
associated key pair.public java.lang.String getKeyName()
The name of the key pair, if this instance was launched with an associated key pair.
public Instance withKeyName(java.lang.String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
keyName
- The name of the key pair, if this instance was launched with an
associated key pair.public void setAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in
the launch group.public java.lang.Integer getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance in the launch group.
public Instance withAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in
the launch group.public java.util.List<ProductCode> getProductCodes()
The product codes attached to this instance, if applicable.
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.public Instance withProductCodes(ProductCode... productCodes)
The product codes attached to this instance, if applicable.
NOTE: This method appends the values to the existing list (if
any). Use setProductCodes(java.util.Collection)
or
withProductCodes(java.util.Collection)
if you want to override
the existing values.
productCodes
- The product codes attached to this instance, if applicable.public Instance withProductCodes(java.util.Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.public void setInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public java.lang.String getInstanceType()
The instance type.
InstanceType
public Instance withInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public Instance withInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setLaunchTime(java.util.Date launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.public java.util.Date getLaunchTime()
The time the instance was launched.
public Instance withLaunchTime(java.util.Date launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.public void setPlacement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.public Placement getPlacement()
The location where the instance launched, if applicable.
public Instance withPlacement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.public void setKernelId(java.lang.String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.public java.lang.String getKernelId()
The kernel associated with this instance, if applicable.
public Instance withKernelId(java.lang.String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.public void setRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.public java.lang.String getRamdiskId()
The RAM disk associated with this instance, if applicable.
public Instance withRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.public void setPlatform(java.lang.String platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public java.lang.String getPlatform()
The value is Windows
for Windows instances; otherwise blank.
Windows
for Windows instances;
otherwise blank.PlatformValues
public Instance withPlatform(java.lang.String platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public void setPlatform(PlatformValues platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public Instance withPlatform(PlatformValues platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public void setMonitoring(Monitoring monitoring)
The monitoring information for the instance.
monitoring
- The monitoring information for the instance.public Monitoring getMonitoring()
The monitoring information for the instance.
public Instance withMonitoring(Monitoring monitoring)
The monitoring information for the instance.
monitoring
- The monitoring information for the instance.public void setSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
subnetId
- [EC2-VPC] The ID of the subnet in which the instance is running.public java.lang.String getSubnetId()
[EC2-VPC] The ID of the subnet in which the instance is running.
public Instance withSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
subnetId
- [EC2-VPC] The ID of the subnet in which the instance is running.public void setVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
vpcId
- [EC2-VPC] The ID of the VPC in which the instance is running.public java.lang.String getVpcId()
[EC2-VPC] The ID of the VPC in which the instance is running.
public Instance withVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
vpcId
- [EC2-VPC] The ID of the VPC in which the instance is running.public void setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address assigned to the instance.
privateIpAddress
- The private IP address assigned to the instance.public java.lang.String getPrivateIpAddress()
The private IP address assigned to the instance.
public Instance withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address assigned to the instance.
privateIpAddress
- The private IP address assigned to the instance.public void setPublicIpAddress(java.lang.String publicIpAddress)
The public IP address assigned to the instance, if applicable.
publicIpAddress
- The public IP address assigned to the instance, if applicable.public java.lang.String getPublicIpAddress()
The public IP address assigned to the instance, if applicable.
public Instance withPublicIpAddress(java.lang.String publicIpAddress)
The public IP address assigned to the instance, if applicable.
publicIpAddress
- The public IP address assigned to the instance, if applicable.public void setStateReason(StateReason stateReason)
The reason for the most recent state transition.
stateReason
- The reason for the most recent state transition.public StateReason getStateReason()
The reason for the most recent state transition.
public Instance withStateReason(StateReason stateReason)
The reason for the most recent state transition.
stateReason
- The reason for the most recent state transition.public void setArchitecture(java.lang.String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public java.lang.String getArchitecture()
The architecture of the image.
ArchitectureValues
public Instance withArchitecture(java.lang.String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public Instance withArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public java.lang.String getRootDeviceType()
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
DeviceType
public Instance withRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public void setRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public Instance withRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public void setRootDeviceName(java.lang.String rootDeviceName)
The root device name (for example, /dev/sda1
or
/dev/xvda
).
rootDeviceName
- The root device name (for example, /dev/sda1
or
/dev/xvda
).public java.lang.String getRootDeviceName()
The root device name (for example, /dev/sda1
or
/dev/xvda
).
/dev/sda1
or
/dev/xvda
).public Instance withRootDeviceName(java.lang.String rootDeviceName)
The root device name (for example, /dev/sda1
or
/dev/xvda
).
rootDeviceName
- The root device name (for example, /dev/sda1
or
/dev/xvda
).public java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
Any block device mapping entries for the instance.
public void setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.public Instance withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries for the instance.
NOTE: This method appends the values to the existing list (if
any). Use setBlockDeviceMappings(java.util.Collection)
or
withBlockDeviceMappings(java.util.Collection)
if you want to
override the existing values.
blockDeviceMappings
- Any block device mapping entries for the instance.public Instance withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.public void setVirtualizationType(java.lang.String virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public java.lang.String getVirtualizationType()
The virtualization type of the instance.
VirtualizationType
public Instance withVirtualizationType(java.lang.String virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public void setVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public Instance withVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public void setInstanceLifecycle(java.lang.String instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public java.lang.String getInstanceLifecycle()
Indicates whether this is a Spot instance or a Scheduled Instance.
InstanceLifecycleType
public Instance withInstanceLifecycle(java.lang.String instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public void setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public Instance withInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
If the request is a Spot instance request, the ID of the request.
spotInstanceRequestId
- If the request is a Spot instance request, the ID of the request.public java.lang.String getSpotInstanceRequestId()
If the request is a Spot instance request, the ID of the request.
public Instance withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
If the request is a Spot instance request, the ID of the request.
spotInstanceRequestId
- If the request is a Spot instance request, the ID of the request.public void setClientToken(java.lang.String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
clientToken
- The idempotency token you provided when you launched the instance,
if applicable.public java.lang.String getClientToken()
The idempotency token you provided when you launched the instance, if applicable.
public Instance withClientToken(java.lang.String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
clientToken
- The idempotency token you provided when you launched the instance,
if applicable.public java.util.List<Tag> getTags()
Any tags assigned to the instance.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.public Instance withTags(Tag... tags)
Any tags assigned to the instance.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the instance.public Instance withTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.public java.util.List<GroupIdentifier> getSecurityGroups()
One or more security groups for the instance.
public void setSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
One or more security groups for the instance.
securityGroups
- One or more security groups for the instance.public Instance withSecurityGroups(GroupIdentifier... securityGroups)
One or more security groups for the instance.
NOTE: This method appends the values to the existing list (if
any). Use setSecurityGroups(java.util.Collection)
or
withSecurityGroups(java.util.Collection)
if you want to override
the existing values.
securityGroups
- One or more security groups for the instance.public Instance withSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
One or more security groups for the instance.
securityGroups
- One or more security groups for the instance.public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT.
This controls whether source/destination checking is enabled on the
instance. A value of true
means checking is enabled, and
false
means checking is disabled. The value must be
false
for the instance to perform NAT. For more information,
see NAT Instances in the Amazon Virtual Private Cloud User Guide.
sourceDestCheck
- Specifies whether to enable an instance launched in a VPC to
perform NAT. This controls whether source/destination checking is
enabled on the instance. A value of true
means
checking is enabled, and false
means checking is
disabled. The value must be false
for the instance to
perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User
Guide.public java.lang.Boolean getSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
This controls whether source/destination checking is enabled on the
instance. A value of true
means checking is enabled, and
false
means checking is disabled. The value must be
false
for the instance to perform NAT. For more information,
see NAT Instances in the Amazon Virtual Private Cloud User Guide.
true
means
checking is enabled, and false
means checking is
disabled. The value must be false
for the instance
to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User
Guide.public Instance withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT.
This controls whether source/destination checking is enabled on the
instance. A value of true
means checking is enabled, and
false
means checking is disabled. The value must be
false
for the instance to perform NAT. For more information,
see NAT Instances in the Amazon Virtual Private Cloud User Guide.
sourceDestCheck
- Specifies whether to enable an instance launched in a VPC to
perform NAT. This controls whether source/destination checking is
enabled on the instance. A value of true
means
checking is enabled, and false
means checking is
disabled. The value must be false
for the instance to
perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User
Guide.public java.lang.Boolean isSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
This controls whether source/destination checking is enabled on the
instance. A value of true
means checking is enabled, and
false
means checking is disabled. The value must be
false
for the instance to perform NAT. For more information,
see NAT Instances in the Amazon Virtual Private Cloud User Guide.
true
means
checking is enabled, and false
means checking is
disabled. The value must be false
for the instance
to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User
Guide.public void setHypervisor(java.lang.String hypervisor)
The hypervisor type of the instance.
hypervisor
- The hypervisor type of the instance.HypervisorType
public java.lang.String getHypervisor()
The hypervisor type of the instance.
HypervisorType
public Instance withHypervisor(java.lang.String hypervisor)
The hypervisor type of the instance.
hypervisor
- The hypervisor type of the instance.HypervisorType
public void setHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
hypervisor
- The hypervisor type of the instance.HypervisorType
public Instance withHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
hypervisor
- The hypervisor type of the instance.HypervisorType
public java.util.List<InstanceNetworkInterface> getNetworkInterfaces()
[EC2-VPC] One or more network interfaces for the instance.
public void setNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.public Instance withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
NOTE: This method appends the values to the existing list (if
any). Use setNetworkInterfaces(java.util.Collection)
or
withNetworkInterfaces(java.util.Collection)
if you want to
override the existing values.
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.public Instance withNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.public void setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
iamInstanceProfile
- The IAM instance profile associated with the instance, if
applicable.public IamInstanceProfile getIamInstanceProfile()
The IAM instance profile associated with the instance, if applicable.
public Instance withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
iamInstanceProfile
- The IAM instance profile associated with the instance, if
applicable.public void setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O. This
optimization provides dedicated throughput to Amazon EBS and an
optimized configuration stack to provide optimal I/O performance.
This optimization isn't available with all instance types.
Additional usage charges apply when using an EBS Optimized
instance.public java.lang.Boolean getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
public Instance withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O. This
optimization provides dedicated throughput to Amazon EBS and an
optimized configuration stack to provide optimal I/O performance.
This optimization isn't available with all instance types.
Additional usage charges apply when using an EBS Optimized
instance.public java.lang.Boolean isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
public void setSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
sriovNetSupport
- Specifies whether enhanced networking is enabled.public java.lang.String getSriovNetSupport()
Specifies whether enhanced networking is enabled.
public Instance withSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
sriovNetSupport
- Specifies whether enhanced networking is enabled.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Instance clone()
clone
in class java.lang.Object