Interface CopySnapshotResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CopySnapshotResponse.Builder,
,CopySnapshotResponse> Ec2Response.Builder
,SdkBuilder<CopySnapshotResponse.Builder,
,CopySnapshotResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CopySnapshotResponse
public static interface CopySnapshotResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CopySnapshotResponse.Builder,CopySnapshotResponse>
-
Method Summary
Modifier and TypeMethodDescriptionsnapshotId
(String snapshotId) The ID of the new snapshot.tags
(Collection<Tag> tags) Any tags applied to the new snapshot.tags
(Consumer<Tag.Builder>... tags) Any tags applied to the new snapshot.Any tags applied to the new snapshot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
snapshotId
The ID of the new snapshot.
- Parameters:
snapshotId
- The ID of the new snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags applied to the new snapshot.
- Parameters:
tags
- Any tags applied to the new snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags applied to the new snapshot.
- Parameters:
tags
- Any tags applied to the new snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags applied to the new snapshot.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-