Class DeadLetterQueue.Builder
java.lang.Object
software.amazon.awscdk.services.sqs.DeadLetterQueue.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeadLetterQueue>
- Enclosing interface:
DeadLetterQueue
@Stability(Stable)
public static final class DeadLetterQueue.Builder
extends Object
implements software.amazon.jsii.Builder<DeadLetterQueue>
A builder for
DeadLetterQueue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxReceiveCount
(Number maxReceiveCount) Sets the value ofDeadLetterQueue.getMaxReceiveCount()
Sets the value ofDeadLetterQueue.getQueue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxReceiveCount
Sets the value ofDeadLetterQueue.getMaxReceiveCount()
- Parameters:
maxReceiveCount
- The number of times a message can be unsuccesfully dequeued before being moved to the dead-letter queue. This parameter is required.- Returns:
this
-
queue
Sets the value ofDeadLetterQueue.getQueue()
- Parameters:
queue
- The dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DeadLetterQueue>
- Returns:
- a new instance of
DeadLetterQueue
- Throws:
NullPointerException
- if any required attribute was not provided
-