Class QueueAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.sqs.QueueAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<QueueAttributes>
- Enclosing interface:
QueueAttributes
@Stability(Stable)
public static final class QueueAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<QueueAttributes>
A builder for
QueueAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofQueueAttributes.getFifo()Sets the value ofQueueAttributes.getKeyArn()Sets the value ofQueueAttributes.getQueueArn()Sets the value ofQueueAttributes.getQueueName()Sets the value ofQueueAttributes.getQueueUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queueArn
Sets the value ofQueueAttributes.getQueueArn()- Parameters:
queueArn- The ARN of the queue. This parameter is required.- Returns:
this
-
fifo
Sets the value ofQueueAttributes.getFifo()- Parameters:
fifo- Whether this queue is an Amazon SQS FIFO queue. If false, this is a standard queue. In case of a FIFO queue which is imported from a token, this value has to be explicitly set to true.- Returns:
this
-
keyArn
Sets the value ofQueueAttributes.getKeyArn()- Parameters:
keyArn- KMS encryption key, if this queue is server-side encrypted by a KMS key.- Returns:
this
-
queueName
Sets the value ofQueueAttributes.getQueueName()- Parameters:
queueName- The name of the queue.- Returns:
this
-
queueUrl
Sets the value ofQueueAttributes.getQueueUrl()- Parameters:
queueUrl- The URL of the queue.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<QueueAttributes>- Returns:
- a new instance of
QueueAttributes - Throws:
NullPointerException- if any required attribute was not provided
-