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