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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListSnapshotsResponse.BuildernextToken(String nextToken)IfnextTokenis returned, there are more results available.ListSnapshotsResponse.Buildersnapshots(Collection<Snapshot> snapshots)All of the returned snapshot objects.ListSnapshotsResponse.Buildersnapshots(Consumer<Snapshot.Builder>... snapshots)All of the returned snapshot objects.ListSnapshotsResponse.Buildersnapshots(Snapshot... snapshots)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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
ListSnapshotsResponse.Builder nextToken(String 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
ListSnapshotsResponse.Builder snapshots(Collection<Snapshot> 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
ListSnapshotsResponse.Builder snapshots(Snapshot... 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
ListSnapshotsResponse.Builder snapshots(Consumer<Snapshot.Builder>... 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 to#snapshots(List.) - 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:
#snapshots(java.util.Collection)
-
-