@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PipeSourceDynamoDBStreamParameters extends Object implements Serializable, Cloneable, StructuredPojo
The parameters for using a DynamoDB stream as a source.
Constructor and Description |
---|
PipeSourceDynamoDBStreamParameters() |
Modifier and Type | Method and Description |
---|---|
PipeSourceDynamoDBStreamParameters |
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.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
PipeSourceDynamoDBStreamParameters |
withBatchSize(Integer batchSize)
The maximum number of records to include in each batch.
|
PipeSourceDynamoDBStreamParameters |
withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
Define the target queue to send dead-letter queue events to.
|
PipeSourceDynamoDBStreamParameters |
withMaximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
The maximum length of a time to wait for events.
|
PipeSourceDynamoDBStreamParameters |
withMaximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age.
|
PipeSourceDynamoDBStreamParameters |
withMaximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries.
|
PipeSourceDynamoDBStreamParameters |
withOnPartialBatchItemFailure(OnPartialBatchItemFailureStreams onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures.
|
PipeSourceDynamoDBStreamParameters |
withOnPartialBatchItemFailure(String onPartialBatchItemFailure)
(Streams only) Define how to handle item process failures.
|
PipeSourceDynamoDBStreamParameters |
withParallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard.
|
PipeSourceDynamoDBStreamParameters |
withStartingPosition(DynamoDBStreamStartPosition startingPosition)
(Streams only) The position in a stream from which to start reading.
|
PipeSourceDynamoDBStreamParameters |
withStartingPosition(String startingPosition)
(Streams only) The position in a stream from which to start reading.
|
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 PipeSourceDynamoDBStreamParameters 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 PipeSourceDynamoDBStreamParameters 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.OnPartialBatchItemFailureStreams
public 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.OnPartialBatchItemFailureStreams
public PipeSourceDynamoDBStreamParameters 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.OnPartialBatchItemFailureStreams
public PipeSourceDynamoDBStreamParameters 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.OnPartialBatchItemFailureStreams
public 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 PipeSourceDynamoDBStreamParameters 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 PipeSourceDynamoDBStreamParameters 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 PipeSourceDynamoDBStreamParameters 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 PipeSourceDynamoDBStreamParameters 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.DynamoDBStreamStartPosition
public String getStartingPosition()
(Streams only) The position in a stream from which to start reading.
DynamoDBStreamStartPosition
public PipeSourceDynamoDBStreamParameters 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.DynamoDBStreamStartPosition
public PipeSourceDynamoDBStreamParameters withStartingPosition(DynamoDBStreamStartPosition 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.DynamoDBStreamStartPosition
public String toString()
toString
in class Object
Object.toString()
public PipeSourceDynamoDBStreamParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.