|
||||||||||
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 | |
---|---|
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. |
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. |
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 |
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()
|
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 |
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 |
---|
equals, getClass, hashCode, 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()
public void setInstanceType(String instanceType)
instanceType
- The instance type (e.g., m1.small, c1.medium, m2.2xlarge, and so on).public InstanceAttribute withInstanceType(String instanceType)
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()
public void setRootDeviceName(String rootDeviceName)
rootDeviceName
- The root device name (e.g., /dev/sda1).public InstanceAttribute withRootDeviceName(String rootDeviceName)
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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |