Interface GetRecordsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRecordsResponse.Builder,,GetRecordsResponse> DynamoDbStreamsResponse.Builder,SdkBuilder<GetRecordsResponse.Builder,,GetRecordsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetRecordsResponse
@Mutable
@NotThreadSafe
public static interface GetRecordsResponse.Builder
extends DynamoDbStreamsResponse.Builder, SdkPojo, CopyableBuilder<GetRecordsResponse.Builder,GetRecordsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionnextShardIterator(String nextShardIterator) The next position in the shard from which to start sequentially reading stream records.records(Collection<Record> records) The stream records from the shard, which were retrieved using the shard iterator.records(Consumer<Record.Builder>... records) The stream records from the shard, which were retrieved using the shard iterator.The stream records from the shard, which were retrieved using the shard iterator.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.dynamodb.model.DynamoDbStreamsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
records
The stream records from the shard, which were retrieved using the shard iterator.
- Parameters:
records- The stream records from the shard, which were retrieved using the shard iterator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The stream records from the shard, which were retrieved using the shard iterator.
- Parameters:
records- The stream records from the shard, which were retrieved using the shard iterator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The stream records from the shard, which were retrieved using the shard iterator.
This is a convenience method that creates an instance of theRecord.Builderavoiding the need to create one manually viaRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecords(List<Record>).- Parameters:
records- a consumer that will call methods onRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
nextShardIterator- The next position in the shard from which to start sequentially reading stream records. If set tonull, the shard has been closed and the requested iterator will not return any more data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-