public class Instance extends Object implements Serializable
Represents an Amazon EC2 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 within
the launch group.
|
String |
getArchitecture()
The architecture of this instance.
|
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
Block device mapping set.
|
String |
getClientToken()
Returns the value of the ClientToken property for this object.
|
Boolean |
getEbsOptimized()
Returns the value of the EbsOptimized property for this object.
|
String |
getHypervisor()
Returns the value of the Hypervisor property for this object.
|
IamInstanceProfile |
getIamInstanceProfile()
Returns the value of the IamInstanceProfile property for this object.
|
String |
getImageId()
Image ID of the AMI used to launch the instance.
|
String |
getInstanceId()
Unique ID of the instance launched.
|
String |
getInstanceLifecycle()
Constraints:
Allowed Values: spot |
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
Kernel associated with this instance.
|
String |
getKeyName()
If this instance was launched with an associated key pair, this
displays the key pair name.
|
Date |
getLaunchTime()
The time this instance launched.
|
InstanceLicense |
getLicense()
Represents an active license in use and attached to an Amazon EC2
instance.
|
Monitoring |
getMonitoring()
Monitoring status for this instance.
|
List<InstanceNetworkInterface> |
getNetworkInterfaces()
Returns the value of the NetworkInterfaces property for this object.
|
Placement |
getPlacement()
The location where this instance launched.
|
String |
getPlatform()
Platform of the instance (e.g., Windows).
|
String |
getPrivateDnsName()
The private DNS name assigned to the instance.
|
String |
getPrivateIpAddress()
Specifies the private IP address that is assigned to the instance
(Amazon VPC).
|
List<ProductCode> |
getProductCodes()
Product codes attached to this instance.
|
String |
getPublicDnsName()
The public DNS name assigned to the instance.
|
String |
getPublicIpAddress()
Specifies the IP address of the instance.
|
String |
getRamdiskId()
RAM disk associated with this instance.
|
String |
getRootDeviceName()
The root device name (e.g.,
/dev/sda1 ). |
String |
getRootDeviceType()
The root device type used by the AMI.
|
List<GroupIdentifier> |
getSecurityGroups()
Returns the value of the SecurityGroups property for this object.
|
Boolean |
getSourceDestCheck()
Returns the value of the SourceDestCheck property for this object.
|
String |
getSpotInstanceRequestId() |
String |
getSriovNetSupport()
Returns the value of the SriovNetSupport property for this object.
|
InstanceState |
getState()
The current state of the instance.
|
StateReason |
getStateReason()
The reason for the state change.
|
String |
getStateTransitionReason()
Reason for the most recent state transition.
|
String |
getSubnetId()
Specifies the Amazon VPC subnet ID in which the instance is running.
|
List<Tag> |
getTags()
A list of tags for the Instance.
|
String |
getVirtualizationType()
Returns the value of the VirtualizationType property for this object.
|
String |
getVpcId()
Specifies the Amazon VPC in which the instance is running.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Returns the value of the EbsOptimized property for this object.
|
Boolean |
isSourceDestCheck()
Returns the value of the SourceDestCheck property for this object.
|
void |
setAmiLaunchIndex(Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance within
the launch group.
|
void |
setArchitecture(ArchitectureValues architecture)
The architecture of this instance.
|
void |
setArchitecture(String architecture)
The architecture of this instance.
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Block device mapping set.
|
void |
setClientToken(String clientToken)
Sets the value of the ClientToken property for this object.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object.
|
void |
setHypervisor(HypervisorType hypervisor)
Sets the value of the Hypervisor property for this object.
|
void |
setHypervisor(String hypervisor)
Sets the value of the Hypervisor property for this object.
|
void |
setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.
|
void |
setImageId(String imageId)
Image ID of the AMI used to launch the instance.
|
void |
setInstanceId(String instanceId)
Unique ID of the instance launched.
|
void |
setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Constraints:
Allowed Values: spot |
void |
setInstanceLifecycle(String instanceLifecycle)
Constraints:
Allowed Values: spot |
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setKernelId(String kernelId)
Kernel associated with this instance.
|
void |
setKeyName(String keyName)
If this instance was launched with an associated key pair, this
displays the key pair name.
|
void |
setLaunchTime(Date launchTime)
The time this instance launched.
|
void |
setLicense(InstanceLicense license)
Represents an active license in use and attached to an Amazon EC2
instance.
|
void |
setMonitoring(Monitoring monitoring)
Monitoring status for this instance.
|
void |
setNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.
|
void |
setPlacement(Placement placement)
The location where this instance launched.
|
void |
setPlatform(PlatformValues platform)
Platform of the instance (e.g., Windows).
|
void |
setPlatform(String platform)
Platform of the instance (e.g., Windows).
|
void |
setPrivateDnsName(String privateDnsName)
The private DNS name assigned to the instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
Specifies the private IP address that is assigned to the instance
(Amazon VPC).
|
void |
setProductCodes(Collection<ProductCode> productCodes)
Product codes attached to this instance.
|
void |
setPublicDnsName(String publicDnsName)
The public DNS name assigned to the instance.
|
void |
setPublicIpAddress(String publicIpAddress)
Specifies the IP address of the instance.
|
void |
setRamdiskId(String ramdiskId)
RAM disk associated with this instance.
|
void |
setRootDeviceName(String rootDeviceName)
The root device name (e.g.,
/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)
Sets the value of the SecurityGroups property for this object.
|
void |
setSourceDestCheck(Boolean sourceDestCheck)
Sets the value of the SourceDestCheck property for this object.
|
void |
setSpotInstanceRequestId(String spotInstanceRequestId) |
void |
setSriovNetSupport(String sriovNetSupport)
Sets the value of the SriovNetSupport property for this object.
|
void |
setState(InstanceState state)
The current state of the instance.
|
void |
setStateReason(StateReason stateReason)
The reason for the state change.
|
void |
setStateTransitionReason(String stateTransitionReason)
Reason for the most recent state transition.
|
void |
setSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID in which the instance is running.
|
void |
setTags(Collection<Tag> tags)
A list of tags for the Instance.
|
void |
setVirtualizationType(String virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
void |
setVpcId(String vpcId)
Specifies the Amazon 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 within
the launch group.
|
Instance |
withArchitecture(ArchitectureValues architecture)
The architecture of this instance.
|
Instance |
withArchitecture(String architecture)
The architecture of this instance.
|
Instance |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Block device mapping set.
|
Instance |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Block device mapping set.
|
Instance |
withClientToken(String clientToken)
Sets the value of the ClientToken property for this object.
|
Instance |
withEbsOptimized(Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object.
|
Instance |
withHypervisor(HypervisorType hypervisor)
Sets the value of the Hypervisor property for this object.
|
Instance |
withHypervisor(String hypervisor)
Sets the value of the Hypervisor property for this object.
|
Instance |
withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.
|
Instance |
withImageId(String imageId)
Image ID of the AMI used to launch the instance.
|
Instance |
withInstanceId(String instanceId)
Unique ID of the instance launched.
|
Instance |
withInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Returns a reference to this object so that method calls can be chained together.
|
Instance |
withInstanceLifecycle(String instanceLifecycle)
Returns a reference to this object so that method calls can be chained together.
|
Instance |
withInstanceType(InstanceType instanceType)
The instance type.
|
Instance |
withInstanceType(String instanceType)
The instance type.
|
Instance |
withKernelId(String kernelId)
Kernel associated with this instance.
|
Instance |
withKeyName(String keyName)
If this instance was launched with an associated key pair, this
displays the key pair name.
|
Instance |
withLaunchTime(Date launchTime)
The time this instance launched.
|
Instance |
withLicense(InstanceLicense license)
Represents an active license in use and attached to an Amazon EC2
instance.
|
Instance |
withMonitoring(Monitoring monitoring)
Monitoring status for this instance.
|
Instance |
withNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.
|
Instance |
withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.
|
Instance |
withPlacement(Placement placement)
The location where this instance launched.
|
Instance |
withPlatform(PlatformValues platform)
Platform of the instance (e.g., Windows).
|
Instance |
withPlatform(String platform)
Platform of the instance (e.g., Windows).
|
Instance |
withPrivateDnsName(String privateDnsName)
The private DNS name assigned to the instance.
|
Instance |
withPrivateIpAddress(String privateIpAddress)
Specifies the private IP address that is assigned to the instance
(Amazon VPC).
|
Instance |
withProductCodes(Collection<ProductCode> productCodes)
Product codes attached to this instance.
|
Instance |
withProductCodes(ProductCode... productCodes)
Product codes attached to this instance.
|
Instance |
withPublicDnsName(String publicDnsName)
The public DNS name assigned to the instance.
|
Instance |
withPublicIpAddress(String publicIpAddress)
Specifies the IP address of the instance.
|
Instance |
withRamdiskId(String ramdiskId)
RAM disk associated with this instance.
|
Instance |
withRootDeviceName(String rootDeviceName)
The root device name (e.g.,
/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)
Sets the value of the SecurityGroups property for this object.
|
Instance |
withSecurityGroups(GroupIdentifier... securityGroups)
Sets the value of the SecurityGroups property for this object.
|
Instance |
withSourceDestCheck(Boolean sourceDestCheck)
Sets the value of the SourceDestCheck property for this object.
|
Instance |
withSpotInstanceRequestId(String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
|
Instance |
withSriovNetSupport(String sriovNetSupport)
Sets the value of the SriovNetSupport property for this object.
|
Instance |
withState(InstanceState state)
The current state of the instance.
|
Instance |
withStateReason(StateReason stateReason)
The reason for the state change.
|
Instance |
withStateTransitionReason(String stateTransitionReason)
Reason for the most recent state transition.
|
Instance |
withSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID in which the instance is running.
|
Instance |
withTags(Collection<Tag> tags)
A list of tags for the Instance.
|
Instance |
withTags(Tag... tags)
A list of tags for the Instance.
|
Instance |
withVirtualizationType(String virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
Instance |
withVirtualizationType(VirtualizationType virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
Instance |
withVpcId(String vpcId)
Specifies the Amazon VPC in which the instance is running.
|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- Unique ID of the instance launched.public Instance withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- Unique ID of the instance launched.public String getImageId()
public void setImageId(String imageId)
imageId
- Image 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
- Image 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()
public void setPrivateDnsName(String privateDnsName)
privateDnsName
- The private DNS name assigned to the instance. This DNS name can only
be used inside the Amazon EC2 network. This element remains empty
until the instance enters a running state.public Instance withPrivateDnsName(String privateDnsName)
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 element remains empty
until the instance enters a running state.public String getPublicDnsName()
public void setPublicDnsName(String publicDnsName)
publicDnsName
- The public DNS name assigned to the instance. This DNS name is
contactable from outside the Amazon EC2 network. This element remains
empty until the instance enters a running state.public Instance withPublicDnsName(String publicDnsName)
Returns a reference to this object so that method calls can be chained together.
publicDnsName
- The public DNS name assigned to the instance. This DNS name is
contactable from outside the Amazon EC2 network. This element remains
empty until the instance enters a running state.public String getStateTransitionReason()
public void setStateTransitionReason(String stateTransitionReason)
stateTransitionReason
- 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
- Reason for the most recent state transition. This might be an empty
string.public String getKeyName()
public void setKeyName(String keyName)
keyName
- If this instance was launched with an associated key pair, this
displays the key pair name.public Instance withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- If this instance was launched with an associated key pair, this
displays the key pair name.public Integer getAmiLaunchIndex()
public void setAmiLaunchIndex(Integer amiLaunchIndex)
amiLaunchIndex
- The AMI launch index, which can be used to find this instance within
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 within
the launch group.public List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes
- 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
- 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
- Product codes attached to this instance.public String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.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
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.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
instanceType
- The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.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.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.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
instanceType
- The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.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
instanceType
- The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.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.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.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
instanceType
- The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.InstanceType
public Date getLaunchTime()
public void setLaunchTime(Date launchTime)
launchTime
- The time this instance launched.public Instance withLaunchTime(Date launchTime)
Returns a reference to this object so that method calls can be chained together.
launchTime
- The time this instance launched.public Placement getPlacement()
public void setPlacement(Placement placement)
placement
- The location where this 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 this instance launched.public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- 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
- Kernel associated with this instance.public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- 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
- RAM disk associated with this instance.public String getPlatform()
Constraints:
Allowed Values: Windows
PlatformValues
public void setPlatform(String platform)
Constraints:
Allowed Values: Windows
platform
- Platform of the instance (e.g., Windows).PlatformValues
public Instance withPlatform(String platform)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Windows
platform
- Platform of the instance (e.g., Windows).PlatformValues
public void setPlatform(PlatformValues platform)
Constraints:
Allowed Values: Windows
platform
- Platform of the instance (e.g., Windows).PlatformValues
public Instance withPlatform(PlatformValues platform)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Windows
platform
- Platform of the instance (e.g., Windows).PlatformValues
public Monitoring getMonitoring()
public void setMonitoring(Monitoring monitoring)
monitoring
- Monitoring status for this instance.public Instance withMonitoring(Monitoring monitoring)
Returns a reference to this object so that method calls can be chained together.
monitoring
- Monitoring status for this instance.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- Specifies the Amazon VPC subnet ID 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
- Specifies the Amazon VPC subnet ID in which the instance is running.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- Specifies the Amazon 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
- Specifies the Amazon VPC in which the instance is running.public String getPrivateIpAddress()
public void setPrivateIpAddress(String privateIpAddress)
privateIpAddress
- Specifies the private IP address that is assigned to the instance
(Amazon VPC).public Instance withPrivateIpAddress(String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress
- Specifies the private IP address that is assigned to the instance
(Amazon VPC).public String getPublicIpAddress()
public void setPublicIpAddress(String publicIpAddress)
publicIpAddress
- Specifies the IP address of the instance.public Instance withPublicIpAddress(String publicIpAddress)
Returns a reference to this object so that method calls can be chained together.
publicIpAddress
- Specifies the IP address of the instance.public StateReason getStateReason()
public void setStateReason(StateReason stateReason)
stateReason
- The reason for the state change.public Instance withStateReason(StateReason stateReason)
Returns a reference to this object so that method calls can be chained together.
stateReason
- The reason for the state change.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 this instance.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 this instance.ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
Constraints:
Allowed Values: i386, x86_64
architecture
- The architecture of this instance.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 this instance.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 or
instance store root device.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 or
instance store root device.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 or
instance store root device.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 or
instance store root device.DeviceType
public String getRootDeviceName()
/dev/sda1
)./dev/sda1
).public void setRootDeviceName(String rootDeviceName)
/dev/sda1
).rootDeviceName
- The root device name (e.g., /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 (e.g., /dev/sda1
).public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- Block device mapping set.public Instance withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Block device mapping set.public Instance withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Block device mapping set.public String getVirtualizationType()
Constraints:
Allowed Values: hvm, paravirtual
VirtualizationType
public void setVirtualizationType(String virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType
- The new value for the VirtualizationType property for this object.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 new value for the VirtualizationType property for this object.VirtualizationType
public void setVirtualizationType(VirtualizationType virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType
- The new value for the VirtualizationType property for this object.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 new value for the VirtualizationType property for this object.VirtualizationType
public String getInstanceLifecycle()
Constraints:
Allowed Values: spot
InstanceLifecycleType
public void setInstanceLifecycle(String instanceLifecycle)
Constraints:
Allowed Values: spot
instanceLifecycle
- 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
- InstanceLifecycleType
public void setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Constraints:
Allowed Values: spot
instanceLifecycle
- 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
- InstanceLifecycleType
public String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(String spotInstanceRequestId)
spotInstanceRequestId
- public Instance withSpotInstanceRequestId(String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId
- public InstanceLicense getLicense()
public void setLicense(InstanceLicense license)
license
- Represents an active license in use and attached to an Amazon EC2
instance.public Instance withLicense(InstanceLicense license)
Returns a reference to this object so that method calls can be chained together.
license
- Represents an active license in use and attached to an Amazon EC2
instance.public String getClientToken()
public void setClientToken(String clientToken)
clientToken
- The new value for the ClientToken property for this object.public Instance withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- The new value for the ClientToken property for this object.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of tags for the Instance.public Instance withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Instance.public Instance withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Instance.public List<GroupIdentifier> getSecurityGroups()
public void setSecurityGroups(Collection<GroupIdentifier> securityGroups)
securityGroups
- The new value for the SecurityGroups property for this object.public Instance withSecurityGroups(GroupIdentifier... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The new value for the SecurityGroups property for this object.public Instance withSecurityGroups(Collection<GroupIdentifier> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The new value for the SecurityGroups property for this object.public Boolean isSourceDestCheck()
public void setSourceDestCheck(Boolean sourceDestCheck)
sourceDestCheck
- The new value for the SourceDestCheck property for this object.public Instance withSourceDestCheck(Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck
- The new value for the SourceDestCheck property for this object.public Boolean getSourceDestCheck()
public String getHypervisor()
Constraints:
Allowed Values: ovm, xen
HypervisorType
public void setHypervisor(String hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor
- The new value for the Hypervisor property for this object.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 new value for the Hypervisor property for this object.HypervisorType
public void setHypervisor(HypervisorType hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor
- The new value for the Hypervisor property for this object.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 new value for the Hypervisor property for this object.HypervisorType
public List<InstanceNetworkInterface> getNetworkInterfaces()
public void setNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
networkInterfaces
- The new value for the NetworkInterfaces property for this object.public Instance withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- The new value for the NetworkInterfaces property for this object.public Instance withNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- The new value for the NetworkInterfaces property for this object.public IamInstanceProfile getIamInstanceProfile()
public void setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
iamInstanceProfile
- The new value for the IamInstanceProfile property for this object.public Instance withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile
- The new value for the IamInstanceProfile property for this object.public Boolean isEbsOptimized()
public void setEbsOptimized(Boolean ebsOptimized)
ebsOptimized
- The new value for the EbsOptimized property for this object.public Instance withEbsOptimized(Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized
- The new value for the EbsOptimized property for this object.public Boolean getEbsOptimized()
public String getSriovNetSupport()
public void setSriovNetSupport(String sriovNetSupport)
sriovNetSupport
- The new value for the SriovNetSupport property for this object.public Instance withSriovNetSupport(String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport
- The new value for the SriovNetSupport property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.