public class Instance extends Object implements Serializable
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance in the launch group.
|
String |
getArchitecture()
The architecture of the image.
|
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
Any block device mapping entries for the instance.
|
String |
getClientToken()
The idempotency token you provided when you launched the instance, if applicable.
|
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
Boolean |
getEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
|
String |
getHypervisor()
The hypervisor type of the instance.
|
IamInstanceProfile |
getIamInstanceProfile()
The IAM instance profile associated with the instance, if applicable.
|
String |
getImageId()
The ID of the AMI used to launch the instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceLifecycle()
Indicates whether this is a Spot instance or a Scheduled Instance.
|
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
The kernel associated with this instance, if applicable.
|
String |
getKeyName()
The name of the key pair, if this instance was launched with an associated key pair.
|
Date |
getLaunchTime()
The time the instance was launched.
|
Monitoring |
getMonitoring()
The monitoring for the instance.
|
List<InstanceNetworkInterface> |
getNetworkInterfaces()
[EC2-VPC] One or more network interfaces for the instance.
|
Placement |
getPlacement()
The location where the instance launched, if applicable.
|
String |
getPlatform()
The value is
Windows for Windows instances; otherwise blank. |
String |
getPrivateDnsName()
(IPv4 only) The private DNS hostname name assigned to the instance.
|
String |
getPrivateIpAddress()
The private IPv4 address assigned to the instance.
|
List<ProductCode> |
getProductCodes()
The product codes attached to this instance, if applicable.
|
String |
getPublicDnsName()
(IPv4 only) The public DNS name assigned to the instance.
|
String |
getPublicIpAddress()
The public IPv4 address assigned to the instance, if applicable.
|
String |
getRamdiskId()
The RAM disk associated with this instance, if applicable.
|
String |
getRootDeviceName()
The root device name (for example,
/dev/sda1 or /dev/xvda ). |
String |
getRootDeviceType()
The root device type used by the AMI.
|
List<GroupIdentifier> |
getSecurityGroups()
One or more security groups for the instance.
|
Boolean |
getSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
String |
getSpotInstanceRequestId()
If the request is a Spot instance request, the ID of the request.
|
String |
getSriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
InstanceState |
getState()
The current state of the instance.
|
StateReason |
getStateReason()
The reason for the most recent state transition.
|
String |
getStateTransitionReason()
The reason for the most recent state transition.
|
String |
getSubnetId()
[EC2-VPC] The ID of the subnet in which the instance is running.
|
List<Tag> |
getTags()
Any tags assigned to the instance.
|
String |
getVirtualizationType()
The virtualization type of the instance.
|
String |
getVpcId()
[EC2-VPC] The ID of the VPC in which the instance is running.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
Boolean |
isEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
|
Boolean |
isSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
void |
setAmiLaunchIndex(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(String architecture)
The architecture of the image.
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
|
void |
setClientToken(String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
void |
setEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
|
void |
setHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
|
void |
setHypervisor(String hypervisor)
The hypervisor type of the instance.
|
void |
setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
|
void |
setImageId(String imageId)
The ID of the AMI used to launch the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
|
void |
setInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
|
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setKernelId(String kernelId)
The kernel associated with this instance, if applicable.
|
void |
setKeyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
|
void |
setLaunchTime(Date launchTime)
The time the instance was launched.
|
void |
setMonitoring(Monitoring monitoring)
The monitoring for the instance.
|
void |
setNetworkInterfaces(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(String platform)
The value is
Windows for Windows instances; otherwise blank. |
void |
setPrivateDnsName(String privateDnsName)
(IPv4 only) The private DNS hostname name assigned to the instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
|
void |
setPublicDnsName(String publicDnsName)
(IPv4 only) The public DNS name assigned to the instance.
|
void |
setPublicIpAddress(String publicIpAddress)
The public IPv4 address assigned to the instance, if applicable.
|
void |
setRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
|
void |
setRootDeviceName(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(String rootDeviceType)
The root device type used by the AMI.
|
void |
setSecurityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups for the instance.
|
void |
setSourceDestCheck(Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
void |
setSpotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot instance request, the ID of the request.
|
void |
setSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface 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(String stateTransitionReason)
The reason for the most recent state transition.
|
void |
setSubnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the instance.
|
void |
setVirtualizationType(String virtualizationType)
The virtualization type of the instance.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
|
void |
setVpcId(String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Instance |
withVirtualizationType(String virtualizationType)
The virtualization type of the instance.
|
public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public void setImageId(String imageId)
The ID of the AMI used to launch the instance.
imageId
- The ID of the AMI used to launch the instance.public String getImageId()
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 void setPrivateDnsName(String privateDnsName)
(IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the
Amazon EC2 network. This name is not available until the instance enters the running
state.
[EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
privateDnsName
- (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used
inside the Amazon EC2 network. This name is not available until the instance enters the
running
state.
[EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
public String getPrivateDnsName()
(IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the
Amazon EC2 network. This name is not available until the instance enters the running
state.
[EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
(IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used
inside the Amazon EC2 network. This name is not available until the instance enters the
running
state.
public void setPublicDnsName(String publicDnsName)
(IPv4 only) 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
- (IPv4 only) 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 String getPublicDnsName()
(IPv4 only) 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 void setStateTransitionReason(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 String getStateTransitionReason()
The reason for the most recent state transition. This might be an empty string.
public void setKeyName(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 String getKeyName()
The name of the key pair, if this instance was launched with an associated key pair.
public void setAmiLaunchIndex(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 Integer getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance in the launch group.
public List<ProductCode> getProductCodes()
The product codes attached to this instance, if applicable.
public void setProductCodes(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(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public String getInstanceType()
The instance type.
InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setLaunchTime(Date launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.public Date getLaunchTime()
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 void setKernelId(String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.public String getKernelId()
The kernel associated with this instance, if applicable.
public void setRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.public String getRamdiskId()
The RAM disk associated with this instance, if applicable.
public void setPlatform(String platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise blank.PlatformValues
public String getPlatform()
The value is Windows
for Windows instances; otherwise blank.
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 void setMonitoring(Monitoring monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.public Monitoring getMonitoring()
The monitoring for the instance.
public void setSubnetId(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 String getSubnetId()
[EC2-VPC] The ID of the subnet in which the instance is running.
public void setVpcId(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 String getVpcId()
[EC2-VPC] The ID of the VPC in which the instance is running.
public void setPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
privateIpAddress
- The private IPv4 address assigned to the instance.public String getPrivateIpAddress()
The private IPv4 address assigned to the instance.
public void setPublicIpAddress(String publicIpAddress)
The public IPv4 address assigned to the instance, if applicable.
publicIpAddress
- The public IPv4 address assigned to the instance, if applicable.public String getPublicIpAddress()
The public IPv4 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 void setArchitecture(String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public String getArchitecture()
The architecture of the image.
ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setRootDeviceType(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 String getRootDeviceType()
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 void setRootDeviceName(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 String getRootDeviceName()
The root device name (for example, /dev/sda1
or /dev/xvda
).
/dev/sda1
or /dev/xvda
).public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
Any block device mapping entries for the instance.
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.public void setVirtualizationType(String virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public String getVirtualizationType()
The virtualization type of the instance.
VirtualizationType
public Instance withVirtualizationType(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 void setInstanceLifecycle(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 String getInstanceLifecycle()
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 void setSpotInstanceRequestId(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 String getSpotInstanceRequestId()
If the request is a Spot instance request, the ID of the request.
public void setClientToken(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 String getClientToken()
The idempotency token you provided when you launched the instance, if applicable.
public List<Tag> getTags()
Any tags assigned to the instance.
public void setTags(Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.public List<GroupIdentifier> getSecurityGroups()
One or more security groups for the instance.
public void setSecurityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups for the instance.
securityGroups
- One or more security groups for the instance.public void setSourceDestCheck(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 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 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(String hypervisor)
The hypervisor type of the instance.
hypervisor
- The hypervisor type of the instance.HypervisorType
public String getHypervisor()
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 List<InstanceNetworkInterface> getNetworkInterfaces()
[EC2-VPC] One or more network interfaces for the instance.
public void setNetworkInterfaces(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 void setEbsOptimized(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 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 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(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.public String getSriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public void setEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.public Boolean getEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
public Boolean isEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010–2020. All rights reserved.