public class Instance extends Object implements Serializable
Describes an instance.
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.
|
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
String |
getHypervisor()
The hypervisor type of the instance.
|
IamInstanceProfile |
getIamInstanceProfile()
The IAM instance profile associated with the instance.
|
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.
|
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
The kernel associated with this instance.
|
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 information for the instance.
|
List<InstanceNetworkInterface> |
getNetworkInterfaces()
[EC2-VPC] One or more network interfaces for the instance.
|
Placement |
getPlacement()
The location where the instance launched.
|
String |
getPlatform()
The value is
Windows for Windows instances; otherwise
blank. |
String |
getPrivateDnsName()
The private DNS name assigned to the instance.
|
String |
getPrivateIpAddress()
The private IP address assigned to the instance.
|
List<ProductCode> |
getProductCodes()
The product codes attached to this instance.
|
String |
getPublicDnsName()
The public DNS name assigned to the instance.
|
String |
getPublicIpAddress()
The public IP address assigned to the instance.
|
String |
getRamdiskId()
The RAM disk associated with this instance.
|
String |
getRootDeviceName()
The root device name (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()
The ID of the Spot Instance request.
|
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.
|
String |
getStateTransitionReason()
The reason for the most recent state transition.
|
String |
getSubnetId()
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()
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 |
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.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
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.
|
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.
|
void |
setInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot 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.
|
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 information 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.
|
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)
The private DNS name assigned to the instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IP address assigned to the instance.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance.
|
void |
setPublicDnsName(String publicDnsName)
The public DNS name assigned to the instance.
|
void |
setPublicIpAddress(String publicIpAddress)
The public IP address assigned to the instance.
|
void |
setRamdiskId(String ramdiskId)
The RAM disk associated with this instance.
|
void |
setRootDeviceName(String rootDeviceName)
The root device name (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)
The ID of the Spot Instance request.
|
void |
setSriovNetSupport(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(String stateTransitionReason)
The reason for the most recent state transition.
|
void |
setSubnetId(String subnetId)
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)
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.
|
Instance |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
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.
|
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.
|
Instance |
withInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot 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.
|
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 information 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.
|
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)
The private DNS name assigned to the instance.
|
Instance |
withPrivateIpAddress(String privateIpAddress)
The private IP address assigned to the instance.
|
Instance |
withProductCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance.
|
Instance |
withProductCodes(ProductCode... productCodes)
The product codes attached to this instance.
|
Instance |
withPublicDnsName(String publicDnsName)
The public DNS name assigned to the instance.
|
Instance |
withPublicIpAddress(String publicIpAddress)
The public IP address assigned to the instance.
|
Instance |
withRamdiskId(String ramdiskId)
The RAM disk associated with this instance.
|
Instance |
withRootDeviceName(String rootDeviceName)
The root device name (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)
The ID of the Spot Instance request.
|
Instance |
withSriovNetSupport(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(String stateTransitionReason)
The reason for the most recent state transition.
|
Instance |
withSubnetId(String subnetId)
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)
The ID of the VPC in which the instance is running.
|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance.public Instance withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public String getImageId()
public void setImageId(String imageId)
imageId
- The ID of the AMI used to launch the instance.public Instance withImageId(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 String getPrivateDnsName()
running
state.running
state.public void setPrivateDnsName(String privateDnsName)
running
state.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.public Instance withPrivateDnsName(String privateDnsName)
running
state.
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.public String getPublicDnsName()
running
state.running
state.public void setPublicDnsName(String publicDnsName)
running
state.publicDnsName
- The public DNS name assigned to the instance. This name is not
available until the instance enters the running
state.public Instance withPublicDnsName(String publicDnsName)
running
state.
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.public String getStateTransitionReason()
public void setStateTransitionReason(String stateTransitionReason)
stateTransitionReason
- The reason for the most recent state transition. This might be an
empty string.public Instance withStateTransitionReason(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 String getKeyName()
public void setKeyName(String keyName)
keyName
- The name of the key pair, if this instance was launched with an
associated key pair.public Instance withKeyName(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 Integer getAmiLaunchIndex()
public void setAmiLaunchIndex(Integer amiLaunchIndex)
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in the
launch group.public Instance withAmiLaunchIndex(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 List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes
- The product codes attached to this instance.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.public Instance withProductCodes(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.public String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type.InstanceType
public Instance withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.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, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type.InstanceType
public Date getLaunchTime()
public void setLaunchTime(Date launchTime)
launchTime
- The time the instance was launched.public Instance withLaunchTime(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.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.public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- The kernel associated with this instance.public Instance withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The kernel associated with this instance.public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- The RAM disk associated with this instance.public Instance withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The RAM disk associated with this instance.public String getPlatform()
Windows
for Windows instances; otherwise
blank.
Constraints:
Allowed Values: Windows
Windows
for Windows instances; otherwise
blank.PlatformValues
public void setPlatform(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(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 String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet in which the instance is running.public Instance withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet in which the instance is running.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC in which the instance is running.public Instance withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC in which the instance is running.public String getPrivateIpAddress()
public void setPrivateIpAddress(String privateIpAddress)
privateIpAddress
- The private IP address assigned to the instance.public Instance withPrivateIpAddress(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 String getPublicIpAddress()
public void setPublicIpAddress(String publicIpAddress)
publicIpAddress
- The public IP address assigned to the instance.public Instance withPublicIpAddress(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.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 String getArchitecture()
Constraints:
Allowed Values: i386, x86_64
ArchitectureValues
public void setArchitecture(String architecture)
Constraints:
Allowed Values: i386, x86_64
architecture
- The architecture of the image.ArchitectureValues
public Instance withArchitecture(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 String getRootDeviceType()
Constraints:
Allowed Values: ebs, instance-store
DeviceType
public void setRootDeviceType(String rootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType
- The root device type used by the AMI. The AMI can use an Amazon EBS
volume or an instance store volume.DeviceType
public Instance withRootDeviceType(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 Amazon 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 Amazon 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 Amazon EBS
volume or an instance store volume.DeviceType
public String getRootDeviceName()
/dev/sda1
)./dev/sda1
).public void setRootDeviceName(String rootDeviceName)
/dev/sda1
).rootDeviceName
- The root device name (for example, /dev/sda1
).public Instance withRootDeviceName(String rootDeviceName)
/dev/sda1
).
Returns a reference to this object so that method calls can be chained together.
rootDeviceName
- The root device name (for example, /dev/sda1
).public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(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(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 String getVirtualizationType()
Constraints:
Allowed Values: hvm, paravirtual
VirtualizationType
public void setVirtualizationType(String virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType
- The virtualization type of the instance.VirtualizationType
public Instance withVirtualizationType(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 String getInstanceLifecycle()
Constraints:
Allowed Values: spot
InstanceLifecycleType
public void setInstanceLifecycle(String instanceLifecycle)
Constraints:
Allowed Values: spot
instanceLifecycle
- Indicates whether this is a Spot Instance.InstanceLifecycleType
public Instance withInstanceLifecycle(String instanceLifecycle)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: spot
instanceLifecycle
- Indicates whether this is a Spot Instance.InstanceLifecycleType
public void setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Constraints:
Allowed Values: spot
instanceLifecycle
- Indicates whether this is a Spot 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
instanceLifecycle
- Indicates whether this is a Spot Instance.InstanceLifecycleType
public String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(String spotInstanceRequestId)
spotInstanceRequestId
- The ID of the Spot Instance request.public Instance withSpotInstanceRequestId(String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId
- The ID of the Spot Instance request.public String getClientToken()
public void setClientToken(String clientToken)
clientToken
- The idempotency token you provided when you launched the instance.public Instance withClientToken(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.public List<Tag> getTags()
public void setTags(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(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 List<GroupIdentifier> getSecurityGroups()
public void setSecurityGroups(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(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 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(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(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 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 String getHypervisor()
Constraints:
Allowed Values: ovm, xen
HypervisorType
public void setHypervisor(String hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor
- The hypervisor type of the instance.HypervisorType
public Instance withHypervisor(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 List<InstanceNetworkInterface> getNetworkInterfaces()
public void setNetworkInterfaces(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(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.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.public Boolean isEbsOptimized()
public void setEbsOptimized(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(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 Boolean getEbsOptimized()
public String getSriovNetSupport()
public void setSriovNetSupport(String sriovNetSupport)
sriovNetSupport
- Specifies whether enhanced networking is enabled.public Instance withSriovNetSupport(String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport
- Specifies whether enhanced networking is enabled.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.