public static interface ModifyInstanceAttributeRequest.Builder extends Ec2Request.Builder, SdkPojo, 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 |
disableApiStop(AttributeBooleanValue disableApiStop)
Indicates whether an instance is enabled for stop protection.
|
default ModifyInstanceAttributeRequest.Builder |
disableApiStop(Consumer<AttributeBooleanValue.Builder> disableApiStop)
Indicates whether an instance is enabled for stop protection.
|
ModifyInstanceAttributeRequest.Builder |
disableApiTermination(AttributeBooleanValue disableApiTermination)
If the value is
true , you can't terminate the instance using the Amazon EC2 console, CLI, or
API; otherwise, you can. |
default ModifyInstanceAttributeRequest.Builder |
disableApiTermination(Consumer<AttributeBooleanValue.Builder> 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(AttributeBooleanValue ebsOptimized)
Specifies whether the instance is optimized for Amazon EBS I/O.
|
default ModifyInstanceAttributeRequest.Builder |
ebsOptimized(Consumer<AttributeBooleanValue.Builder> ebsOptimized)
Specifies whether the instance is optimized for Amazon EBS I/O.
|
ModifyInstanceAttributeRequest.Builder |
enaSupport(AttributeBooleanValue enaSupport)
Set to
true to enable enhanced networking with ENA for the instance. |
default ModifyInstanceAttributeRequest.Builder |
enaSupport(Consumer<AttributeBooleanValue.Builder> enaSupport)
Set to
true to enable enhanced networking with ENA for the instance. |
ModifyInstanceAttributeRequest.Builder |
groups(Collection<String> groups)
[EC2-VPC] Replaces the security groups of the instance with the specified security groups.
|
ModifyInstanceAttributeRequest.Builder |
groups(String... groups)
[EC2-VPC] Replaces the security groups of the instance with the specified security groups.
|
ModifyInstanceAttributeRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
ModifyInstanceAttributeRequest.Builder |
instanceInitiatedShutdownBehavior(AttributeValue instanceInitiatedShutdownBehavior)
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
default ModifyInstanceAttributeRequest.Builder |
instanceInitiatedShutdownBehavior(Consumer<AttributeValue.Builder> 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(AttributeValue instanceType)
Changes the instance type to the specified value.
|
default ModifyInstanceAttributeRequest.Builder |
instanceType(Consumer<AttributeValue.Builder> instanceType)
Changes the instance type to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
kernel(AttributeValue kernel)
Changes the instance's kernel to the specified value.
|
default ModifyInstanceAttributeRequest.Builder |
kernel(Consumer<AttributeValue.Builder> kernel)
Changes the instance's kernel to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
ModifyInstanceAttributeRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
ModifyInstanceAttributeRequest.Builder |
ramdisk(AttributeValue ramdisk)
Changes the instance's RAM disk to the specified value.
|
default ModifyInstanceAttributeRequest.Builder |
ramdisk(Consumer<AttributeValue.Builder> ramdisk)
Changes the instance's RAM disk to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
sourceDestCheck(AttributeBooleanValue sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
default ModifyInstanceAttributeRequest.Builder |
sourceDestCheck(Consumer<AttributeBooleanValue.Builder> sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives.
|
ModifyInstanceAttributeRequest.Builder |
sriovNetSupport(AttributeValue sriovNetSupport)
Set to
simple to enable enhanced networking with the Intel 82599 Virtual Function interface for
the instance. |
default ModifyInstanceAttributeRequest.Builder |
sriovNetSupport(Consumer<AttributeValue.Builder> sriovNetSupport)
Set to
simple to enable enhanced networking with the Intel 82599 Virtual Function interface for
the instance. |
ModifyInstanceAttributeRequest.Builder |
userData(BlobAttributeValue userData)
Changes the instance's user data to the specified value.
|
default ModifyInstanceAttributeRequest.Builder |
userData(Consumer<BlobAttributeValue.Builder> userData)
Changes the instance's user data to the specified value.
|
ModifyInstanceAttributeRequest.Builder |
value(String value)
A new value for the attribute.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
ModifyInstanceAttributeRequest.Builder sourceDestCheck(AttributeBooleanValue sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
sourceDestCheck
- Enable or disable source/destination checks, which ensure that the instance is either the source or
the destination of any traffic that it receives. If the value is true
, source/destination
checks are enabled; otherwise, they are disabled. The default value is true
. You must
disable source/destination checks if the instance runs services such as network address translation,
routing, or firewalls.default ModifyInstanceAttributeRequest.Builder sourceDestCheck(Consumer<AttributeBooleanValue.Builder> sourceDestCheck)
Enable or disable source/destination checks, which ensure that the instance is either the source or the
destination of any traffic that it receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You must disable
source/destination checks if the instance runs services such as network address translation, routing, or
firewalls.
AttributeBooleanValue.Builder
avoiding
the need to create one manually via AttributeBooleanValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to sourceDestCheck(AttributeBooleanValue)
.sourceDestCheck
- a consumer that will call methods on AttributeBooleanValue.Builder
sourceDestCheck(AttributeBooleanValue)
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 Update the block device mapping when launching an instance in the Amazon EC2 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 Update the block device mapping when launching an instance in the Amazon EC2 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 Update the block device mapping when launching an instance in the Amazon EC2 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 Update the block device mapping when launching an instance in the Amazon EC2 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 Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
This is a convenience method 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(AttributeBooleanValue 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.default ModifyInstanceAttributeRequest.Builder disableApiTermination(Consumer<AttributeBooleanValue.Builder> 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.
AttributeBooleanValue.Builder
avoiding
the need to create one manually via AttributeBooleanValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to disableApiTermination(AttributeBooleanValue)
.disableApiTermination
- a consumer that will call methods on AttributeBooleanValue.Builder
disableApiTermination(AttributeBooleanValue)
ModifyInstanceAttributeRequest.Builder ebsOptimized(AttributeBooleanValue 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.default ModifyInstanceAttributeRequest.Builder ebsOptimized(Consumer<AttributeBooleanValue.Builder> 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.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builder
avoiding
the need to create one manually via AttributeBooleanValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to ebsOptimized(AttributeBooleanValue)
.ebsOptimized
- a consumer that will call methods on AttributeBooleanValue.Builder
ebsOptimized(AttributeBooleanValue)
ModifyInstanceAttributeRequest.Builder enaSupport(AttributeBooleanValue 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.
default ModifyInstanceAttributeRequest.Builder enaSupport(Consumer<AttributeBooleanValue.Builder> 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.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builder
avoiding
the need to create one manually via AttributeBooleanValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to enaSupport(AttributeBooleanValue)
.enaSupport
- a consumer that will call methods on AttributeBooleanValue.Builder
enaSupport(AttributeBooleanValue)
ModifyInstanceAttributeRequest.Builder groups(Collection<String> groups)
[EC2-VPC] Replaces the security groups of the instance with the specified security groups. 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] Replaces the security groups of the instance with the specified security groups. 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] Replaces the security groups of the instance with the specified security groups. 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] Replaces the security groups of the instance with the specified security groups. 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(AttributeValue 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).default ModifyInstanceAttributeRequest.Builder instanceInitiatedShutdownBehavior(Consumer<AttributeValue.Builder> instanceInitiatedShutdownBehavior)
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need
to create one manually via AttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to instanceInitiatedShutdownBehavior(AttributeValue)
.instanceInitiatedShutdownBehavior
- a consumer that will call methods on AttributeValue.Builder
instanceInitiatedShutdownBehavior(AttributeValue)
ModifyInstanceAttributeRequest.Builder instanceType(AttributeValue instanceType)
Changes the instance type to the specified value. For more information, see Instance types in the
Amazon EC2 User Guide. 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 in
the Amazon EC2 User Guide. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.default ModifyInstanceAttributeRequest.Builder instanceType(Consumer<AttributeValue.Builder> instanceType)
Changes the instance type to the specified value. For more information, see Instance types in the
Amazon EC2 User Guide. If the instance type is not valid, the error returned is
InvalidInstanceAttributeValue
.
AttributeValue.Builder
avoiding the need
to create one manually via AttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to instanceType(AttributeValue)
.instanceType
- a consumer that will call methods on AttributeValue.Builder
instanceType(AttributeValue)
ModifyInstanceAttributeRequest.Builder kernel(AttributeValue 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.default ModifyInstanceAttributeRequest.Builder kernel(Consumer<AttributeValue.Builder> 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.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need
to create one manually via AttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to kernel(AttributeValue)
.kernel
- a consumer that will call methods on AttributeValue.Builder
kernel(AttributeValue)
ModifyInstanceAttributeRequest.Builder ramdisk(AttributeValue 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.default ModifyInstanceAttributeRequest.Builder ramdisk(Consumer<AttributeValue.Builder> 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.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need
to create one manually via AttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to ramdisk(AttributeValue)
.ramdisk
- a consumer that will call methods on AttributeValue.Builder
ramdisk(AttributeValue)
ModifyInstanceAttributeRequest.Builder sriovNetSupport(AttributeValue 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.
default ModifyInstanceAttributeRequest.Builder sriovNetSupport(Consumer<AttributeValue.Builder> 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.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need
to create one manually via AttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to sriovNetSupport(AttributeValue)
.sriovNetSupport
- a consumer that will call methods on AttributeValue.Builder
sriovNetSupport(AttributeValue)
ModifyInstanceAttributeRequest.Builder userData(BlobAttributeValue userData)
Changes the instance's user data to the specified value. If you are using an Amazon Web Services 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 Amazon Web Services 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.default ModifyInstanceAttributeRequest.Builder userData(Consumer<BlobAttributeValue.Builder> userData)
Changes the instance's user data to the specified value. If you are using an Amazon Web Services 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.
This is a convenience method that creates an instance of theBlobAttributeValue.Builder
avoiding the
need to create one manually via BlobAttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to userData(BlobAttributeValue)
.userData
- a consumer that will call methods on BlobAttributeValue.Builder
userData(BlobAttributeValue)
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 disableApiStop(AttributeBooleanValue disableApiStop)
Indicates whether an instance is enabled for stop protection. For more information, see Stop Protection.
disableApiStop
- Indicates whether an instance is enabled for stop protection. For more information, see Stop
Protection.
default ModifyInstanceAttributeRequest.Builder disableApiStop(Consumer<AttributeBooleanValue.Builder> disableApiStop)
Indicates whether an instance is enabled for stop protection. For more information, see Stop Protection.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builder
avoiding
the need to create one manually via AttributeBooleanValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to disableApiStop(AttributeBooleanValue)
.disableApiStop
- a consumer that will call methods on AttributeBooleanValue.Builder
disableApiStop(AttributeBooleanValue)
ModifyInstanceAttributeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
ModifyInstanceAttributeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2022. All rights reserved.