Class Instance
- All Implemented Interfaces:
Serializable, Cloneable
Describes an instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe 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 isWindowsfor 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/sda1or/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.inthashCode()Indicates whether the instance is optimized for EBS I/O.Specifies whether to enable an instance launched in a VPC to perform NAT.voidsetAmiLaunchIndex(Integer amiLaunchIndex) The AMI launch index, which can be used to find this instance in the launch group.voidsetArchitecture(ArchitectureValues architecture) The architecture of the image.voidsetArchitecture(String architecture) The architecture of the image.voidsetBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) Any block device mapping entries for the instance.voidsetClientToken(String clientToken) The idempotency token you provided when you launched the instance, if applicable.voidsetEbsOptimized(Boolean ebsOptimized) Indicates whether the instance is optimized for EBS I/O.voidsetHypervisor(HypervisorType hypervisor) The hypervisor type of the instance.voidsetHypervisor(String hypervisor) The hypervisor type of the instance.voidsetIamInstanceProfile(IamInstanceProfile iamInstanceProfile) The IAM instance profile associated with the instance, if applicable.voidsetImageId(String imageId) The ID of the AMI used to launch the instance.voidsetInstanceId(String instanceId) The ID of the instance.voidsetInstanceLifecycle(InstanceLifecycleType instanceLifecycle) Indicates whether this is a Spot instance or a Scheduled Instance.voidsetInstanceLifecycle(String instanceLifecycle) Indicates whether this is a Spot instance or a Scheduled Instance.voidsetInstanceType(InstanceType instanceType) The instance type.voidsetInstanceType(String instanceType) The instance type.voidsetKernelId(String kernelId) The kernel associated with this instance, if applicable.voidsetKeyName(String keyName) The name of the key pair, if this instance was launched with an associated key pair.voidsetLaunchTime(Date launchTime) The time the instance was launched.voidsetMonitoring(Monitoring monitoring) The monitoring information for the instance.voidsetNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces) [EC2-VPC] One or more network interfaces for the instance.voidsetPlacement(Placement placement) The location where the instance launched, if applicable.voidsetPlatform(PlatformValues platform) The value isWindowsfor Windows instances; otherwise blank.voidsetPlatform(String platform) The value isWindowsfor Windows instances; otherwise blank.voidsetPrivateDnsName(String privateDnsName) The private DNS name assigned to the instance.voidsetPrivateIpAddress(String privateIpAddress) The private IP address assigned to the instance.voidsetProductCodes(Collection<ProductCode> productCodes) The product codes attached to this instance, if applicable.voidsetPublicDnsName(String publicDnsName) The public DNS name assigned to the instance.voidsetPublicIpAddress(String publicIpAddress) The public IP address assigned to the instance, if applicable.voidsetRamdiskId(String ramdiskId) The RAM disk associated with this instance, if applicable.voidsetRootDeviceName(String rootDeviceName) The root device name (for example,/dev/sda1or/dev/xvda).voidsetRootDeviceType(DeviceType rootDeviceType) The root device type used by the AMI.voidsetRootDeviceType(String rootDeviceType) The root device type used by the AMI.voidsetSecurityGroups(Collection<GroupIdentifier> securityGroups) One or more security groups for the instance.voidsetSourceDestCheck(Boolean sourceDestCheck) Specifies whether to enable an instance launched in a VPC to perform NAT.voidsetSpotInstanceRequestId(String spotInstanceRequestId) If the request is a Spot instance request, the ID of the request.voidsetSriovNetSupport(String sriovNetSupport) Specifies whether enhanced networking is enabled.voidsetState(InstanceState state) The current state of the instance.voidsetStateReason(StateReason stateReason) The reason for the most recent state transition.voidsetStateTransitionReason(String stateTransitionReason) The reason for the most recent state transition.voidsetSubnetId(String subnetId) [EC2-VPC] The ID of the subnet in which the instance is running.voidsetTags(Collection<Tag> tags) Any tags assigned to the instance.voidsetVirtualizationType(VirtualizationType virtualizationType) The virtualization type of the instance.voidsetVirtualizationType(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 isWindowsfor Windows instances; otherwise blank.withPlatform(String platform) The value isWindowsfor 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/sda1or/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
-
withInstanceId
-
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
-
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
runningstate. 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 therunningstate. 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
runningstate. 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
runningstate. 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
runningstate. 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 therunningstate. 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
runningstate. 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 therunningstate. 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
runningstate. 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
runningstate. 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
runningstate. 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 therunningstate. 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
-
withInstanceType
-
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
-
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
-
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
-
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
-
setPlatform
The value is
Windowsfor Windows instances; otherwise blank.- Parameters:
platform- The value isWindowsfor Windows instances; otherwise blank.- See Also:
-
getPlatform
The value is
Windowsfor Windows instances; otherwise blank.- Returns:
- The value is
Windowsfor Windows instances; otherwise blank. - See Also:
-
withPlatform
-
setPlatform
The value is
Windowsfor Windows instances; otherwise blank.- Parameters:
platform- The value isWindowsfor Windows instances; otherwise blank.- See Also:
-
withPlatform
The value is
Windowsfor Windows instances; otherwise blank.- Parameters:
platform- The value isWindowsfor 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
-
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
-
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
-
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
-
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/sda1or/dev/xvda).- Parameters:
rootDeviceName- The root device name (for example,/dev/sda1or/dev/xvda).
-
getRootDeviceName
The root device name (for example,
/dev/sda1or/dev/xvda).- Returns:
- The root device name (for example,
/dev/sda1or/dev/xvda).
-
withRootDeviceName
-
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
-
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
-
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
truemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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 oftruemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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
truemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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
truemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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
truemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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 oftruemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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
truemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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
truemeans checking is enabled, andfalsemeans checking is disabled. The value must befalsefor 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
-
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
-
toString
-
equals
-
hashCode
-
clone
-