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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CopySnapshotResponse.Builder
snapshotId(String snapshotId)
The ID of the new snapshot.CopySnapshotResponse.Builder
tags(Collection<Tag> tags)
Any tags applied to the new snapshot.CopySnapshotResponse.Builder
tags(Consumer<Tag.Builder>... tags)
Any tags applied to the new snapshot.CopySnapshotResponse.Builder
tags(Tag... tags)
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 Detail
-
snapshotId
CopySnapshotResponse.Builder snapshotId(String 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
CopySnapshotResponse.Builder tags(Collection<Tag> 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
CopySnapshotResponse.Builder tags(Tag... 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
CopySnapshotResponse.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-