public class InstanceAttribute extends Object implements Serializable
Constructor and Description |
---|
InstanceAttribute() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 name of the root device (for example,
/dev/sda1 or /dev/xvda ). |
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 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 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(List<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)
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.
|
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 void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public String getInstanceType()
The instance type.
public void setKernelId(String kernelId)
The kernel ID.
kernelId
- The kernel ID.public String getKernelId()
The kernel ID.
public void setRamdiskId(String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.public String getRamdiskId()
The RAM disk ID.
public void setUserData(String userData)
The user data.
userData
- The user data.public String getUserData()
The user data.
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 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(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 void setRootDeviceName(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 String getRootDeviceName()
The name of the root device (for example, /dev/sda1
or /dev/xvda
).
/dev/sda1
or /dev/xvda
).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 List<ProductCode> getProductCodes()
A list of product codes.
public void setProductCodes(List<ProductCode> productCodes)
A list of product codes.
productCodes
- A list of product codes.public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.public Boolean getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
public Boolean isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
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 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 Boolean isEnaSupport()
Indicates whether enhanced networking with ENA is enabled.
public void setSourceDestCheck(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 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 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 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 String toString()
toString
in class Object
Object.toString()
Copyright © 2010–2020. All rights reserved.