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 |
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
copy
applyMutation, build
CreateSnapshotRequest.Builder description(String description)
A description for the snapshot.
description
- A description for the snapshot.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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.