@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PipeSourceKinesisStreamParameters extends Object implements Serializable, Cloneable, StructuredPojo
The parameters for using a Kinesis stream as a source.
| Constructor and Description |
|---|
PipeSourceKinesisStreamParameters() |
| Modifier and Type | Method and Description |
|---|---|
PipeSourceKinesisStreamParameters |
clone() |
boolean |
equals(Object obj) |
Integer |
getBatchSize()
The maximum number of records to include in each batch.
|
DeadLetterConfig |
getDeadLetterConfig()
Define the target queue to send dead-letter queue events to.
|
Integer |
getMaximumBatchingWindowInSeconds()
The maximum length of a time to wait for events.
|
Integer |
getMaximumRecordAgeInSeconds()
(Streams only) Discard records older than the specified age.
|
Integer |
getMaximumRetryAttempts()
(Streams only) Discard records after the specified number of retries.
|
String |
getOnPartialBatchItemFailure()
(Streams only) Define how to handle item process failures.
|
Integer |
getParallelizationFactor()
(Streams only) The number of batches to process concurrently from each shard.
|
String |
getStartingPosition()
(Streams only) The position in a stream from which to start reading.
|
Date |
getStartingPositionTimestamp()
With
StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in
Unix time seconds. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
|
void |
setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
Define the target queue to send dead-letter queue events to.
|
void |
setMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
|
void |
setMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age.
|
void |
setMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries.
|
void |
setOnPartialBatchItemFailure(String onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures.
|
void |
setParallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard.
|
void |
setStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
|
void |
setStartingPositionTimestamp(Date startingPositionTimestamp)
With
StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in
Unix time seconds. |
String |
toString()
Returns a string representation of this object.
|
PipeSourceKinesisStreamParameters |
withBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
|
PipeSourceKinesisStreamParameters |
withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
Define the target queue to send dead-letter queue events to.
|
PipeSourceKinesisStreamParameters |
withMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
|
PipeSourceKinesisStreamParameters |
withMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age.
|
PipeSourceKinesisStreamParameters |
withMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries.
|
PipeSourceKinesisStreamParameters |
withOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures.
|
PipeSourceKinesisStreamParameters |
withOnPartialBatchItemFailure(String onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures.
|
PipeSourceKinesisStreamParameters |
withParallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard.
|
PipeSourceKinesisStreamParameters |
withStartingPosition(KinesisStreamStartPosition startingPosition)
(Streams only) The position in a stream from which to start reading.
|
PipeSourceKinesisStreamParameters |
withStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
|
PipeSourceKinesisStreamParameters |
withStartingPositionTimestamp(Date startingPositionTimestamp)
With
StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in
Unix time seconds. |
public void setBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
batchSize - The maximum number of records to include in each batch.public Integer getBatchSize()
The maximum number of records to include in each batch.
public PipeSourceKinesisStreamParameters withBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
batchSize - The maximum number of records to include in each batch.public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
Define the target queue to send dead-letter queue events to.
deadLetterConfig - Define the target queue to send dead-letter queue events to.public DeadLetterConfig getDeadLetterConfig()
Define the target queue to send dead-letter queue events to.
public PipeSourceKinesisStreamParameters withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
Define the target queue to send dead-letter queue events to.
deadLetterConfig - Define the target queue to send dead-letter queue events to.public void setOnPartialBatchItemFailure(String onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and
retry each half until all the records are processed or there is one failed message left in the batch.
onPartialBatchItemFailure - (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch
and retry each half until all the records are processed or there is one failed message left in the batch.OnPartialBatchItemFailureStreamspublic String getOnPartialBatchItemFailure()
(Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and
retry each half until all the records are processed or there is one failed message left in the batch.
AUTOMATIC_BISECT halves each
batch and retry each half until all the records are processed or there is one failed message left in the
batch.OnPartialBatchItemFailureStreamspublic PipeSourceKinesisStreamParameters withOnPartialBatchItemFailure(String onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and
retry each half until all the records are processed or there is one failed message left in the batch.
onPartialBatchItemFailure - (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch
and retry each half until all the records are processed or there is one failed message left in the batch.OnPartialBatchItemFailureStreamspublic PipeSourceKinesisStreamParameters withOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and
retry each half until all the records are processed or there is one failed message left in the batch.
onPartialBatchItemFailure - (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch
and retry each half until all the records are processed or there is one failed message left in the batch.OnPartialBatchItemFailureStreamspublic void setMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
maximumBatchingWindowInSeconds - The maximum length of a time to wait for events.public Integer getMaximumBatchingWindowInSeconds()
The maximum length of a time to wait for events.
public PipeSourceKinesisStreamParameters withMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
maximumBatchingWindowInSeconds - The maximum length of a time to wait for events.public void setMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
maximumRecordAgeInSeconds - (Streams only) Discard records older than the specified age. The default value is -1, which sets the
maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.public Integer getMaximumRecordAgeInSeconds()
(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
public PipeSourceKinesisStreamParameters withMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
maximumRecordAgeInSeconds - (Streams only) Discard records older than the specified age. The default value is -1, which sets the
maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.public void setMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
maximumRetryAttempts - (Streams only) Discard records after the specified number of retries. The default value is -1, which sets
the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries
failed records until the record expires in the event source.public Integer getMaximumRetryAttempts()
(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
public PipeSourceKinesisStreamParameters withMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
maximumRetryAttempts - (Streams only) Discard records after the specified number of retries. The default value is -1, which sets
the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries
failed records until the record expires in the event source.public void setParallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
parallelizationFactor - (Streams only) The number of batches to process concurrently from each shard. The default value is 1.public Integer getParallelizationFactor()
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
public PipeSourceKinesisStreamParameters withParallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
parallelizationFactor - (Streams only) The number of batches to process concurrently from each shard. The default value is 1.public void setStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
startingPosition - (Streams only) The position in a stream from which to start reading.KinesisStreamStartPositionpublic String getStartingPosition()
(Streams only) The position in a stream from which to start reading.
KinesisStreamStartPositionpublic PipeSourceKinesisStreamParameters withStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
startingPosition - (Streams only) The position in a stream from which to start reading.KinesisStreamStartPositionpublic PipeSourceKinesisStreamParameters withStartingPosition(KinesisStreamStartPosition startingPosition)
(Streams only) The position in a stream from which to start reading.
startingPosition - (Streams only) The position in a stream from which to start reading.KinesisStreamStartPositionpublic void setStartingPositionTimestamp(Date startingPositionTimestamp)
With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in
Unix time seconds.
startingPositionTimestamp - With StartingPosition set to AT_TIMESTAMP, the time from which to start reading,
in Unix time seconds.public Date getStartingPositionTimestamp()
With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in
Unix time seconds.
StartingPosition set to AT_TIMESTAMP, the time from which to start
reading, in Unix time seconds.public PipeSourceKinesisStreamParameters withStartingPositionTimestamp(Date startingPositionTimestamp)
With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in
Unix time seconds.
startingPositionTimestamp - With StartingPosition set to AT_TIMESTAMP, the time from which to start reading,
in Unix time seconds.public String toString()
toString in class ObjectObject.toString()public PipeSourceKinesisStreamParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.