Interface ListSnapshotsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSnapshotsResponse.Builder,,ListSnapshotsResponse> RedshiftServerlessResponse.Builder,SdkBuilder<ListSnapshotsResponse.Builder,,ListSnapshotsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListSnapshotsResponse
public static interface ListSnapshotsResponse.Builder
extends RedshiftServerlessResponse.Builder, SdkPojo, CopyableBuilder<ListSnapshotsResponse.Builder,ListSnapshotsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIfnextTokenis returned, there are more results available.snapshots(Collection<Snapshot> snapshots) All of the returned snapshot objects.snapshots(Consumer<Snapshot.Builder>... snapshots) All of the returned snapshot objects.All of the returned snapshot objects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.redshiftserverless.model.RedshiftServerlessResponse.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
-
nextToken
If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.- Parameters:
nextToken- IfnextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
All of the returned snapshot objects.
- Parameters:
snapshots- All of the returned snapshot objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
All of the returned snapshot objects.
- Parameters:
snapshots- All of the returned snapshot objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
All of the returned snapshot objects.
This is a convenience method that creates an instance of theSnapshot.Builderavoiding the need to create one manually viaSnapshot.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapshots(List<Snapshot>).- Parameters:
snapshots- a consumer that will call methods onSnapshot.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-