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
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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:
-
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.
-