Interface CreateSnapshotsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSnapshotsRequest.Builder,,CreateSnapshotsRequest> Ec2Request.Builder,SdkBuilder<CreateSnapshotsRequest.Builder,,CreateSnapshotsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSnapshotsRequest
-
Method Summary
Modifier and TypeMethodDescriptioncopyTagsFromSource(String copyTagsFromSource) Copies the tags from the specified volume to corresponding snapshot.copyTagsFromSource(CopyTagsFromSource copyTagsFromSource) Copies the tags from the specified volume to corresponding snapshot.description(String description) A description propagated to every snapshot specified by the instance.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.default CreateSnapshotsRequest.BuilderinstanceSpecification(Consumer<InstanceSpecification.Builder> instanceSpecification) The instance to specify which volumes should be included in the snapshots.instanceSpecification(InstanceSpecification instanceSpecification) The instance to specify which volumes should be included in the snapshots.location(SnapshotLocationEnum location) outpostArn(String outpostArn) overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tagSpecifications(Collection<TagSpecification> tagSpecifications) Tags to apply to every snapshot specified by the instance.tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) Tags to apply to every snapshot specified by the instance.tagSpecifications(TagSpecification... tagSpecifications) Tags to apply to every snapshot specified by the instance.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
description
A description propagated to every snapshot specified by the instance.
- Parameters:
description- A description propagated to every snapshot specified by the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceSpecification
The instance to specify which volumes should be included in the snapshots.
- Parameters:
instanceSpecification- The instance to specify which volumes should be included in the snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceSpecification
default CreateSnapshotsRequest.Builder instanceSpecification(Consumer<InstanceSpecification.Builder> instanceSpecification) The instance to specify which volumes should be included in the snapshots.
This is a convenience method that creates an instance of theInstanceSpecification.Builderavoiding the need to create one manually viaInstanceSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceSpecification(InstanceSpecification).- Parameters:
instanceSpecification- a consumer that will call methods onInstanceSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outpostArn
Only supported for instances on Outposts. If the source instance is not on an Outpost, omit this parameter.
-
To create the snapshots on the same Outpost as the source instance, specify the ARN of that Outpost. The snapshots must be created on the same Outpost as the instance.
-
To create the snapshots in the parent Region of the Outpost, omit this parameter.
For more information, see Create local snapshots from volumes on an Outpost in the Amazon EBS User Guide.
- Parameters:
outpostArn-Only supported for instances on Outposts. If the source instance is not on an Outpost, omit this parameter.
-
To create the snapshots on the same Outpost as the source instance, specify the ARN of that Outpost. The snapshots must be created on the same Outpost as the instance.
-
To create the snapshots in the parent Region of the Outpost, omit this parameter.
For more information, see Create local snapshots from volumes on an Outpost in the Amazon EBS User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tagSpecifications
Tags to apply to every snapshot specified by the instance.
- Parameters:
tagSpecifications- Tags to apply to every snapshot specified by the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
Tags to apply to every snapshot specified by the instance.
- Parameters:
tagSpecifications- Tags to apply to every snapshot specified by the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateSnapshotsRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) Tags to apply to every snapshot specified by the instance.
This is a convenience method that creates an instance of theTagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagSpecifications(List<TagSpecification>).- Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyTagsFromSource
Copies the tags from the specified volume to corresponding snapshot.
- Parameters:
copyTagsFromSource- Copies the tags from the specified volume to corresponding snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
copyTagsFromSource
Copies the tags from the specified volume to corresponding snapshot.
- Parameters:
copyTagsFromSource- Copies the tags from the specified volume to corresponding snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.
-
To create local snapshots in the same Local Zone as the source instance, specify
local. -
To create regional snapshots in the parent Region of the Local Zone, specify
regionalor omit this parameter.
Default value:
regional- Parameters:
location-Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.
-
To create local snapshots in the same Local Zone as the source instance, specify
local. -
To create regional snapshots in the parent Region of the Local Zone, specify
regionalor omit this parameter.
Default value:
regional-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
location
Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.
-
To create local snapshots in the same Local Zone as the source instance, specify
local. -
To create regional snapshots in the parent Region of the Local Zone, specify
regionalor omit this parameter.
Default value:
regional- Parameters:
location-Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.
-
To create local snapshots in the same Local Zone as the source instance, specify
local. -
To create regional snapshots in the parent Region of the Local Zone, specify
regionalor omit this parameter.
Default value:
regional-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
CreateSnapshotsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSnapshotsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-