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