@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 |
getDisableApiStop()
To enable the instance for Amazon Web Services Stop Protection, set this parameter to
true ;
otherwise, set it to false . |
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.
|
EnclaveOptions |
getEnclaveOptions()
To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to
true ;
otherwise, set it to false . |
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()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
String |
getSriovNetSupport()
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
String |
getUserData()
The user data.
|
int |
hashCode() |
Boolean |
isDisableApiStop()
To enable the instance for Amazon Web Services Stop Protection, set this parameter to
true ;
otherwise, set it to false . |
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()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
|
void |
setDisableApiStop(Boolean disableApiStop)
To enable the instance for Amazon Web Services Stop Protection, set this parameter to
true ;
otherwise, set it to false . |
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 |
setEnclaveOptions(EnclaveOptions enclaveOptions)
To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to
true ;
otherwise, set it to false . |
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)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
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.
|
InstanceAttribute |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
|
InstanceAttribute |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mapping of the instance.
|
InstanceAttribute |
withDisableApiStop(Boolean disableApiStop)
To enable the instance for Amazon Web Services Stop Protection, set this parameter to
true ;
otherwise, set it to false . |
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 |
withEnclaveOptions(EnclaveOptions enclaveOptions)
To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to
true ;
otherwise, set it to false . |
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)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
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 setEnclaveOptions(EnclaveOptions enclaveOptions)
To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true
;
otherwise, set it to false
.
enclaveOptions
- To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true
;
otherwise, set it to false
.public EnclaveOptions getEnclaveOptions()
To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true
;
otherwise, set it to false
.
true
;
otherwise, set it to false
.public InstanceAttribute withEnclaveOptions(EnclaveOptions enclaveOptions)
To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true
;
otherwise, set it to false
.
enclaveOptions
- To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true
;
otherwise, set it to false
.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)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
sourceDestCheck
- Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public Boolean getSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public InstanceAttribute withSourceDestCheck(Boolean sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
sourceDestCheck
- Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.public Boolean isSourceDestCheck()
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
true
, source/destination checks
are enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.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 void setDisableApiStop(Boolean disableApiStop)
To enable the instance for Amazon Web Services Stop Protection, set this parameter to true
;
otherwise, set it to false
.
disableApiStop
- To enable the instance for Amazon Web Services Stop Protection, set this parameter to true
;
otherwise, set it to false
.public Boolean getDisableApiStop()
To enable the instance for Amazon Web Services Stop Protection, set this parameter to true
;
otherwise, set it to false
.
true
;
otherwise, set it to false
.public InstanceAttribute withDisableApiStop(Boolean disableApiStop)
To enable the instance for Amazon Web Services Stop Protection, set this parameter to true
;
otherwise, set it to false
.
disableApiStop
- To enable the instance for Amazon Web Services Stop Protection, set this parameter to true
;
otherwise, set it to false
.public Boolean isDisableApiStop()
To enable the instance for Amazon Web Services Stop Protection, set this parameter to true
;
otherwise, set it to false
.
true
;
otherwise, set it to false
.public String toString()
toString
in class Object
Object.toString()
public InstanceAttribute clone()