public class InstanceAttribute extends Object implements Serializable
Represents an attribute of an Amazon EC2 instance.
| Constructor and Description |
|---|
InstanceAttribute() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
How block devices are exposed to this instance.
|
Boolean |
getDisableApiTermination()
Whether this instance can be terminated.
|
Boolean |
getEbsOptimized()
Boolean value
|
String |
getInstanceId()
The ID of the associated instance.
|
String |
getInstanceInitiatedShutdownBehavior()
Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.
|
String |
getInstanceType()
The instance type (e.g.,
m1.small,
c1.medium, m2.2xlarge, and so on). |
String |
getKernelId()
The kernel ID of the associated instance.
|
List<ProductCode> |
getProductCodes()
Returns the value of the ProductCodes property for this object.
|
String |
getRamdiskId()
The ramdisk ID of the associated instance.
|
String |
getRootDeviceName()
The root device name (e.g.,
/dev/sda1). |
String |
getSriovNetSupport()
String value
|
String |
getUserData()
MIME, Base64-encoded user data.
|
int |
hashCode() |
Boolean |
isDisableApiTermination()
Whether this instance can be terminated.
|
Boolean |
isEbsOptimized()
Boolean value
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
How block devices are exposed to this instance.
|
void |
setDisableApiTermination(Boolean disableApiTermination)
Whether this instance can be terminated.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Boolean value
|
void |
setInstanceId(String instanceId)
The ID of the associated instance.
|
void |
setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.
|
void |
setInstanceType(String instanceType)
The instance type (e.g.,
m1.small,
c1.medium, m2.2xlarge, and so on). |
void |
setKernelId(String kernelId)
The kernel ID of the associated instance.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
Sets the value of the ProductCodes property for this object.
|
void |
setRamdiskId(String ramdiskId)
The ramdisk ID of the associated instance.
|
void |
setRootDeviceName(String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
void |
setSriovNetSupport(String sriovNetSupport)
String value
|
void |
setUserData(String userData)
MIME, Base64-encoded user data.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceAttribute |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
How block devices are exposed to this instance.
|
InstanceAttribute |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
How block devices are exposed to this instance.
|
InstanceAttribute |
withDisableApiTermination(Boolean disableApiTermination)
Whether this instance can be terminated.
|
InstanceAttribute |
withEbsOptimized(Boolean ebsOptimized)
Boolean value
|
InstanceAttribute |
withInstanceId(String instanceId)
The ID of the associated instance.
|
InstanceAttribute |
withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.
|
InstanceAttribute |
withInstanceType(String instanceType)
The instance type (e.g.,
m1.small,
c1.medium, m2.2xlarge, and so on). |
InstanceAttribute |
withKernelId(String kernelId)
The kernel ID of the associated instance.
|
InstanceAttribute |
withProductCodes(Collection<ProductCode> productCodes)
Sets the value of the ProductCodes property for this object.
|
InstanceAttribute |
withProductCodes(ProductCode... productCodes)
Sets the value of the ProductCodes property for this object.
|
InstanceAttribute |
withRamdiskId(String ramdiskId)
The ramdisk ID of the associated instance.
|
InstanceAttribute |
withRootDeviceName(String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
InstanceAttribute |
withSriovNetSupport(String sriovNetSupport)
String value
|
InstanceAttribute |
withUserData(String userData)
MIME, Base64-encoded user data.
|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId - The ID of the associated instance.public InstanceAttribute withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the associated instance.public String getInstanceType()
m1.small,
c1.medium, m2.2xlarge, and so on).m1.small,
c1.medium, m2.2xlarge, and so on).public void setInstanceType(String instanceType)
m1.small,
c1.medium, m2.2xlarge, and so on).instanceType - The instance type (e.g., m1.small,
c1.medium, m2.2xlarge, and so on).public InstanceAttribute withInstanceType(String instanceType)
m1.small,
c1.medium, m2.2xlarge, and so on).
Returns a reference to this object so that method calls can be chained together.
instanceType - The instance type (e.g., m1.small,
c1.medium, m2.2xlarge, and so on).public String getKernelId()
public void setKernelId(String kernelId)
kernelId - The kernel ID of the associated instance.public InstanceAttribute withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId - The kernel ID of the associated instance.public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId - The ramdisk ID of the associated instance.public InstanceAttribute withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId - The ramdisk ID of the associated instance.public String getUserData()
public void setUserData(String userData)
userData - MIME, Base64-encoded user data.public InstanceAttribute withUserData(String userData)
Returns a reference to this object so that method calls can be chained together.
userData - MIME, Base64-encoded user data.public Boolean isDisableApiTermination()
public void setDisableApiTermination(Boolean disableApiTermination)
disableApiTermination - Whether this instance can be terminated. You must modify this
attribute before you can terminate any "locked" instances.public InstanceAttribute withDisableApiTermination(Boolean disableApiTermination)
Returns a reference to this object so that method calls can be chained together.
disableApiTermination - Whether this instance can be terminated. You must modify this
attribute before you can terminate any "locked" instances.public Boolean getDisableApiTermination()
public String getInstanceInitiatedShutdownBehavior()
public void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
instanceInitiatedShutdownBehavior - Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.public InstanceAttribute withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Returns a reference to this object so that method calls can be chained together.
instanceInitiatedShutdownBehavior - Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.public String getRootDeviceName()
/dev/sda1)./dev/sda1).public void setRootDeviceName(String rootDeviceName)
/dev/sda1).rootDeviceName - The root device name (e.g., /dev/sda1).public InstanceAttribute 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 - How block devices are exposed to this instance. Each mapping is made
up of a virtualName and a deviceName.public InstanceAttribute withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - How block devices are exposed to this instance. Each mapping is made
up of a virtualName and a deviceName.public InstanceAttribute withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - How block devices are exposed to this instance. Each mapping is made
up of a virtualName and a deviceName.public List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes - The new value for the ProductCodes property for this object.public InstanceAttribute withProductCodes(ProductCode... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes - The new value for the ProductCodes property for this object.public InstanceAttribute withProductCodes(Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes - The new value for the ProductCodes property for this object.public Boolean isEbsOptimized()
public void setEbsOptimized(Boolean ebsOptimized)
ebsOptimized - Boolean valuepublic InstanceAttribute withEbsOptimized(Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized - Boolean valuepublic Boolean getEbsOptimized()
public String getSriovNetSupport()
public void setSriovNetSupport(String sriovNetSupport)
sriovNetSupport - String valuepublic InstanceAttribute withSriovNetSupport(String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport - String valuepublic String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.