@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable
Describes an instance.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
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 Amazon EBS I/O.
|
List<ElasticGpuAssociation> |
getElasticGpuAssociations()
The Elastic GPU associated with the instance.
|
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 device name of the root device volume (for example,
/dev/sda1 ). |
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 Amazon 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 Amazon EBS I/O.
|
void |
setElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
The Elastic GPU associated with the instance.
|
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 device name of the root device volume (for example,
/dev/sda1 ). |
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 |
withAmiLaunchIndex(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(String architecture)
The architecture of the image.
|
Instance |
withBlockDeviceMappings(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(String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
|
Instance |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
Instance |
withElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
The Elastic GPU associated with the instance.
|
Instance |
withElasticGpuAssociations(ElasticGpuAssociation... elasticGpuAssociations)
The Elastic GPU associated with the instance.
|
Instance |
withEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
|
Instance |
withHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
|
Instance |
withHypervisor(String hypervisor)
The hypervisor type of the instance.
|
Instance |
withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
|
Instance |
withImageId(String imageId)
The ID of the AMI used to launch the instance.
|
Instance |
withInstanceId(String instanceId)
The ID of the instance.
|
Instance |
withInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
Instance |
withInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
Instance |
withInstanceType(InstanceType instanceType)
The instance type.
|
Instance |
withInstanceType(String instanceType)
The instance type.
|
Instance |
withKernelId(String kernelId)
The kernel associated with this instance, if applicable.
|
Instance |
withKeyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
|
Instance |
withLaunchTime(Date launchTime)
The time the instance was launched.
|
Instance |
withMonitoring(Monitoring monitoring)
The monitoring for the instance.
|
Instance |
withNetworkInterfaces(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(String platform)
The value is
Windows for Windows instances; otherwise blank. |
Instance |
withPrivateDnsName(String privateDnsName)
(IPv4 only) The private DNS hostname name assigned to the instance.
|
Instance |
withPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
|
Instance |
withProductCodes(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(String publicDnsName)
(IPv4 only) The public DNS name assigned to the instance.
|
Instance |
withPublicIpAddress(String publicIpAddress)
The public IPv4 address assigned to the instance, if applicable.
|
Instance |
withRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
|
Instance |
withRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1 ). |
Instance |
withRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI.
|
Instance |
withRootDeviceType(String rootDeviceType)
The root device type used by the AMI.
|
Instance |
withSecurityGroups(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(Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
Instance |
withSpotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot Instance request, the ID of the request.
|
Instance |
withSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface 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(String stateTransitionReason)
The reason for the most recent state transition.
|
Instance |
withSubnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
|
Instance |
withTags(Collection<Tag> tags)
Any tags assigned to the instance.
|
Instance |
withTags(Tag... tags)
Any tags assigned to the instance.
|
Instance |
withVirtualizationType(String virtualizationType)
The virtualization type of the instance.
|
Instance |
withVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
|
Instance |
withVpcId(String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
|
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 Instance withAmiLaunchIndex(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 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 Instance withImageId(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 setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public Instance withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public String getInstanceType()
The instance type.
InstanceType
public Instance withInstanceType(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 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 Instance withKernelId(String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.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 Instance withKeyName(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 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 Instance withLaunchTime(Date launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.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 Instance withMonitoring(Monitoring monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.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 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 Instance withPlatform(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 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 resolves 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 resolves 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 resolves 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.
running
state.
[EC2-VPC] The Amazon-provided DNS server resolves 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 Instance withPrivateDnsName(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 resolves 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 resolves 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 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 Instance withPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
privateIpAddress
- The private IPv4 address assigned to the instance.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 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(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.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 Instance withPublicDnsName(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 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 Instance withPublicIpAddress(String publicIpAddress)
The public IPv4 address assigned to the instance, if applicable.
publicIpAddress
- The public IPv4 address assigned to the 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 Instance withRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.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 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 Instance withStateTransitionReason(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 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 Instance withSubnetId(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(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 Instance withVpcId(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 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 Instance withArchitecture(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 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 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(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.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 Instance withClientToken(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 void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon 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 Amazon 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 Amazon 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(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon 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 Amazon 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 Amazon 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 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 Instance withEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.public Boolean isEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
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 Instance withHypervisor(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 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 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 Instance withInstanceLifecycle(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 List<ElasticGpuAssociation> getElasticGpuAssociations()
The Elastic GPU associated with the instance.
public void setElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
The Elastic GPU associated with the instance.
elasticGpuAssociations
- The Elastic GPU associated with the instance.public Instance withElasticGpuAssociations(ElasticGpuAssociation... elasticGpuAssociations)
The Elastic GPU associated with the instance.
NOTE: This method appends the values to the existing list (if any). Use
setElasticGpuAssociations(java.util.Collection)
or
withElasticGpuAssociations(java.util.Collection)
if you want to override the existing values.
elasticGpuAssociations
- The Elastic GPU associated with the instance.public Instance withElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
The Elastic GPU associated with the instance.
elasticGpuAssociations
- The Elastic GPU associated with the instance.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 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(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 setRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).public String getRootDeviceName()
The device name of the root device volume (for example, /dev/sda1
).
/dev/sda1
).public Instance withRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).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 Instance withRootDeviceType(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 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 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(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 that checking is
enabled, and false
means that 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 that checking
is enabled, and false
means that 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 that checking is
enabled, and false
means that 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 that checking
is enabled, and false
means that 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(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 that checking is
enabled, and false
means that 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 that checking
is enabled, and false
means that 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 that checking is
enabled, and false
means that 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 that checking
is enabled, and false
means that 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 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 Instance withSpotInstanceRequestId(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 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 Instance withSriovNetSupport(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 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 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 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(Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to 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 Instance withVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.