Class SubscribeToShardEvent.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.kinesis.model.SubscribeToShardEvent.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo
,SubscribeToShardEvent.Builder
,Buildable
,CopyableBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
,SdkBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
- Enclosing class:
- SubscribeToShardEvent
protected static class SubscribeToShardEvent.BuilderImpl extends Object implements SubscribeToShardEvent.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuilderImpl()
protected
BuilderImpl(SubscribeToShardEvent model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscribeToShardEvent
build()
SubscribeToShardEvent.Builder
childShards(Collection<ChildShard> childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.Builder
childShards(Consumer<ChildShard.Builder>... childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.Builder
childShards(ChildShard... childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.Builder
continuationSequenceNumber(String continuationSequenceNumber)
Use this asSequenceNumber
in the next call to SubscribeToShard, withStartingPosition
set toAT_SEQUENCE_NUMBER
orAFTER_SEQUENCE_NUMBER
.List<ChildShard.Builder>
getChildShards()
String
getContinuationSequenceNumber()
Long
getMillisBehindLatest()
List<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 method that creates an instance of theRecord.Builder
avoiding the need to create one manually viaRecord.builder()
.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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(SubscribeToShardEvent model)
-
-
Method Detail
-
getRecords
public final List<Record.Builder> getRecords()
-
setRecords
public final void setRecords(Collection<software.amazon.awssdk.services.kinesis.model.Record.BuilderImpl> records)
-
records
public final SubscribeToShardEvent.Builder records(Collection<Record> records)
Description copied from interface:SubscribeToShardEvent.Builder
- Specified by:
records
in interfaceSubscribeToShardEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
@SafeVarargs public final SubscribeToShardEvent.Builder records(Record... records)
Description copied from interface:SubscribeToShardEvent.Builder
- Specified by:
records
in 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.Builder
This is a convenience method that creates an instance of theRecord.Builder
avoiding the need to create one manually viaRecord.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#records(List
.) - Specified by:
records
in 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:
#records(java.util.Collection
)
-
getContinuationSequenceNumber
public final String getContinuationSequenceNumber()
-
setContinuationSequenceNumber
public final void setContinuationSequenceNumber(String continuationSequenceNumber)
-
continuationSequenceNumber
public final SubscribeToShardEvent.Builder continuationSequenceNumber(String continuationSequenceNumber)
Description copied from interface:SubscribeToShardEvent.Builder
Use this as
SequenceNumber
in the next call to SubscribeToShard, withStartingPosition
set toAT_SEQUENCE_NUMBER
orAFTER_SEQUENCE_NUMBER
. UseContinuationSequenceNumber
for checkpointing because it captures your shard progress even when no data is written to the shard.- Specified by:
continuationSequenceNumber
in interfaceSubscribeToShardEvent.Builder
- Parameters:
continuationSequenceNumber
- Use this asSequenceNumber
in the next call to SubscribeToShard, withStartingPosition
set toAT_SEQUENCE_NUMBER
orAFTER_SEQUENCE_NUMBER
. UseContinuationSequenceNumber
for 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
public final Long getMillisBehindLatest()
-
setMillisBehindLatest
public final void setMillisBehindLatest(Long millisBehindLatest)
-
millisBehindLatest
public final SubscribeToShardEvent.Builder millisBehindLatest(Long millisBehindLatest)
Description copied from interface:SubscribeToShardEvent.Builder
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.
- Specified by:
millisBehindLatest
in 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
public final List<ChildShard.Builder> getChildShards()
-
setChildShards
public final void setChildShards(Collection<software.amazon.awssdk.services.kinesis.model.ChildShard.BuilderImpl> childShards)
-
childShards
public final SubscribeToShardEvent.Builder childShards(Collection<ChildShard> childShards)
Description copied from interface:SubscribeToShardEvent.Builder
The list of the child shards of the current shard, returned only at the end of the current shard.
- Specified by:
childShards
in 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(ChildShard... childShards)
Description copied from interface:SubscribeToShardEvent.Builder
The list of the child shards of the current shard, returned only at the end of the current shard.
- Specified by:
childShards
in 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.Builder
The 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.Builder
avoiding the need to create one manually viaChildShard.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#childShards(List
.) - Specified by:
childShards
in 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:
#childShards(java.util.Collection
)
-
build
public SubscribeToShardEvent build()
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
-
-