public static interface CreateReplaceRootVolumeTaskRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateReplaceRootVolumeTaskRequest.Builder,CreateReplaceRootVolumeTaskRequest>
Modifier and Type | Method and Description |
---|---|
CreateReplaceRootVolumeTaskRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
CreateReplaceRootVolumeTaskRequest.Builder |
deleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes.
|
CreateReplaceRootVolumeTaskRequest.Builder |
imageId(String imageId)
The ID of the AMI to use to restore the root volume.
|
CreateReplaceRootVolumeTaskRequest.Builder |
instanceId(String instanceId)
The ID of the instance for which to replace the root volume.
|
CreateReplaceRootVolumeTaskRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateReplaceRootVolumeTaskRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateReplaceRootVolumeTaskRequest.Builder |
snapshotId(String snapshotId)
The ID of the snapshot from which to restore the replacement root volume.
|
CreateReplaceRootVolumeTaskRequest.Builder |
tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the root volume replacement task.
|
CreateReplaceRootVolumeTaskRequest.Builder |
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the root volume replacement task.
|
CreateReplaceRootVolumeTaskRequest.Builder |
tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the root volume replacement task.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateReplaceRootVolumeTaskRequest.Builder instanceId(String instanceId)
The ID of the instance for which to replace the root volume.
instanceId
- The ID of the instance for which to replace the root volume.CreateReplaceRootVolumeTaskRequest.Builder snapshotId(String snapshotId)
The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must be a snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
snapshotId
- The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must
be a snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
CreateReplaceRootVolumeTaskRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency. For more information, see Ensuring idempotency.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not
specify a client token, a randomly generated token is used for the request to ensure idempotency. For
more information, see Ensuring
idempotency.CreateReplaceRootVolumeTaskRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the root volume replacement task.
tagSpecifications
- The tags to apply to the root volume replacement task.CreateReplaceRootVolumeTaskRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the root volume replacement task.
tagSpecifications
- The tags to apply to the root volume replacement task.CreateReplaceRootVolumeTaskRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the root volume replacement task.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one
manually via TagSpecification.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #tagSpecifications(List
.
tagSpecifications
- a consumer that will call methods on
TagSpecification.Builder
#tagSpecifications(java.util.Collection)
CreateReplaceRootVolumeTaskRequest.Builder imageId(String imageId)
The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code, billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
imageId
- The ID of the AMI to use to restore the root volume. The specified AMI must have the same product
code, billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
CreateReplaceRootVolumeTaskRequest.Builder deleteReplacedRootVolume(Boolean deleteReplacedRootVolume)
Indicates whether to automatically delete the original root volume after the root volume replacement task
completes. To delete the original root volume, specify true
. If you choose to keep the original
root volume after the replacement task completes, you must manually delete it when you no longer need it.
deleteReplacedRootVolume
- Indicates whether to automatically delete the original root volume after the root volume replacement
task completes. To delete the original root volume, specify true
. If you choose to keep
the original root volume after the replacement task completes, you must manually delete it when you no
longer need it.CreateReplaceRootVolumeTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
CreateReplaceRootVolumeTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.