public static interface CreateSnapshotResponse.Builder extends Ec2Response.Builder, CopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>
Modifier and Type | Method and Description |
---|---|
default CreateSnapshotResponse.Builder |
snapshot(Consumer<Snapshot.Builder> snapshot)
Describes a snapshot.
|
CreateSnapshotResponse.Builder |
snapshot(Snapshot snapshot)
Describes a snapshot.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
CreateSnapshotResponse.Builder snapshot(Snapshot snapshot)
Describes a snapshot.
snapshot
- Describes a snapshot.default CreateSnapshotResponse.Builder snapshot(Consumer<Snapshot.Builder> snapshot)
Describes a snapshot.
This is a convenience that creates an instance of theSnapshot.Builder
avoiding the need to create
one manually via Snapshot.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to snapshot(Snapshot)
.snapshot
- a consumer that will call methods on Snapshot.Builder
snapshot(Snapshot)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.