@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 Amazon EBS I/O.
|
Boolean |
getEnaSupport()
Indicates whether enhanced networking with ENA is enabled.
|
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 device name of the root device volume (for example,
/dev/sda1 ). |
Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
String |
getSriovNetSupport()
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
String |
getUserData()
The 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 Amazon EBS I/O.
|
Boolean |
isEnaSupport()
Indicates whether enhanced networking with ENA is enabled.
|
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 Amazon EBS I/O.
|
void |
setEnaSupport(Boolean enaSupport)
Indicates whether enhanced networking with ENA is enabled.
|
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 device name of the root device volume (for example,
/dev/sda1 ). |
void |
setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
void |
setSriovNetSupport(String sriovNetSupport)
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
void |
setUserData(String userData)
The 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 Amazon EBS I/O.
|
InstanceAttribute |
withEnaSupport(Boolean enaSupport)
Indicates whether enhanced networking with ENA is enabled.
|
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 device name of the root device volume (for example,
/dev/sda1 ). |
InstanceAttribute |
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
InstanceAttribute |
withSriovNetSupport(String sriovNetSupport)
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
InstanceAttribute |
withUserData(String userData)
The user data.
|
public List<GroupIdentifier> getGroups()
The security groups associated with the instance.
public void setGroups(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(Collection<GroupIdentifier> groups)
The security groups associated with the instance.
groups
- The security groups associated with the instance.public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
The block device mapping of the instance.
public void setBlockDeviceMappings(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(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
blockDeviceMappings
- The block device mapping of the instance.public 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.
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()
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(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 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 setEnaSupport(Boolean enaSupport)
Indicates whether enhanced networking with ENA is enabled.
enaSupport
- Indicates whether enhanced networking with ENA is enabled.public Boolean getEnaSupport()
Indicates whether enhanced networking with ENA is enabled.
public InstanceAttribute withEnaSupport(Boolean enaSupport)
Indicates whether enhanced networking with ENA is enabled.
enaSupport
- Indicates whether enhanced networking with ENA is enabled.public Boolean isEnaSupport()
Indicates whether enhanced networking with ENA is enabled.
public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.public Boolean getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public InstanceAttribute withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.public Boolean isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public InstanceAttribute withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public 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).
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 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(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 setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public String getInstanceType()
The instance type.
public InstanceAttribute withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public void setKernelId(String kernelId)
The kernel ID.
kernelId
- The kernel ID.public String getKernelId()
The kernel ID.
public InstanceAttribute withKernelId(String kernelId)
The kernel ID.
kernelId
- The kernel ID.public List<ProductCode> getProductCodes()
A list of product codes.
public void setProductCodes(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(Collection<ProductCode> productCodes)
A list of product codes.
productCodes
- A list of product codes.public void setRamdiskId(String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.public String getRamdiskId()
The RAM disk ID.
public InstanceAttribute withRamdiskId(String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.public void setRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).public String getRootDeviceName()
The device name of the root device volume (for example, /dev/sda1
).
/dev/sda1
).public InstanceAttribute withRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).public void setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled. A value of true
means that checking is
enabled, and false
means that 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 that checking
is enabled, and false
means that checking is disabled. This value must be false
for a NAT instance to perform NAT.public Boolean getSourceDestCheck()
Indicates whether source/destination checking is enabled. A value of true
means that checking is
enabled, and false
means that checking is disabled. This value must be false
for a NAT
instance to perform NAT.
true
means that
checking is enabled, and false
means that checking is disabled. This value must be
false
for a NAT instance to perform NAT.public InstanceAttribute withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled. A value of true
means that checking is
enabled, and false
means that 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 that checking
is enabled, and false
means that checking is disabled. This value must be false
for a NAT instance to perform NAT.public Boolean isSourceDestCheck()
Indicates whether source/destination checking is enabled. A value of true
means that checking is
enabled, and false
means that checking is disabled. This value must be false
for a NAT
instance to perform NAT.
true
means that
checking is enabled, and false
means that checking is disabled. This value must be
false
for a NAT instance to perform NAT.public void setSriovNetSupport(String sriovNetSupport)
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.public String getSriovNetSupport()
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public InstanceAttribute withSriovNetSupport(String sriovNetSupport)
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.public void setUserData(String userData)
The user data.
userData
- The user data.public String getUserData()
The user data.
public InstanceAttribute withUserData(String userData)
The user data.
userData
- The user data.public String toString()
toString
in class Object
Object.toString()
public InstanceAttribute clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.