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
Modifier and TypeMethodDescriptiondefault GetDiskSnapshotResponse.BuilderdiskSnapshot(Consumer<DiskSnapshot.Builder> diskSnapshot) An object containing information about the disk snapshot.diskSnapshot(DiskSnapshot diskSnapshot) An object containing information about the disk snapshot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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
-
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
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:
-