|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.InstanceAttribute
public class InstanceAttribute
Represents an attribute of an Amazon EC2 instance.
Constructor Summary | |
---|---|
InstanceAttribute()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
How block devices are exposed to this instance. |
Boolean |
getDisableApiTermination()
Whether this instance can be terminated. |
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 |
getUserData()
MIME, Base64-encoded user data. |
int |
hashCode()
|
Boolean |
isDisableApiTermination()
Whether this instance can be terminated. |
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
How block devices are exposed to this instance. |
void |
setDisableApiTermination(Boolean disableApiTermination)
Whether this instance can be terminated. |
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 |
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 |
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 |
withUserData(String userData)
MIME, Base64-encoded user data. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceAttribute()
Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |