Interface GetInstanceSnapshotResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetInstanceSnapshotResponse.Builder,,GetInstanceSnapshotResponse> LightsailResponse.Builder,SdkBuilder<GetInstanceSnapshotResponse.Builder,,GetInstanceSnapshotResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetInstanceSnapshotResponse
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
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
-
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.Builderavoiding the need to create one manually viaInstanceSnapshot.builder().When the
Consumercompletes,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:
-