public static interface CreateSnapshotRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateSnapshotRequest.Builder,CreateSnapshotRequest>
Modifier and Type | Method and Description |
---|---|
CreateSnapshotRequest.Builder |
description(String description)
A description for the snapshot.
|
CreateSnapshotRequest.Builder |
outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local snapshot.
|
CreateSnapshotRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateSnapshotRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateSnapshotRequest.Builder |
tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the snapshot during creation.
|
CreateSnapshotRequest.Builder |
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the snapshot during creation.
|
CreateSnapshotRequest.Builder |
tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the snapshot during creation.
|
CreateSnapshotRequest.Builder |
volumeId(String volumeId)
The ID of the EBS volume.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateSnapshotRequest.Builder description(String description)
A description for the snapshot.
description
- A description for the snapshot.CreateSnapshotRequest.Builder outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local snapshot.
To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same Region as the volume.
To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. The snapshot is created in the Region for the Outpost.
To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of the destination Outpost. The snapshot must be created on the same Outpost as the volume.
For more information, see Creating local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide.
outpostArn
- The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local snapshot.
To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same Region as the volume.
To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. The snapshot is created in the Region for the Outpost.
To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of the destination Outpost. The snapshot must be created on the same Outpost as the volume.
For more information, see Creating local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide.
CreateSnapshotRequest.Builder volumeId(String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.CreateSnapshotRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the snapshot during creation.
tagSpecifications
- The tags to apply to the snapshot during creation.CreateSnapshotRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the snapshot during creation.
tagSpecifications
- The tags to apply to the snapshot during creation.CreateSnapshotRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the snapshot during creation.
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 #tagSpecifications(List)
.tagSpecifications
- a consumer that will call methods on List.Builder
#tagSpecifications(List)
CreateSnapshotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateSnapshotRequest.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.