public class InstanceAttribute
extends java.lang.Object
implements java.io.Serializable
Represents an attribute of an Amazon EC2 instance.
| コンストラクタと説明 |
|---|
InstanceAttribute() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
How block devices are exposed to this instance.
|
java.lang.Boolean |
getDisableApiTermination()
Whether this instance can be terminated.
|
java.lang.Boolean |
getEbsOptimized()
Boolean value
|
java.lang.String |
getInstanceId()
The ID of the associated instance.
|
java.lang.String |
getInstanceInitiatedShutdownBehavior()
Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.
|
java.lang.String |
getInstanceType()
The instance type (e.g.,
m1.small,
c1.medium, m2.2xlarge, and so on). |
java.lang.String |
getKernelId()
The kernel ID of the associated instance.
|
java.util.List<ProductCode> |
getProductCodes()
Returns the value of the ProductCodes property for this object.
|
java.lang.String |
getRamdiskId()
The ramdisk ID of the associated instance.
|
java.lang.String |
getRootDeviceName()
The root device name (e.g.,
/dev/sda1). |
java.lang.String |
getUserData()
MIME, Base64-encoded user data.
|
int |
hashCode() |
java.lang.Boolean |
isDisableApiTermination()
Whether this instance can be terminated.
|
java.lang.Boolean |
isEbsOptimized()
Boolean value
|
void |
setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
How block devices are exposed to this instance.
|
void |
setDisableApiTermination(java.lang.Boolean disableApiTermination)
Whether this instance can be terminated.
|
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Boolean value
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the associated instance.
|
void |
setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type (e.g.,
m1.small,
c1.medium, m2.2xlarge, and so on). |
void |
setKernelId(java.lang.String kernelId)
The kernel ID of the associated instance.
|
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
Sets the value of the ProductCodes property for this object.
|
void |
setRamdiskId(java.lang.String ramdiskId)
The ramdisk ID of the associated instance.
|
void |
setRootDeviceName(java.lang.String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
void |
setUserData(java.lang.String userData)
MIME, Base64-encoded user data.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceAttribute |
withBlockDeviceMappings(java.util.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(java.lang.Boolean disableApiTermination)
Whether this instance can be terminated.
|
InstanceAttribute |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Boolean value
Returns a reference to this object so that method calls can be chained together.
|
InstanceAttribute |
withInstanceId(java.lang.String instanceId)
The ID of the associated instance.
|
InstanceAttribute |
withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.
|
InstanceAttribute |
withInstanceType(java.lang.String instanceType)
The instance type (e.g.,
m1.small,
c1.medium, m2.2xlarge, and so on). |
InstanceAttribute |
withKernelId(java.lang.String kernelId)
The kernel ID of the associated instance.
|
InstanceAttribute |
withProductCodes(java.util.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(java.lang.String ramdiskId)
The ramdisk ID of the associated instance.
|
InstanceAttribute |
withRootDeviceName(java.lang.String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
InstanceAttribute |
withUserData(java.lang.String userData)
MIME, Base64-encoded user data.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the associated instance.public InstanceAttribute withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the associated instance.public java.lang.String getInstanceType()
m1.small,
c1.medium, m2.2xlarge, and so on).m1.small,
c1.medium, m2.2xlarge, and so on).public void setInstanceType(java.lang.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(java.lang.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 java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId - The kernel ID of the associated instance.public InstanceAttribute withKernelId(java.lang.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 java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId - The ramdisk ID of the associated instance.public InstanceAttribute withRamdiskId(java.lang.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 java.lang.String getUserData()
public void setUserData(java.lang.String userData)
userData - MIME, Base64-encoded user data.public InstanceAttribute withUserData(java.lang.String userData)
Returns a reference to this object so that method calls can be chained together.
userData - MIME, Base64-encoded user data.public java.lang.Boolean isDisableApiTermination()
public void setDisableApiTermination(java.lang.Boolean disableApiTermination)
disableApiTermination - Whether this instance can be terminated. You must modify this
attribute before you can terminate any "locked" instances.public InstanceAttribute withDisableApiTermination(java.lang.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 java.lang.Boolean getDisableApiTermination()
public java.lang.String getInstanceInitiatedShutdownBehavior()
public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
instanceInitiatedShutdownBehavior - Whether this instance's Amazon EBS volumes are deleted when the
instance is shut down.public InstanceAttribute withInstanceInitiatedShutdownBehavior(java.lang.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 java.lang.String getRootDeviceName()
/dev/sda1)./dev/sda1).public void setRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1).rootDeviceName - The root device name (e.g., /dev/sda1).public InstanceAttribute withRootDeviceName(java.lang.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 java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.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(java.util.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 java.util.List<ProductCode> getProductCodes()
public void setProductCodes(java.util.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(java.util.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 java.lang.Boolean isEbsOptimized()
public void setEbsOptimized(java.lang.Boolean ebsOptimized)
ebsOptimized - Boolean valuepublic InstanceAttribute withEbsOptimized(java.lang.Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized - Boolean valuepublic java.lang.Boolean getEbsOptimized()
public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object