public class InstanceAttribute extends Object implements Serializable, Cloneable
Describes an instance attribute.
Constructor and Description |
---|
InstanceAttribute() |
Modifier and Type | Method and Description |
---|---|
InstanceAttribute |
clone() |
boolean |
equals(Object obj) |
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
The block device mapping of the instance.
|
Boolean |
getDisableApiTermination()
If the value is
true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
List<GroupIdentifier> |
getGroups()
The security groups associated with the instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).
|
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
The kernel ID.
|
List<ProductCode> |
getProductCodes()
A list of product codes.
|
String |
getRamdiskId()
The RAM disk ID.
|
String |
getRootDeviceName()
The name of the root device (for example,
/dev/sda1 or
/dev/xvda ). |
Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
String |
getSriovNetSupport()
The value to use for a resource attribute.
|
String |
getUserData()
The Base64-encoded MIME user data.
|
int |
hashCode() |
Boolean |
isDisableApiTermination()
If the value is
true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
|
void |
setDisableApiTermination(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(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
void |
setGroups(Collection<GroupIdentifier> groups)
The security groups associated with the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setInstanceInitiatedShutdownBehavior(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(String instanceType)
The instance type.
|
void |
setKernelId(String kernelId)
The kernel ID.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
A list of product codes.
|
void |
setRamdiskId(String ramdiskId)
The RAM disk ID.
|
void |
setRootDeviceName(String rootDeviceName)
The name of the root device (for example,
/dev/sda1 or
/dev/xvda ). |
void |
setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
void |
setSriovNetSupport(String sriovNetSupport)
The value to use for a resource attribute.
|
void |
setUserData(String userData)
The Base64-encoded MIME user data.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceAttribute |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
|
InstanceAttribute |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mapping of the instance.
|
InstanceAttribute |
withDisableApiTermination(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(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
InstanceAttribute |
withGroups(Collection<GroupIdentifier> groups)
The security groups associated with the instance.
|
InstanceAttribute |
withGroups(GroupIdentifier... groups)
The security groups associated with the instance.
|
InstanceAttribute |
withInstanceId(String instanceId)
The ID of the instance.
|
InstanceAttribute |
withInstanceInitiatedShutdownBehavior(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(String instanceType)
The instance type.
|
InstanceAttribute |
withKernelId(String kernelId)
The kernel ID.
|
InstanceAttribute |
withProductCodes(Collection<ProductCode> productCodes)
A list of product codes.
|
InstanceAttribute |
withProductCodes(ProductCode... productCodes)
A list of product codes.
|
InstanceAttribute |
withRamdiskId(String ramdiskId)
The RAM disk ID.
|
InstanceAttribute |
withRootDeviceName(String rootDeviceName)
The name of the root device (for example,
/dev/sda1 or
/dev/xvda ). |
InstanceAttribute |
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
InstanceAttribute |
withSriovNetSupport(String sriovNetSupport)
The value to use for a resource attribute.
|
InstanceAttribute |
withUserData(String userData)
The Base64-encoded MIME user data.
|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the 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 instance.public String getInstanceType()
public void setInstanceType(String instanceType)
instanceType
- The instance type.public InstanceAttribute withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type.public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- The kernel ID.public InstanceAttribute withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The kernel ID.public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- The RAM disk ID.public InstanceAttribute withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The RAM disk ID.public String getUserData()
public void setUserData(String userData)
userData
- The Base64-encoded MIME user data.public InstanceAttribute withUserData(String userData)
Returns a reference to this object so that method calls can be chained together.
userData
- The Base64-encoded MIME user data.public 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(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(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 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 String getInstanceInitiatedShutdownBehavior()
public void setInstanceInitiatedShutdownBehavior(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(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 String getRootDeviceName()
/dev/sda1
or
/dev/xvda
)./dev/sda1
or
/dev/xvda
).public void setRootDeviceName(String rootDeviceName)
/dev/sda1
or
/dev/xvda
).rootDeviceName
- The name of the root device (for example, /dev/sda1
or
/dev/xvda
).public InstanceAttribute withRootDeviceName(String rootDeviceName)
/dev/sda1
or
/dev/xvda
).
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
or
/dev/xvda
).public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- The block device mapping of the instance.public InstanceAttribute withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
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.
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(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 List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes
- A list of product codes.public InstanceAttribute withProductCodes(ProductCode... productCodes)
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.
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.public InstanceAttribute withProductCodes(Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.public Boolean isEbsOptimized()
public void setEbsOptimized(Boolean ebsOptimized)
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.public InstanceAttribute withEbsOptimized(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 Boolean getEbsOptimized()
public String getSriovNetSupport()
public void setSriovNetSupport(String sriovNetSupport)
sriovNetSupport
- The value to use for a resource attribute.public InstanceAttribute withSriovNetSupport(String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport
- The value to use for a resource attribute.public Boolean isSourceDestCheck()
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 void setSourceDestCheck(Boolean sourceDestCheck)
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 InstanceAttribute withSourceDestCheck(Boolean sourceDestCheck)
true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.
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 Boolean getSourceDestCheck()
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 List<GroupIdentifier> getGroups()
public void setGroups(Collection<GroupIdentifier> groups)
groups
- The security groups associated with the instance.public InstanceAttribute withGroups(GroupIdentifier... groups)
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.
Returns a reference to this object so that method calls can be chained together.
groups
- The security groups associated with the instance.public InstanceAttribute withGroups(Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The security groups associated with the instance.public String toString()
toString
in class Object
Object.toString()
public InstanceAttribute clone()
Copyright © 2015. All rights reserved.