Class SubscribeToShardEvent.BuilderImpl
- All Implemented Interfaces:
SdkPojo,SubscribeToShardEvent.Builder,Buildable,CopyableBuilder<SubscribeToShardEvent.Builder,,SubscribeToShardEvent> SdkBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
- Enclosing class:
- SubscribeToShardEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()childShards(Collection<ChildShard> childShards) The list of the child shards of the current shard, returned only at the end of the current shard.childShards(Consumer<ChildShard.Builder>... childShards) The list of the child shards of the current shard, returned only at the end of the current shard.childShards(ChildShard... childShards) The list of the child shards of the current shard, returned only at the end of the current shard.continuationSequenceNumber(String continuationSequenceNumber) Use this asSequenceNumberin the next call to SubscribeToShard, withStartingPositionset toAT_SEQUENCE_NUMBERorAFTER_SEQUENCE_NUMBER.final List<ChildShard.Builder>final Stringfinal Longfinal List<Record.Builder>millisBehindLatest(Long millisBehindLatest) The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is.records(Collection<Record> records) records(Consumer<Record.Builder>... records) This is a convenience method that creates an instance of theRecord.Builderavoiding the need to create one manually viaRecord.builder().final voidsetChildShards(Collection<software.amazon.awssdk.services.kinesis.model.ChildShard.BuilderImpl> childShards) final voidsetContinuationSequenceNumber(String continuationSequenceNumber) final voidsetMillisBehindLatest(Long millisBehindLatest) final voidsetRecords(Collection<software.amazon.awssdk.services.kinesis.model.Record.BuilderImpl> records) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutationMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
getRecords
-
setRecords
public final void setRecords(Collection<software.amazon.awssdk.services.kinesis.model.Record.BuilderImpl> records) -
records
Description copied from interface:SubscribeToShardEvent.Builder- Specified by:
recordsin interfaceSubscribeToShardEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
Description copied from interface:SubscribeToShardEvent.Builder- Specified by:
recordsin interfaceSubscribeToShardEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
@SafeVarargs public final SubscribeToShardEvent.Builder records(Consumer<Record.Builder>... records) Description copied from interface:SubscribeToShardEvent.BuilderThis 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 toSubscribeToShardEvent.Builder.records(List<Record>).- Specified by:
recordsin interfaceSubscribeToShardEvent.Builder- 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:
-
getContinuationSequenceNumber
-
setContinuationSequenceNumber
-
continuationSequenceNumber
public final SubscribeToShardEvent.Builder continuationSequenceNumber(String continuationSequenceNumber) Description copied from interface:SubscribeToShardEvent.BuilderUse this as
SequenceNumberin the next call to SubscribeToShard, withStartingPositionset toAT_SEQUENCE_NUMBERorAFTER_SEQUENCE_NUMBER. UseContinuationSequenceNumberfor checkpointing because it captures your shard progress even when no data is written to the shard.- Specified by:
continuationSequenceNumberin interfaceSubscribeToShardEvent.Builder- Parameters:
continuationSequenceNumber- Use this asSequenceNumberin the next call to SubscribeToShard, withStartingPositionset toAT_SEQUENCE_NUMBERorAFTER_SEQUENCE_NUMBER. UseContinuationSequenceNumberfor checkpointing because it captures your shard progress even when no data is written to the shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMillisBehindLatest
-
setMillisBehindLatest
-
millisBehindLatest
Description copied from interface:SubscribeToShardEvent.BuilderThe number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
- Specified by:
millisBehindLatestin interfaceSubscribeToShardEvent.Builder- Parameters:
millisBehindLatest- The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getChildShards
-
setChildShards
public final void setChildShards(Collection<software.amazon.awssdk.services.kinesis.model.ChildShard.BuilderImpl> childShards) -
childShards
Description copied from interface:SubscribeToShardEvent.BuilderThe list of the child shards of the current shard, returned only at the end of the current shard.
- Specified by:
childShardsin interfaceSubscribeToShardEvent.Builder- Parameters:
childShards- The list of the child shards of the current shard, returned only at the end of the current shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childShards
Description copied from interface:SubscribeToShardEvent.BuilderThe list of the child shards of the current shard, returned only at the end of the current shard.
- Specified by:
childShardsin interfaceSubscribeToShardEvent.Builder- Parameters:
childShards- The list of the child shards of the current shard, returned only at the end of the current shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childShards
@SafeVarargs public final SubscribeToShardEvent.Builder childShards(Consumer<ChildShard.Builder>... childShards) Description copied from interface:SubscribeToShardEvent.BuilderThe list of the child shards of the current shard, returned only at the end of the current shard.
This is a convenience method that creates an instance of theChildShard.Builderavoiding the need to create one manually viaChildShard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toSubscribeToShardEvent.Builder.childShards(List<ChildShard>).- Specified by:
childShardsin interfaceSubscribeToShardEvent.Builder- Parameters:
childShards- a consumer that will call methods onChildShard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
build
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-