CopyableBuilder<InstanceAttribute.Builder,InstanceAttribute>
, SdkBuilder<InstanceAttribute.Builder,InstanceAttribute>
public static interface InstanceAttribute.Builder extends CopyableBuilder<InstanceAttribute.Builder,InstanceAttribute>
Modifier and Type | Method | Description |
---|---|---|
InstanceAttribute.Builder |
blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) |
The block device mapping of the instance.
|
InstanceAttribute.Builder |
blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings) |
The block device mapping of the instance.
|
InstanceAttribute.Builder |
disableApiTermination(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.Builder |
ebsOptimized(Boolean ebsOptimized) |
Indicates whether the instance is optimized for EBS I/O.
|
InstanceAttribute.Builder |
enaSupport(Boolean enaSupport) |
Indicates whether enhanced networking with ENA is enabled.
|
InstanceAttribute.Builder |
groups(Collection<GroupIdentifier> groups) |
The security groups associated with the instance.
|
InstanceAttribute.Builder |
groups(GroupIdentifier... groups) |
The security groups associated with the instance.
|
InstanceAttribute.Builder |
instanceId(String instanceId) |
The ID of the instance.
|
InstanceAttribute.Builder |
instanceInitiatedShutdownBehavior(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.Builder |
instanceType(String instanceType) |
The instance type.
|
InstanceAttribute.Builder |
kernelId(String kernelId) |
The kernel ID.
|
InstanceAttribute.Builder |
productCodes(Collection<ProductCode> productCodes) |
A list of product codes.
|
InstanceAttribute.Builder |
productCodes(ProductCode... productCodes) |
A list of product codes.
|
InstanceAttribute.Builder |
ramdiskId(String ramdiskId) |
The RAM disk ID.
|
InstanceAttribute.Builder |
rootDeviceName(String rootDeviceName) |
The name of the root device (for example,
/dev/sda1 or /dev/xvda ). |
InstanceAttribute.Builder |
sourceDestCheck(Boolean sourceDestCheck) |
Indicates whether source/destination checking is enabled.
|
InstanceAttribute.Builder |
sriovNetSupport(String sriovNetSupport) |
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
InstanceAttribute.Builder |
userData(String userData) |
The user data.
|
copy
apply, build
InstanceAttribute.Builder groups(Collection<GroupIdentifier> groups)
The security groups associated with the instance.
groups
- The security groups associated with the instance.InstanceAttribute.Builder groups(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.InstanceAttribute.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
blockDeviceMappings
- The block device mapping of the instance.InstanceAttribute.Builder blockDeviceMappings(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.InstanceAttribute.Builder disableApiTermination(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.InstanceAttribute.Builder enaSupport(Boolean enaSupport)
Indicates whether enhanced networking with ENA is enabled.
enaSupport
- Indicates whether enhanced networking with ENA is enabled.InstanceAttribute.Builder ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.InstanceAttribute.Builder instanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.InstanceAttribute.Builder instanceInitiatedShutdownBehavior(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).InstanceAttribute.Builder instanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceAttribute.Builder kernelId(String kernelId)
The kernel ID.
kernelId
- The kernel ID.InstanceAttribute.Builder productCodes(Collection<ProductCode> productCodes)
A list of product codes.
productCodes
- A list of product codes.InstanceAttribute.Builder productCodes(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.InstanceAttribute.Builder ramdiskId(String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.InstanceAttribute.Builder rootDeviceName(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
).InstanceAttribute.Builder sourceDestCheck(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.InstanceAttribute.Builder sriovNetSupport(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.InstanceAttribute.Builder userData(String userData)
The user data.
userData
- The user data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.