public static interface GetRecordsResponse.Builder extends DynamoDbStreamsResponse.Builder, SdkPojo, CopyableBuilder<GetRecordsResponse.Builder,GetRecordsResponse>
Modifier and Type | Method and Description |
---|---|
GetRecordsResponse.Builder |
nextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records.
|
GetRecordsResponse.Builder |
records(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
|
GetRecordsResponse.Builder |
records(Consumer<Record.Builder>... records)
The stream records from the shard, which were retrieved using the shard iterator.
|
GetRecordsResponse.Builder |
records(Record... records)
The stream records from the shard, which were retrieved using the shard iterator.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
GetRecordsResponse.Builder records(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
records
- The stream records from the shard, which were retrieved using the shard iterator.GetRecordsResponse.Builder records(Record... records)
The stream records from the shard, which were retrieved using the shard iterator.
records
- The stream records from the shard, which were retrieved using the shard iterator.GetRecordsResponse.Builder records(Consumer<Record.Builder>... records)
The stream records from the shard, which were retrieved using the shard iterator.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #records(List)
.records
- a consumer that will call methods on List.Builder
#records(List)
GetRecordsResponse.Builder nextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.
nextShardIterator
- The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.Copyright © 2019. All rights reserved.