Class InstanceAttribute
- All Implemented Interfaces:
Serializable, Cloneable
Describes an instance attribute.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe block device mapping of the instance.If the value istrue, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.Indicates whether the instance is optimized for EBS I/O.The security groups associated with the instance.The ID of the instance.Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).The instance type.The kernel ID.A list of product codes.The RAM disk ID.The name of the root device (for example,/dev/sda1or/dev/xvda).Indicates whether source/destination checking is enabled.The Base64-encoded MIME user data.inthashCode()If the value istrue, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.Indicates whether the instance is optimized for EBS I/O.Indicates whether source/destination checking is enabled.voidsetBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) The block device mapping of the instance.voidsetDisableApiTermination(Boolean disableApiTermination) If the value istrue, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.voidsetEbsOptimized(Boolean ebsOptimized) Indicates whether the instance is optimized for EBS I/O.voidsetGroups(Collection<GroupIdentifier> groups) The security groups associated with the instance.voidsetInstanceId(String instanceId) The ID of the instance.voidsetInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).voidsetInstanceType(String instanceType) The instance type.voidsetKernelId(String kernelId) The kernel ID.voidsetProductCodes(Collection<ProductCode> productCodes) A list of product codes.voidsetRamdiskId(String ramdiskId) The RAM disk ID.voidsetRootDeviceName(String rootDeviceName) The name of the root device (for example,/dev/sda1or/dev/xvda).voidsetSourceDestCheck(Boolean sourceDestCheck) Indicates whether source/destination checking is enabled.voidsetSriovNetSupport(String sriovNetSupport) voidsetUserData(String userData) The Base64-encoded MIME user data.toString()Returns a string representation of this object; useful for testing and debugging.withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings) The block device mapping of the instance.withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) The block device mapping of the instance.withDisableApiTermination(Boolean disableApiTermination) If the value istrue, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.withEbsOptimized(Boolean ebsOptimized) Indicates whether the instance is optimized for EBS I/O.withGroups(GroupIdentifier... groups) The security groups associated with the instance.withGroups(Collection<GroupIdentifier> groups) The security groups associated with the instance.withInstanceId(String instanceId) The ID of the instance.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).withInstanceType(String instanceType) The instance type.withKernelId(String kernelId) The kernel ID.withProductCodes(ProductCode... productCodes) A list of product codes.withProductCodes(Collection<ProductCode> productCodes) A list of product codes.withRamdiskId(String ramdiskId) The RAM disk ID.withRootDeviceName(String rootDeviceName) The name of the root device (for example,/dev/sda1or/dev/xvda).withSourceDestCheck(Boolean sourceDestCheck) Indicates whether source/destination checking is enabled.withSriovNetSupport(String sriovNetSupport) withUserData(String userData) The Base64-encoded MIME user data.
-
Constructor Details
-
InstanceAttribute
public InstanceAttribute()
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
-
withInstanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
The instance type.
- Parameters:
instanceType- The instance type.
-
getInstanceType
-
withInstanceType
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKernelId
-
getKernelId
-
withKernelId
The kernel ID.
- Parameters:
kernelId- The kernel ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdiskId
The RAM disk ID.
- Parameters:
ramdiskId- The RAM disk ID.
-
getRamdiskId
-
withRamdiskId
The RAM disk ID.
- Parameters:
ramdiskId- The RAM disk ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserData
The Base64-encoded MIME user data.
- Parameters:
userData- The Base64-encoded MIME user data.
-
getUserData
The Base64-encoded MIME user data.
- Returns:
- The Base64-encoded MIME user data.
-
withUserData
The Base64-encoded MIME user data.
- Parameters:
userData- The Base64-encoded MIME user data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDisableApiTermination
If the value is
true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.- Parameters:
disableApiTermination- If the value istrue, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.
-
getDisableApiTermination
If the value is
true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.- Returns:
- If the value is
true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.
-
withDisableApiTermination
If the value is
true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.- Parameters:
disableApiTermination- If the value istrue, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDisableApiTermination
If the value is
true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.- Returns:
- If the value is
true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.
-
setInstanceInitiatedShutdownBehavior
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Parameters:
instanceInitiatedShutdownBehavior- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
-
getInstanceInitiatedShutdownBehavior
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Returns:
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
-
withInstanceInitiatedShutdownBehavior
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).
- Parameters:
instanceInitiatedShutdownBehavior- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRootDeviceName
The name of the root device (for example,
/dev/sda1or/dev/xvda).- Parameters:
rootDeviceName- The name of the root device (for example,/dev/sda1or/dev/xvda).
-
getRootDeviceName
The name of the root device (for example,
/dev/sda1or/dev/xvda).- Returns:
- The name of the root device (for example,
/dev/sda1or/dev/xvda).
-
withRootDeviceName
The name of the root device (for example,
/dev/sda1or/dev/xvda).- Parameters:
rootDeviceName- The name of the root device (for example,/dev/sda1or/dev/xvda).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
The block device mapping of the instance.
- Returns:
- The block device mapping of the instance.
-
setBlockDeviceMappings
The block device mapping of the instance.
- Parameters:
blockDeviceMappings- The block device mapping of the instance.
-
withBlockDeviceMappings
The block device mapping of the instance.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)orwithBlockDeviceMappings(java.util.Collection)if you want to override the existing values.- Parameters:
blockDeviceMappings- The block device mapping of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public InstanceAttribute withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) The block device mapping of the instance.
- Parameters:
blockDeviceMappings- The block device mapping of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getProductCodes
A list of product codes.
- Returns:
- A list of product codes.
-
setProductCodes
A list of product codes.
- Parameters:
productCodes- A list of product codes.
-
withProductCodes
A list of product codes.
NOTE: This method appends the values to the existing list (if any). Use
setProductCodes(java.util.Collection)orwithProductCodes(java.util.Collection)if you want to override the existing values.- Parameters:
productCodes- A list of product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withProductCodes
A list of product codes.
- Parameters:
productCodes- A list of product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbsOptimized
Indicates whether the instance is optimized for EBS I/O.
- Parameters:
ebsOptimized- Indicates whether the instance is optimized for EBS I/O.
-
getEbsOptimized
Indicates whether the instance is optimized for EBS I/O.
- Returns:
- Indicates whether the instance is optimized for EBS I/O.
-
withEbsOptimized
Indicates whether the instance is optimized for EBS I/O.
- Parameters:
ebsOptimized- Indicates whether the instance is optimized for EBS I/O.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEbsOptimized
Indicates whether the instance is optimized for EBS I/O.
- Returns:
- Indicates whether the instance is optimized for EBS I/O.
-
setSriovNetSupport
- Parameters:
sriovNetSupport-
-
getSriovNetSupport
- Returns:
-
withSriovNetSupport
- Parameters:
sriovNetSupport-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceDestCheck
Indicates whether source/destination checking is enabled. A value of
truemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.- Parameters:
sourceDestCheck- Indicates whether source/destination checking is enabled. A value oftruemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.
-
getSourceDestCheck
Indicates whether source/destination checking is enabled. A value of
truemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.- Returns:
- Indicates whether source/destination checking is enabled. A value
of
truemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.
-
withSourceDestCheck
Indicates whether source/destination checking is enabled. A value of
truemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.- Parameters:
sourceDestCheck- Indicates whether source/destination checking is enabled. A value oftruemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSourceDestCheck
Indicates whether source/destination checking is enabled. A value of
truemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.- Returns:
- Indicates whether source/destination checking is enabled. A value
of
truemeans checking is enabled, andfalsemeans checking is disabled. This value must befalsefor a NAT instance to perform NAT.
-
getGroups
The security groups associated with the instance.
- Returns:
- The security groups associated with the instance.
-
setGroups
The security groups associated with the instance.
- Parameters:
groups- The security groups associated with the instance.
-
withGroups
The security groups associated with the instance.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)orwithGroups(java.util.Collection)if you want to override the existing values.- Parameters:
groups- The security groups associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
The security groups associated with the instance.
- Parameters:
groups- The security groups associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-