public static interface InstanceAttribute.Builder extends CopyableBuilder<InstanceAttribute.Builder,InstanceAttribute>
Modifier and Type | Method and Description |
---|---|
InstanceAttribute.Builder |
blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
|
InstanceAttribute.Builder |
blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... 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 Amazon 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(Consumer<GroupIdentifier.Builder>... 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(Consumer<ProductCode.Builder>... 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 device name of the root device volume (for example,
/dev/sda1 ). |
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
applyMutation, 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.
groups
- The security groups associated with the instance.InstanceAttribute.Builder groups(Consumer<GroupIdentifier.Builder>... groups)
The security groups associated with the instance.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #groups(List)
.groups
- a consumer that will call methods on List.Builder
#groups(List)
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.
blockDeviceMappings
- The block device mapping of the instance.InstanceAttribute.Builder blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings)
The block device mapping of the instance.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #blockDeviceMappings(List)
.blockDeviceMappings
- a consumer that will call methods on List.Builder
#blockDeviceMappings(List)
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 Amazon EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for Amazon 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.
productCodes
- A list of product codes.InstanceAttribute.Builder productCodes(Consumer<ProductCode.Builder>... productCodes)
A list of product codes.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #productCodes(List)
.productCodes
- a consumer that will call methods on List.Builder
#productCodes(List)
InstanceAttribute.Builder ramdiskId(String ramdiskId)
The RAM disk ID.
ramdiskId
- The RAM disk ID.InstanceAttribute.Builder rootDeviceName(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
).InstanceAttribute.Builder sourceDestCheck(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.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.