public class Instance
extends java.lang.Object
implements java.io.Serializable
Describes an instance.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.public Instance withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public java.lang.String getImageId()
public void setImageId(java.lang.String imageId)
imageId
- The ID of the AMI used to launch the instance.public Instance withImageId(java.lang.String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The ID of the AMI used to launch the instance.public InstanceState getState()
public void setState(InstanceState state)
state
- The current state of the instance.public Instance withState(InstanceState state)
Returns a reference to this object so that method calls can be chained together.
state
- The current state of the instance.public java.lang.String getPrivateDnsName()
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 setPrivateDnsName(java.lang.String privateDnsName)
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 Instance withPrivateDnsName(java.lang.String privateDnsName)
running
state. For EC2-VPC,
this name is only available if you've enabled DNS hostnames for your
VPC.
Returns a reference to this object so that method calls can be chained together.
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 getPublicDnsName()
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 setPublicDnsName(java.lang.String publicDnsName)
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 Instance withPublicDnsName(java.lang.String publicDnsName)
running
state.
For EC2-VPC, this name is only available if you've enabled DNS
hostnames for your VPC.
Returns a reference to this object so that method calls can be chained together.
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 getStateTransitionReason()
public void setStateTransitionReason(java.lang.String stateTransitionReason)
stateTransitionReason
- The reason for the most recent state transition. This might be an
empty string.public Instance withStateTransitionReason(java.lang.String stateTransitionReason)
Returns a reference to this object so that method calls can be chained together.
stateTransitionReason
- The reason for the most recent state transition. This might be an
empty string.public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- The name of the key pair, if this instance was launched with an
associated key pair.public Instance withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The name of the key pair, if this instance was launched with an
associated key pair.public java.lang.Integer getAmiLaunchIndex()
public void setAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in the
launch group.public Instance withAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
Returns a reference to this object so that method calls can be chained together.
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in the
launch group.public java.util.List<ProductCode> getProductCodes()
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
productCodes
- The product codes attached to this instance, if applicable.public Instance withProductCodes(ProductCode... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- The product codes attached to this instance, if applicable.public Instance withProductCodes(java.util.Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- The product codes attached to this instance, if applicable.public java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
InstanceType
public void setInstanceType(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public Instance withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public Instance withInstanceType(InstanceType instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public java.util.Date getLaunchTime()
public void setLaunchTime(java.util.Date launchTime)
launchTime
- The time the instance was launched.public Instance withLaunchTime(java.util.Date launchTime)
Returns a reference to this object so that method calls can be chained together.
launchTime
- The time the instance was launched.public Placement getPlacement()
public void setPlacement(Placement placement)
placement
- The location where the instance launched, if applicable.public Instance withPlacement(Placement placement)
Returns a reference to this object so that method calls can be chained together.
placement
- The location where the instance launched, if applicable.public java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId
- The kernel associated with this instance, if applicable.public Instance withKernelId(java.lang.String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The kernel associated with this instance, if applicable.public java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId
- The RAM disk associated with this instance, if applicable.public Instance withRamdiskId(java.lang.String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The RAM disk associated with this instance, if applicable.public java.lang.String getPlatform()
Windows
for Windows instances; otherwise
blank.
Constraints:
Allowed Values: Windows
Windows
for Windows instances; otherwise
blank.PlatformValues
public void setPlatform(java.lang.String platform)
Windows
for Windows instances; otherwise
blank.
Constraints:
Allowed Values: Windows
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public Instance withPlatform(java.lang.String platform)
Windows
for Windows instances; otherwise
blank.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Windows
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public void setPlatform(PlatformValues platform)
Windows
for Windows instances; otherwise
blank.
Constraints:
Allowed Values: Windows
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public Instance withPlatform(PlatformValues platform)
Windows
for Windows instances; otherwise
blank.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Windows
platform
- The value is Windows
for Windows instances; otherwise
blank.PlatformValues
public Monitoring getMonitoring()
public void setMonitoring(Monitoring monitoring)
monitoring
- The monitoring information for the instance.public Instance withMonitoring(Monitoring monitoring)
Returns a reference to this object so that method calls can be chained together.
monitoring
- The monitoring information for the instance.public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- [EC2-VPC] The ID of the subnet in which the instance is running.public Instance withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- [EC2-VPC] The ID of the subnet in which the instance is running.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- [EC2-VPC] The ID of the VPC in which the instance is running.public Instance withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- [EC2-VPC] The ID of the VPC in which the instance is running.public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress
- The private IP address assigned to the instance.public Instance withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress
- The private IP address assigned to the instance.public java.lang.String getPublicIpAddress()
public void setPublicIpAddress(java.lang.String publicIpAddress)
publicIpAddress
- The public IP address assigned to the instance, if applicable.public Instance withPublicIpAddress(java.lang.String publicIpAddress)
Returns a reference to this object so that method calls can be chained together.
publicIpAddress
- The public IP address assigned to the instance, if applicable.public StateReason getStateReason()
public void setStateReason(StateReason stateReason)
stateReason
- The reason for the most recent state transition.public Instance withStateReason(StateReason stateReason)
Returns a reference to this object so that method calls can be chained together.
stateReason
- The reason for the most recent state transition.public java.lang.String getArchitecture()
Constraints:
Allowed Values: i386, x86_64
ArchitectureValues
public void setArchitecture(java.lang.String architecture)
Constraints:
Allowed Values: i386, x86_64
architecture
- The architecture of the image.ArchitectureValues
public Instance withArchitecture(java.lang.String architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: i386, x86_64
architecture
- The architecture of the image.ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
Constraints:
Allowed Values: i386, x86_64
architecture
- The architecture of the image.ArchitectureValues
public Instance withArchitecture(ArchitectureValues architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: i386, x86_64
architecture
- The architecture of the image.ArchitectureValues
public java.lang.String getRootDeviceType()
Constraints:
Allowed Values: ebs, instance-store
DeviceType
public void setRootDeviceType(java.lang.String rootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
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(java.lang.String rootDeviceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
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)
Constraints:
Allowed Values: ebs, instance-store
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)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
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 getRootDeviceName()
/dev/sda1
or
/dev/xvda
)./dev/sda1
or
/dev/xvda
).public void setRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1
or
/dev/xvda
).rootDeviceName
- The root device name (for example, /dev/sda1
or
/dev/xvda
).public Instance withRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1
or
/dev/xvda
).
Returns a reference to this object so that method calls can be chained together.
rootDeviceName
- The root device name (for example, /dev/sda1
or
/dev/xvda
).public java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- Any block device mapping entries for the instance.public Instance withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Any block device mapping entries for the instance.public Instance withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Any block device mapping entries for the instance.public java.lang.String getVirtualizationType()
Constraints:
Allowed Values: hvm, paravirtual
VirtualizationType
public void setVirtualizationType(java.lang.String virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType
- The virtualization type of the instance.VirtualizationType
public Instance withVirtualizationType(java.lang.String virtualizationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType
- The virtualization type of the instance.VirtualizationType
public void setVirtualizationType(VirtualizationType virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType
- The virtualization type of the instance.VirtualizationType
public Instance withVirtualizationType(VirtualizationType virtualizationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType
- The virtualization type of the instance.VirtualizationType
public java.lang.String getInstanceLifecycle()
Constraints:
Allowed Values: spot, scheduled
InstanceLifecycleType
public void setInstanceLifecycle(java.lang.String instanceLifecycle)
Constraints:
Allowed Values: spot, scheduled
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public Instance withInstanceLifecycle(java.lang.String instanceLifecycle)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: spot, scheduled
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public void setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Constraints:
Allowed Values: spot, scheduled
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public Instance withInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: spot, scheduled
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
public java.lang.String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
spotInstanceRequestId
- If the request is a Spot instance request, the ID of the request.public Instance withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId
- If the request is a Spot instance request, the ID of the request.public java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken
- The idempotency token you provided when you launched the instance, if
applicable.public Instance withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- The idempotency token you provided when you launched the instance, if
applicable.public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- Any tags assigned to the instance.public Instance withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the instance.public Instance withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the instance.public java.util.List<GroupIdentifier> getSecurityGroups()
public void setSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
securityGroups
- One or more security groups for the instance.public Instance withSecurityGroups(GroupIdentifier... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- One or more security groups for the instance.public Instance withSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- One or more security groups for the instance.public java.lang.Boolean isSourceDestCheck()
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 setSourceDestCheck(java.lang.Boolean sourceDestCheck)
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 Instance withSourceDestCheck(java.lang.Boolean sourceDestCheck)
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.
Returns a reference to this object so that method calls can be chained together.
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()
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 java.lang.String getHypervisor()
Constraints:
Allowed Values: ovm, xen
HypervisorType
public void setHypervisor(java.lang.String hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor
- The hypervisor type of the instance.HypervisorType
public Instance withHypervisor(java.lang.String hypervisor)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ovm, xen
hypervisor
- The hypervisor type of the instance.HypervisorType
public void setHypervisor(HypervisorType hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor
- The hypervisor type of the instance.HypervisorType
public Instance withHypervisor(HypervisorType hypervisor)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ovm, xen
hypervisor
- The hypervisor type of the instance.HypervisorType
public java.util.List<InstanceNetworkInterface> getNetworkInterfaces()
public void setNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.public Instance withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.public Instance withNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.public IamInstanceProfile getIamInstanceProfile()
public void setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
iamInstanceProfile
- The IAM instance profile associated with the instance, if applicable.public Instance withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile
- The IAM instance profile associated with the instance, if applicable.public java.lang.Boolean isEbsOptimized()
public void setEbsOptimized(java.lang.Boolean ebsOptimized)
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 Instance withEbsOptimized(java.lang.Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
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()
public java.lang.String getSriovNetSupport()
public void setSriovNetSupport(java.lang.String sriovNetSupport)
sriovNetSupport
- Specifies whether enhanced networking is enabled.public Instance withSriovNetSupport(java.lang.String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport
- Specifies whether enhanced networking is enabled.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.