Interface GetInstanceSnapshotResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetInstanceSnapshotResponse.Builder,
,GetInstanceSnapshotResponse> LightsailResponse.Builder
,SdkBuilder<GetInstanceSnapshotResponse.Builder,
,GetInstanceSnapshotResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetInstanceSnapshotResponse
@Mutable
@NotThreadSafe
public static interface GetInstanceSnapshotResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetInstanceSnapshotResponse.Builder,GetInstanceSnapshotResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninstanceSnapshot
(Consumer<InstanceSnapshot.Builder> instanceSnapshot) An array of key-value pairs containing information about the results of your get instance snapshot request.instanceSnapshot
(InstanceSnapshot instanceSnapshot) An array of key-value pairs containing information about the results of your get instance snapshot request.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
instanceSnapshot
An array of key-value pairs containing information about the results of your get instance snapshot request.
- Parameters:
instanceSnapshot
- An array of key-value pairs containing information about the results of your get instance snapshot request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceSnapshot
default GetInstanceSnapshotResponse.Builder instanceSnapshot(Consumer<InstanceSnapshot.Builder> instanceSnapshot) An array of key-value pairs containing information about the results of your get instance snapshot request.
This is a convenience method that creates an instance of theInstanceSnapshot.Builder
avoiding the need to create one manually viaInstanceSnapshot.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceSnapshot(InstanceSnapshot)
.- Parameters:
instanceSnapshot
- a consumer that will call methods onInstanceSnapshot.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-