public static interface ModifyInstanceAttributeRequest.Builder extends Ec2Request.Builder, CopyableBuilder<ModifyInstanceAttributeRequest.Builder,ModifyInstanceAttributeRequest>
Modifier and Type | Method and Description |
---|---|
ModifyInstanceAttributeRequest.Builder |
attribute(InstanceAttributeName attribute)
The name of the attribute.
|
ModifyInstanceAttributeRequest.Builder |
attribute(String attribute)
The name of the attribute.
|
ModifyInstanceAttributeRequest.Builder |
blockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
ModifyInstanceAttributeRequest.Builder |
blockDeviceMappings(Consumer<InstanceBlockDeviceMappingSpecification.Builder>... blockDeviceMappings)
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
ModifyInstanceAttributeRequest.Builder |
blockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
ModifyInstanceAttributeRequest.Builder |
disableApiTermination(Boolean disableApiTermination)
If the value is
true , you can't terminate the instance using the Amazon EC2 console, CLI, or
API; otherwise, you can. |
ModifyInstanceAttributeRequest.Builder |
ebsOptimized(Boolean ebsOptimized)
Specifies whether the instance is optimized for Amazon EBS I/O.
|
ModifyInstanceAttributeRequest.Builder |
enaSupport(Boolean enaSupport)
Set to
true to enable enhanced networking with ENA for the instance. |
ModifyInstanceAttributeRequest.Builder |
groups(Collection<String> groups)
[EC2-VPC] Changes the security groups of the instance.
|
ModifyInstanceAttributeRequest.Builder |
groups(String... groups)
[EC2-VPC] Changes the security groups of the instance.
|
ModifyInstanceAttributeRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
ModifyInstanceAttributeRequest.Builder |
instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
ModifyInstanceAttributeRequest.Builder |
instanceType(String instanceType)
Changes the instance type to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
kernel(String kernel)
Changes the instance's kernel to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
ModifyInstanceAttributeRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
ModifyInstanceAttributeRequest.Builder |
ramdisk(String ramdisk)
Changes the instance's RAM disk to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
sourceDestCheck(Boolean sourceDestCheck)
Specifies whether source/destination checking is enabled.
|
ModifyInstanceAttributeRequest.Builder |
sriovNetSupport(String sriovNetSupport)
Set to
simple to enable enhanced networking with the Intel 82599 Virtual Function interface for
the instance. |
ModifyInstanceAttributeRequest.Builder |
userData(String userData)
Changes the instance's user data to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
value(String value)
A new value for the attribute.
|
build
overrideConfiguration
copy
applyMutation, build
ModifyInstanceAttributeRequest.Builder sourceDestCheck(Boolean sourceDestCheck)
Specifies 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
- Specifies 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.ModifyInstanceAttributeRequest.Builder attribute(String attribute)
The name of the attribute.
attribute
- The name of the attribute.InstanceAttributeName
,
InstanceAttributeName
ModifyInstanceAttributeRequest.Builder attribute(InstanceAttributeName attribute)
The name of the attribute.
attribute
- The name of the attribute.InstanceAttributeName
,
InstanceAttributeName
ModifyInstanceAttributeRequest.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The volume
must be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
blockDeviceMappings
- Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The
volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
default is true
and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
ModifyInstanceAttributeRequest.Builder blockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)
Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The volume
must be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
blockDeviceMappings
- Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The
volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
default is true
and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
ModifyInstanceAttributeRequest.Builder blockDeviceMappings(Consumer<InstanceBlockDeviceMappingSpecification.Builder>... blockDeviceMappings)
Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The volume
must be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
This is a convenience that creates an instance of the.Builder
avoiding the need to create one manually via #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)
ModifyInstanceAttributeRequest.Builder disableApiTermination(Boolean disableApiTermination)
If the value is true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
API; otherwise, you can. You cannot use this parameter for Spot Instances.
disableApiTermination
- If the value is true
, you can't terminate the instance using the Amazon EC2 console, CLI,
or API; otherwise, you can. You cannot use this parameter for Spot Instances.ModifyInstanceAttributeRequest.Builder ebsOptimized(Boolean ebsOptimized)
Specifies whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
ebsOptimized
- Specifies whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance.
This optimization isn't available with all instance types. Additional usage charges apply when using
an EBS Optimized instance.ModifyInstanceAttributeRequest.Builder enaSupport(Boolean enaSupport)
Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
enaSupport
- Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
ModifyInstanceAttributeRequest.Builder groups(Collection<String> groups)
[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
groups
- [EC2-VPC] Changes the security groups of the instance. You must specify at least one security group,
even if it's just the default security group for the VPC. You must specify the security group ID, not
the security group name.ModifyInstanceAttributeRequest.Builder groups(String... groups)
[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
groups
- [EC2-VPC] Changes the security groups of the instance. You must specify at least one security group,
even if it's just the default security group for the VPC. You must specify the security group ID, not
the security group name.ModifyInstanceAttributeRequest.Builder instanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.ModifyInstanceAttributeRequest.Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
instanceInitiatedShutdownBehavior
- Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using
the operating system command for system shutdown).ModifyInstanceAttributeRequest.Builder instanceType(String instanceType)
Changes the instance type to the specified value. For more information, see Instance Types. If the
instance type is not valid, the error returned is InvalidInstanceAttributeValue
.
instanceType
- Changes the instance type to the specified value. For more information, see Instance Types. If
the instance type is not valid, the error returned is InvalidInstanceAttributeValue
.ModifyInstanceAttributeRequest.Builder kernel(String kernel)
Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
kernel
- Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of
kernels and RAM disks. For more information, see PV-GRUB.ModifyInstanceAttributeRequest.Builder ramdisk(String ramdisk)
Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
ramdisk
- Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of
kernels and RAM disks. For more information, see PV-GRUB.ModifyInstanceAttributeRequest.Builder sriovNetSupport(String sriovNetSupport)
Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for
the instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
sriovNetSupport
- Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function
interface for the instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
ModifyInstanceAttributeRequest.Builder userData(String userData)
Changes the instance's user data to the specified value. If you are using an AWS SDK or command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text.
userData
- Changes the instance's user data to the specified value. If you are using an AWS SDK or command line
tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must
provide base64-encoded text.ModifyInstanceAttributeRequest.Builder value(String value)
A new value for the attribute. Use only with the kernel
, ramdisk
,
userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
value
- A new value for the attribute. Use only with the kernel
, ramdisk
,
userData
, disableApiTermination
, or
instanceInitiatedShutdownBehavior
attribute.ModifyInstanceAttributeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.ModifyInstanceAttributeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.