Interface GetRecordsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRecordsResponse.Builder,,GetRecordsResponse> KeyspacesStreamsResponse.Builder,SdkBuilder<GetRecordsResponse.Builder,,GetRecordsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetRecordsResponse
-
Method Summary
Modifier and TypeMethodDescriptionchangeRecords(Collection<Record> changeRecords) An array of change data records retrieved from the specified shard.changeRecords(Consumer<Record.Builder>... changeRecords) An array of change data records retrieved from the specified shard.changeRecords(Record... changeRecords) An array of change data records retrieved from the specified shard.default GetRecordsResponse.BuilderiteratorDescription(Consumer<IteratorDescription.Builder> iteratorDescription) Provides information about the current iterator at the time GetRecords request was processed by Keyspaces.iteratorDescription(IteratorDescription iteratorDescription) Provides information about the current iterator at the time GetRecords request was processed by Keyspaces.nextShardIterator(String nextShardIterator) The next position in the shard from which to start sequentially reading data records.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.keyspacesstreams.model.KeyspacesStreamsResponse.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
-
changeRecords
An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.
- Parameters:
changeRecords- An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
changeRecords
An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.
- Parameters:
changeRecords- An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
changeRecords
An array of change data records retrieved from the specified shard. Each record represents a single data modification (insert, update, or delete) to a row in the Amazon Keyspaces table. Records include the primary key columns and information about what data was modified.
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 tochangeRecords(List<Record>).- Parameters:
changeRecords- 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 data records. If 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 data records. If null, 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.
-
iteratorDescription
Provides information about the current iterator at the time GetRecords request was processed by Keyspaces.
- Parameters:
iteratorDescription- Provides information about the current iterator at the time GetRecords request was processed by Keyspaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iteratorDescription
default GetRecordsResponse.Builder iteratorDescription(Consumer<IteratorDescription.Builder> iteratorDescription) Provides information about the current iterator at the time GetRecords request was processed by Keyspaces.
This is a convenience method that creates an instance of theIteratorDescription.Builderavoiding the need to create one manually viaIteratorDescription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiteratorDescription(IteratorDescription).- Parameters:
iteratorDescription- a consumer that will call methods onIteratorDescription.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-