Interface ListSnapshotsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListSnapshotsResponse.Builder,
,ListSnapshotsResponse> RedshiftServerlessResponse.Builder
,SdkBuilder<ListSnapshotsResponse.Builder,
,ListSnapshotsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListSnapshotsResponse
@Mutable
@NotThreadSafe
public static interface ListSnapshotsResponse.Builder
extends RedshiftServerlessResponse.Builder, SdkPojo, CopyableBuilder<ListSnapshotsResponse.Builder,ListSnapshotsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIfnextToken
is 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
copy
Methods inherited from interface software.amazon.awssdk.services.redshiftserverless.model.RedshiftServerlessResponse.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
-
nextToken
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.- Parameters:
nextToken
- IfnextToken
is returned, there are more results available. The value ofnextToken
is 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.Builder
avoiding the need to create one manually viaSnapshot.builder()
.When the
Consumer
completes,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:
-