public static interface CreateRestoreImageTaskRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateRestoreImageTaskRequest.Builder,CreateRestoreImageTaskRequest>
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateRestoreImageTaskRequest.Builder bucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
bucket
- The name of the Amazon S3 bucket that contains the stored AMI object.CreateRestoreImageTaskRequest.Builder objectKey(String objectKey)
The name of the stored AMI object in the bucket.
objectKey
- The name of the stored AMI object in the bucket.CreateRestoreImageTaskRequest.Builder name(String name)
The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.
name
- The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you
do not provide a name, the new AMI gets the same name as the original AMI.CreateRestoreImageTaskRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag is
applied to all of the snapshots that are created.
tagSpecifications
- The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or
both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same
tag is applied to all of the snapshots that are created.
CreateRestoreImageTaskRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag is
applied to all of the snapshots that are created.
tagSpecifications
- The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or
both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same
tag is applied to all of the snapshots that are created.
CreateRestoreImageTaskRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
To tag the AMI, the value for ResourceType
must be image
.
To tag the snapshots, the value for ResourceType
must be snapshot
. The same tag is
applied to all of the snapshots that are created.
List.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 #tagSpecifications(List)
.tagSpecifications
- a consumer that will call methods on List.Builder
#tagSpecifications(List)
CreateRestoreImageTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
CreateRestoreImageTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2022. All rights reserved.