Class PipeSourceKinesisStreamParameters
- java.lang.Object
-
- software.amazon.awssdk.services.pipes.model.PipeSourceKinesisStreamParameters
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PipeSourceKinesisStreamParameters.Builder,PipeSourceKinesisStreamParameters>
@Generated("software.amazon.awssdk:codegen") public final class PipeSourceKinesisStreamParameters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PipeSourceKinesisStreamParameters.Builder,PipeSourceKinesisStreamParameters>
The parameters for using a Kinesis stream as a source.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePipeSourceKinesisStreamParameters.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerbatchSize()The maximum number of records to include in each batch.static PipeSourceKinesisStreamParameters.Builderbuilder()DeadLetterConfigdeadLetterConfig()Define the target queue to send dead-letter queue events to.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaximumBatchingWindowInSeconds()The maximum length of a time to wait for events.IntegermaximumRecordAgeInSeconds()(Streams only) Discard records older than the specified age.IntegermaximumRetryAttempts()(Streams only) Discard records after the specified number of retries.OnPartialBatchItemFailureStreamsonPartialBatchItemFailure()(Streams only) Define how to handle item process failures.StringonPartialBatchItemFailureAsString()(Streams only) Define how to handle item process failures.IntegerparallelizationFactor()(Streams only) The number of batches to process concurrently from each shard.List<SdkField<?>>sdkFields()static Class<? extends PipeSourceKinesisStreamParameters.Builder>serializableBuilderClass()KinesisStreamStartPositionstartingPosition()(Streams only) The position in a stream from which to start reading.StringstartingPositionAsString()(Streams only) The position in a stream from which to start reading.InstantstartingPositionTimestamp()WithStartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.PipeSourceKinesisStreamParameters.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
batchSize
public final Integer batchSize()
The maximum number of records to include in each batch.
- Returns:
- The maximum number of records to include in each batch.
-
deadLetterConfig
public final DeadLetterConfig deadLetterConfig()
Define the target queue to send dead-letter queue events to.
- Returns:
- Define the target queue to send dead-letter queue events to.
-
maximumBatchingWindowInSeconds
public final Integer maximumBatchingWindowInSeconds()
The maximum length of a time to wait for events.
- Returns:
- The maximum length of a time to wait for events.
-
maximumRecordAgeInSeconds
public final 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.
- Returns:
- (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.
-
maximumRetryAttempts
public final 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.
- Returns:
- (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.
-
onPartialBatchItemFailure
public final OnPartialBatchItemFailureStreams onPartialBatchItemFailure()
(Streams only) Define how to handle item process failures.
AUTOMATIC_BISECThalves each batch and retry each half until all the records are processed or there is one failed message left in the batch.If the service returns an enum value that is not available in the current SDK version,
onPartialBatchItemFailurewill returnOnPartialBatchItemFailureStreams.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromonPartialBatchItemFailureAsString().- Returns:
- (Streams only) Define how to handle item process failures.
AUTOMATIC_BISECThalves each batch and retry each half until all the records are processed or there is one failed message left in the batch. - See Also:
OnPartialBatchItemFailureStreams
-
onPartialBatchItemFailureAsString
public final String onPartialBatchItemFailureAsString()
(Streams only) Define how to handle item process failures.
AUTOMATIC_BISECThalves each batch and retry each half until all the records are processed or there is one failed message left in the batch.If the service returns an enum value that is not available in the current SDK version,
onPartialBatchItemFailurewill returnOnPartialBatchItemFailureStreams.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromonPartialBatchItemFailureAsString().- Returns:
- (Streams only) Define how to handle item process failures.
AUTOMATIC_BISECThalves each batch and retry each half until all the records are processed or there is one failed message left in the batch. - See Also:
OnPartialBatchItemFailureStreams
-
parallelizationFactor
public final Integer parallelizationFactor()
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
- Returns:
- (Streams only) The number of batches to process concurrently from each shard. The default value is 1.
-
startingPosition
public final KinesisStreamStartPosition startingPosition()
(Streams only) The position in a stream from which to start reading.
If the service returns an enum value that is not available in the current SDK version,
startingPositionwill returnKinesisStreamStartPosition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstartingPositionAsString().- Returns:
- (Streams only) The position in a stream from which to start reading.
- See Also:
KinesisStreamStartPosition
-
startingPositionAsString
public final String startingPositionAsString()
(Streams only) The position in a stream from which to start reading.
If the service returns an enum value that is not available in the current SDK version,
startingPositionwill returnKinesisStreamStartPosition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstartingPositionAsString().- Returns:
- (Streams only) The position in a stream from which to start reading.
- See Also:
KinesisStreamStartPosition
-
startingPositionTimestamp
public final Instant startingPositionTimestamp()
With
StartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.- Returns:
- With
StartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.
-
toBuilder
public PipeSourceKinesisStreamParameters.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PipeSourceKinesisStreamParameters.Builder,PipeSourceKinesisStreamParameters>
-
builder
public static PipeSourceKinesisStreamParameters.Builder builder()
-
serializableBuilderClass
public static Class<? extends PipeSourceKinesisStreamParameters.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-