Interface CreateSnapshotsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateSnapshotsRequest.Builder,CreateSnapshotsRequest>
,Ec2Request.Builder
,SdkBuilder<CreateSnapshotsRequest.Builder,CreateSnapshotsRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateSnapshotsRequest
public static interface CreateSnapshotsRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateSnapshotsRequest.Builder,CreateSnapshotsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateSnapshotsRequest.Builder
copyTagsFromSource(String copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.CreateSnapshotsRequest.Builder
copyTagsFromSource(CopyTagsFromSource copyTagsFromSource)
Copies the tags from the specified volume to corresponding snapshot.CreateSnapshotsRequest.Builder
description(String description)
A description propagated to every snapshot specified by the instance.CreateSnapshotsRequest.Builder
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.default CreateSnapshotsRequest.Builder
instanceSpecification(Consumer<InstanceSpecification.Builder> instanceSpecification)
The instance to specify which volumes should be included in the snapshots.CreateSnapshotsRequest.Builder
instanceSpecification(InstanceSpecification instanceSpecification)
The instance to specify which volumes should be included in the snapshots.CreateSnapshotsRequest.Builder
outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.CreateSnapshotsRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateSnapshotsRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateSnapshotsRequest.Builder
tagSpecifications(Collection<TagSpecification> tagSpecifications)
Tags to apply to every snapshot specified by the instance.CreateSnapshotsRequest.Builder
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
Tags to apply to every snapshot specified by the instance.CreateSnapshotsRequest.Builder
tagSpecifications(TagSpecification... tagSpecifications)
Tags to apply to every snapshot specified by the instance.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
description
CreateSnapshotsRequest.Builder description(String 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
CreateSnapshotsRequest.Builder instanceSpecification(InstanceSpecification 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.Builder
avoiding the need to create one manually viaInstanceSpecification.builder()
.When the
Consumer
completes,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:
instanceSpecification(InstanceSpecification)
-
outpostArn
CreateSnapshotsRequest.Builder outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
-
To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same Region as the instance.
-
To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. The snapshots are created in the Region for the Outpost.
-
To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the destination Outpost. The snapshots must be created on the same Outpost as the instance.
For more information, see Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
outpostArn
- The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.-
To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same Region as the instance.
-
To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. The snapshots are created in the Region for the Outpost.
-
To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the destination Outpost. The snapshots must be created on the same Outpost as the instance.
For more information, see Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tagSpecifications
CreateSnapshotsRequest.Builder tagSpecifications(Collection<TagSpecification> 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(TagSpecification... 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.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tagSpecifications(List
.) - 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:
#tagSpecifications(java.util.Collection
)
-
dryRun
CreateSnapshotsRequest.Builder dryRun(Boolean 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
CreateSnapshotsRequest.Builder copyTagsFromSource(String 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
,CopyTagsFromSource
-
copyTagsFromSource
CreateSnapshotsRequest.Builder copyTagsFromSource(CopyTagsFromSource 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
,CopyTagsFromSource
-
overrideConfiguration
CreateSnapshotsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateSnapshotsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-