Interface QueueStreamConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<QueueStreamConfiguration.Builder,,QueueStreamConfiguration> SdkBuilder<QueueStreamConfiguration.Builder,,QueueStreamConfiguration> SdkPojo
- Enclosing class:
QueueStreamConfiguration
@Mutable
@NotThreadSafe
public static interface QueueStreamConfiguration.Builder
extends SdkPojo, CopyableBuilder<QueueStreamConfiguration.Builder,QueueStreamConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault QueueStreamConfiguration.BuilderstartingPosition(Consumer<QueueStartingPosition.Builder> startingPosition) The position in the stream from which the queue begins delivering records.startingPosition(QueueStartingPosition startingPosition) The position in the stream from which the queue begins delivering records.The ARN of the data stream.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
streamARN
The ARN of the data stream.
- Parameters:
streamARN- The ARN of the data stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startingPosition
The position in the stream from which the queue begins delivering records. The default is
LATEST.- Parameters:
startingPosition- The position in the stream from which the queue begins delivering records. The default isLATEST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startingPosition
default QueueStreamConfiguration.Builder startingPosition(Consumer<QueueStartingPosition.Builder> startingPosition) The position in the stream from which the queue begins delivering records. The default is
This is a convenience method that creates an instance of theLATEST.QueueStartingPosition.Builderavoiding the need to create one manually viaQueueStartingPosition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostartingPosition(QueueStartingPosition).- Parameters:
startingPosition- a consumer that will call methods onQueueStartingPosition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-