public class InstanceAttribute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an instance attribute.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<InstanceBlockDeviceMapping> |
blockDeviceMappings
The block device mapping of the instance.
|
private 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. |
private java.lang.Boolean |
ebsOptimized
Indicates whether the instance is optimized for EBS I/O.
|
private SdkInternalList<GroupIdentifier> |
groups
The security groups associated with the instance.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private 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).
|
private java.lang.String |
instanceType
The instance type.
|
private java.lang.String |
kernelId
The kernel ID.
|
private SdkInternalList<ProductCode> |
productCodes
A list of product codes.
|
private java.lang.String |
ramdiskId
The RAM disk ID.
|
private java.lang.String |
rootDeviceName
The name of the root device (for example,
/dev/sda1 or
/dev/xvda ). |
private java.lang.Boolean |
sourceDestCheck
Indicates whether source/destination checking is enabled.
|
private java.lang.String |
sriovNetSupport |
private java.lang.String |
userData
The Base64-encoded MIME user data.
|
Constructor and Description |
---|
InstanceAttribute() |
Modifier and Type | Method and Description |
---|---|
InstanceAttribute |
clone() |
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.util.List<GroupIdentifier> |
getGroups()
The security groups associated with the instance.
|
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 or
/dev/xvda ). |
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 |
setGroups(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the instance.
|
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 or
/dev/xvda ). |
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 |
withGroups(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the instance.
|
InstanceAttribute |
withGroups(GroupIdentifier... groups)
The security groups associated with the instance.
|
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 or
/dev/xvda ). |
InstanceAttribute |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
InstanceAttribute |
withSriovNetSupport(java.lang.String sriovNetSupport) |
InstanceAttribute |
withUserData(java.lang.String userData)
The Base64-encoded MIME user data.
|
private java.lang.String instanceId
The ID of the instance.
private java.lang.String instanceType
The instance type.
private java.lang.String kernelId
The kernel ID.
private java.lang.String ramdiskId
The RAM disk ID.
private java.lang.String userData
The Base64-encoded MIME user data.
private 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.
private 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).
private java.lang.String rootDeviceName
The name of the root device (for example, /dev/sda1
or
/dev/xvda
).
private SdkInternalList<InstanceBlockDeviceMapping> blockDeviceMappings
The block device mapping of the instance.
private SdkInternalList<ProductCode> productCodes
A list of product codes.
private java.lang.Boolean ebsOptimized
Indicates whether the instance is optimized for EBS I/O.
private java.lang.String sriovNetSupport
private java.lang.Boolean 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.
private SdkInternalList<GroupIdentifier> groups
The security groups associated with the instance.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public InstanceAttribute withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.public java.lang.String getInstanceType()
The instance type.
public InstanceAttribute withInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.public void setKernelId(java.lang.String kernelId)
The kernel ID.
kernelId
- The kernel ID.public java.lang.String getKernelId()
The kernel ID.
public InstanceAttribute withKernelId(java.lang.String kernelId)
The kernel ID.
kernelId
- The kernel ID.public void setRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.public java.lang.String getRamdiskId()
The RAM disk ID.
public InstanceAttribute withRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.public void setUserData(java.lang.String userData)
The Base64-encoded MIME user data.
userData
- The Base64-encoded MIME user data.public java.lang.String getUserData()
The Base64-encoded MIME user data.
public InstanceAttribute withUserData(java.lang.String userData)
The Base64-encoded MIME user data.
userData
- The Base64-encoded MIME user data.public 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.
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()
If the value is 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 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.
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 isDisableApiTermination()
If the value is 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 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).
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 getInstanceInitiatedShutdownBehavior()
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)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you
initiate shutdown from the instance (using the operating system
command for system shutdown).public void setRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1
or
/dev/xvda
).
rootDeviceName
- The name of the root device (for example, /dev/sda1
or /dev/xvda
).public java.lang.String getRootDeviceName()
The name of the root device (for example, /dev/sda1
or
/dev/xvda
).
/dev/sda1
or /dev/xvda
).public InstanceAttribute withRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1
or
/dev/xvda
).
rootDeviceName
- The name of the root device (for example, /dev/sda1
or /dev/xvda
).public java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
The block device mapping of the instance.
public void setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
blockDeviceMappings
- The block device mapping of the instance.public InstanceAttribute withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mapping of the instance.
NOTE: This method appends the values to the existing list (if
any). Use setBlockDeviceMappings(java.util.Collection)
or
withBlockDeviceMappings(java.util.Collection)
if you want to
override the existing values.
blockDeviceMappings
- The block device mapping of the instance.public InstanceAttribute withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
blockDeviceMappings
- The block device mapping of the instance.public java.util.List<ProductCode> getProductCodes()
A list of product codes.
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
productCodes
- A list of product codes.public InstanceAttribute withProductCodes(ProductCode... productCodes)
A list of product codes.
NOTE: This method appends the values to the existing list (if
any). Use setProductCodes(java.util.Collection)
or
withProductCodes(java.util.Collection)
if you want to override
the existing values.
productCodes
- A list of product codes.public InstanceAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
productCodes
- A list of product codes.public void setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.public java.lang.Boolean getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
public InstanceAttribute withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.public java.lang.Boolean isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
public void setSriovNetSupport(java.lang.String sriovNetSupport)
sriovNetSupport
- public java.lang.String getSriovNetSupport()
public InstanceAttribute withSriovNetSupport(java.lang.String sriovNetSupport)
sriovNetSupport
- public void setSourceDestCheck(java.lang.Boolean 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.
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()
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.
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)
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.
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 isSourceDestCheck()
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.
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.util.List<GroupIdentifier> getGroups()
The security groups associated with the instance.
public void setGroups(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the instance.
groups
- The security groups associated with the instance.public InstanceAttribute withGroups(GroupIdentifier... groups)
The security groups associated with the instance.
NOTE: This method appends the values to the existing list (if
any). Use setGroups(java.util.Collection)
or
withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The security groups associated with the instance.public InstanceAttribute withGroups(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the instance.
groups
- The security groups associated with the instance.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceAttribute clone()
clone
in class java.lang.Object