Interface GetDiskSnapshotResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDiskSnapshotResponse.Builder,GetDiskSnapshotResponse>,LightsailResponse.Builder,SdkBuilder<GetDiskSnapshotResponse.Builder,GetDiskSnapshotResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetDiskSnapshotResponse
public static interface GetDiskSnapshotResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetDiskSnapshotResponse.Builder,GetDiskSnapshotResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetDiskSnapshotResponse.BuilderdiskSnapshot(Consumer<DiskSnapshot.Builder> diskSnapshot)An object containing information about the disk snapshot.GetDiskSnapshotResponse.BuilderdiskSnapshot(DiskSnapshot diskSnapshot)An object containing information about the disk snapshot.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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
-
diskSnapshot
GetDiskSnapshotResponse.Builder diskSnapshot(DiskSnapshot diskSnapshot)
An object containing information about the disk snapshot.
- Parameters:
diskSnapshot- An object containing information about the disk snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diskSnapshot
default GetDiskSnapshotResponse.Builder diskSnapshot(Consumer<DiskSnapshot.Builder> diskSnapshot)
An object containing information about the disk snapshot.
This is a convenience method that creates an instance of theDiskSnapshot.Builderavoiding the need to create one manually viaDiskSnapshot.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todiskSnapshot(DiskSnapshot).- Parameters:
diskSnapshot- a consumer that will call methods onDiskSnapshot.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
diskSnapshot(DiskSnapshot)
-
-