protected static class SubscribeToShardEvent.BuilderImpl extends Object implements SubscribeToShardEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(SubscribeToShardEvent model) |
| Modifier and Type | Method and Description |
|---|---|
SubscribeToShardEvent |
build() |
SubscribeToShardEvent.Builder |
childShards(ChildShard... childShards)
Sets the value of the ChildShards property for this object.
|
SubscribeToShardEvent.Builder |
childShards(Collection<ChildShard> childShards)
Sets the value of the ChildShards property for this object.
|
SubscribeToShardEvent.Builder |
childShards(Consumer<ChildShard.Builder>... childShards)
Sets the value of the ChildShards property for this object.
|
SubscribeToShardEvent.Builder |
continuationSequenceNumber(String continuationSequenceNumber)
Use this as
SequenceNumber in the next call to SubscribeToShard, with
StartingPosition set to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER. |
Collection<ChildShard.Builder> |
getChildShards() |
String |
getContinuationSequenceNumber() |
Long |
getMillisBehindLatest() |
Collection<Record.Builder> |
getRecords() |
SubscribeToShardEvent.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.
|
SubscribeToShardEvent.Builder |
records(Collection<Record> records)
|
SubscribeToShardEvent.Builder |
records(Consumer<Record.Builder>... records)
This is a convenience that creates an instance of the
List avoiding the need to
create one manually via List. |
SubscribeToShardEvent.Builder |
records(Record... records)
|
List<SdkField<?>> |
sdkFields() |
void |
setChildShards(Collection<software.amazon.awssdk.services.kinesis.model.ChildShard.BuilderImpl> childShards) |
void |
setContinuationSequenceNumber(String continuationSequenceNumber) |
void |
setMillisBehindLatest(Long millisBehindLatest) |
void |
setRecords(Collection<software.amazon.awssdk.services.kinesis.model.Record.BuilderImpl> records) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(SubscribeToShardEvent model)
public final Collection<Record.Builder> getRecords()
public final SubscribeToShardEvent.Builder records(Collection<Record> records)
SubscribeToShardEvent.Builderrecords in interface SubscribeToShardEvent.Builder@SafeVarargs public final SubscribeToShardEvent.Builder records(Record... records)
SubscribeToShardEvent.Builderrecords in interface SubscribeToShardEvent.Builder@SafeVarargs public final SubscribeToShardEvent.Builder records(Consumer<Record.Builder>... records)
SubscribeToShardEvent.BuilderList.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 in interface SubscribeToShardEvent.Builderrecords - a consumer that will call methods on List.Builder #records(List) public final void setRecords(Collection<software.amazon.awssdk.services.kinesis.model.Record.BuilderImpl> records)
public final String getContinuationSequenceNumber()
public final SubscribeToShardEvent.Builder continuationSequenceNumber(String continuationSequenceNumber)
SubscribeToShardEvent.Builder
Use this as SequenceNumber in the next call to SubscribeToShard, with
StartingPosition set to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER.
Use ContinuationSequenceNumber for checkpointing because it captures your shard progress even
when no data is written to the shard.
continuationSequenceNumber in interface SubscribeToShardEvent.BuildercontinuationSequenceNumber - Use this as SequenceNumber in the next call to SubscribeToShard, with
StartingPosition set to AT_SEQUENCE_NUMBER or
AFTER_SEQUENCE_NUMBER. Use ContinuationSequenceNumber for checkpointing
because it captures your shard progress even when no data is written to the shard.public final void setContinuationSequenceNumber(String continuationSequenceNumber)
public final Long getMillisBehindLatest()
public final SubscribeToShardEvent.Builder millisBehindLatest(Long millisBehindLatest)
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.
millisBehindLatest in interface SubscribeToShardEvent.BuildermillisBehindLatest - 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.public final void setMillisBehindLatest(Long millisBehindLatest)
public final Collection<ChildShard.Builder> getChildShards()
public final SubscribeToShardEvent.Builder childShards(Collection<ChildShard> childShards)
SubscribeToShardEvent.BuilderchildShards in interface SubscribeToShardEvent.BuilderchildShards - The new value for the ChildShards property for this object.@SafeVarargs public final SubscribeToShardEvent.Builder childShards(ChildShard... childShards)
SubscribeToShardEvent.BuilderchildShards in interface SubscribeToShardEvent.BuilderchildShards - The new value for the ChildShards property for this object.@SafeVarargs public final SubscribeToShardEvent.Builder childShards(Consumer<ChildShard.Builder>... childShards)
SubscribeToShardEvent.BuilderList.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 #childShards(List) .childShards in interface SubscribeToShardEvent.BuilderchildShards - a consumer that will call methods on List.Builder #childShards(List) public final void setChildShards(Collection<software.amazon.awssdk.services.kinesis.model.ChildShard.BuilderImpl> childShards)
public SubscribeToShardEvent build()
build in interface Buildablebuild in interface SdkBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>Copyright © 2021. All rights reserved.