|
|||||||
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
Describes an instance attribute.
Constructor Summary | |
---|---|
InstanceAttribute()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
The block device mapping of the instance. |
java.lang.Boolean |
getDisableApiTermination()
If the value is true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
java.lang.Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. |
java.lang.String |
getInstanceId()
The ID of the instance. |
java.lang.String |
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). |
java.lang.String |
getInstanceType()
The instance type. |
java.lang.String |
getKernelId()
The kernel ID. |
java.util.List<ProductCode> |
getProductCodes()
A list of product codes. |
java.lang.String |
getRamdiskId()
The RAM disk ID. |
java.lang.String |
getRootDeviceName()
The name of the root device (for example, /dev/sda1 ). |
java.lang.Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled. |
java.lang.String |
getSriovNetSupport()
|
java.lang.String |
getUserData()
The Base64-encoded MIME user data. |
int |
hashCode()
|
java.lang.Boolean |
isDisableApiTermination()
If the value is true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
java.lang.Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. |
java.lang.Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled. |
void |
setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance. |
void |
setDisableApiTermination(java.lang.Boolean disableApiTermination)
If the value is true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. |
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance. |
void |
setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). |
void |
setInstanceType(java.lang.String instanceType)
The instance type. |
void |
setKernelId(java.lang.String kernelId)
The kernel ID. |
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes. |
void |
setRamdiskId(java.lang.String ramdiskId)
The RAM disk ID. |
void |
setRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1 ). |
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled. |
void |
setSriovNetSupport(java.lang.String sriovNetSupport)
|
void |
setUserData(java.lang.String userData)
The Base64-encoded MIME 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)
The block device mapping of the instance. |
InstanceAttribute |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mapping of the instance. |
InstanceAttribute |
withDisableApiTermination(java.lang.Boolean disableApiTermination)
If the value is true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
InstanceAttribute |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. |
InstanceAttribute |
withInstanceId(java.lang.String instanceId)
The ID of the instance. |
InstanceAttribute |
withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). |
InstanceAttribute |
withInstanceType(java.lang.String instanceType)
The instance type. |
InstanceAttribute |
withKernelId(java.lang.String kernelId)
The kernel ID. |
InstanceAttribute |
withProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes. |
InstanceAttribute |
withProductCodes(ProductCode... productCodes)
A list of product codes. |
InstanceAttribute |
withRamdiskId(java.lang.String ramdiskId)
The RAM disk ID. |
InstanceAttribute |
withRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1 ). |
InstanceAttribute |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled. |
InstanceAttribute |
withSriovNetSupport(java.lang.String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together. |
InstanceAttribute |
withUserData(java.lang.String userData)
The Base64-encoded MIME user data. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceAttribute()
Method Detail |
---|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the 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 instance.
public java.lang.String getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType
- The instance type.public InstanceAttribute withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type.
public java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId
- The kernel ID.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.
public java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId
- The RAM disk ID.public InstanceAttribute withRamdiskId(java.lang.String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The RAM disk ID.
public java.lang.String getUserData()
public void setUserData(java.lang.String userData)
userData
- The Base64-encoded MIME user data.public InstanceAttribute withUserData(java.lang.String userData)
Returns a reference to this object so that method calls can be chained together.
userData
- The Base64-encoded MIME user data.
public java.lang.Boolean isDisableApiTermination()
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.public void setDisableApiTermination(java.lang.Boolean disableApiTermination)
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.
disableApiTermination
- If the value is true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.public InstanceAttribute withDisableApiTermination(java.lang.Boolean disableApiTermination)
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.
Returns a reference to this object so that method calls can be chained together.
disableApiTermination
- If the value is true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.
public java.lang.Boolean getDisableApiTermination()
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.public java.lang.String getInstanceInitiatedShutdownBehavior()
public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).public InstanceAttribute withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Returns a reference to this object so that method calls can be chained together.
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).
public java.lang.String getRootDeviceName()
/dev/sda1
).
/dev/sda1
).public void setRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1
).
rootDeviceName
- The name of the root device (for example, /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 name of the root device (for example, /dev/sda1
).
public java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- The block device mapping of the instance.public InstanceAttribute withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The block device mapping of the instance.
public InstanceAttribute withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The block device mapping of the instance.
public java.util.List<ProductCode> getProductCodes()
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
productCodes
- A list of product codes.public InstanceAttribute withProductCodes(ProductCode... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.
public InstanceAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.
public java.lang.Boolean isEbsOptimized()
public void setEbsOptimized(java.lang.Boolean ebsOptimized)
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.public InstanceAttribute withEbsOptimized(java.lang.Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.
public java.lang.Boolean getEbsOptimized()
public java.lang.String getSriovNetSupport()
public void setSriovNetSupport(java.lang.String sriovNetSupport)
sriovNetSupport
- public InstanceAttribute withSriovNetSupport(java.lang.String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport
-
public java.lang.Boolean isSourceDestCheck()
public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
sourceDestCheck
- Indicates whether source/destination checking is enabled. A value of
true means checking is enabled, and false means checking is disabled.
This value must be false for a NAT instance to perform NAT.public InstanceAttribute withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck
- Indicates whether source/destination checking is enabled. A value of
true means checking is enabled, and false means checking is disabled.
This value must be false for a NAT instance to perform NAT.
public java.lang.Boolean getSourceDestCheck()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |