Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.servicebus.inputs.QueueState Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.servicebus.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class QueueState extends com.pulumi.resources.ResourceArgs {
public static final QueueState Empty = new QueueState();
/**
* The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
*
*/
@Import(name="autoDeleteOnIdle")
private @Nullable Output autoDeleteOnIdle;
/**
* @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
*
*/
public Optional> autoDeleteOnIdle() {
return Optional.ofNullable(this.autoDeleteOnIdle);
}
/**
* Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`.
*
*/
@Import(name="batchedOperationsEnabled")
private @Nullable Output batchedOperationsEnabled;
/**
* @return Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`.
*
*/
public Optional> batchedOperationsEnabled() {
return Optional.ofNullable(this.batchedOperationsEnabled);
}
/**
* Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`.
*
*/
@Import(name="deadLetteringOnMessageExpiration")
private @Nullable Output deadLetteringOnMessageExpiration;
/**
* @return Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`.
*
*/
public Optional> deadLetteringOnMessageExpiration() {
return Optional.ofNullable(this.deadLetteringOnMessageExpiration);
}
/**
* The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
*
*/
@Import(name="defaultMessageTtl")
private @Nullable Output defaultMessageTtl;
/**
* @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
*
*/
public Optional> defaultMessageTtl() {
return Optional.ofNullable(this.defaultMessageTtl);
}
/**
* The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes).
*
*/
@Import(name="duplicateDetectionHistoryTimeWindow")
private @Nullable Output duplicateDetectionHistoryTimeWindow;
/**
* @return The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes).
*
*/
public Optional> duplicateDetectionHistoryTimeWindow() {
return Optional.ofNullable(this.duplicateDetectionHistoryTimeWindow);
}
/**
* Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`.
*
* > **NOTE:** Service Bus Premium namespaces do not support Express Entities, so `express_enabled` MUST be set to `false`.
*
*/
@Import(name="expressEnabled")
private @Nullable Output expressEnabled;
/**
* @return Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`.
*
* > **NOTE:** Service Bus Premium namespaces do not support Express Entities, so `express_enabled` MUST be set to `false`.
*
*/
public Optional> expressEnabled() {
return Optional.ofNullable(this.expressEnabled);
}
/**
* The name of a Queue or Topic to automatically forward dead lettered messages to.
*
*/
@Import(name="forwardDeadLetteredMessagesTo")
private @Nullable Output forwardDeadLetteredMessagesTo;
/**
* @return The name of a Queue or Topic to automatically forward dead lettered messages to.
*
*/
public Optional> forwardDeadLetteredMessagesTo() {
return Optional.ofNullable(this.forwardDeadLetteredMessagesTo);
}
/**
* The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information.
*
*/
@Import(name="forwardTo")
private @Nullable Output forwardTo;
/**
* @return The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information.
*
*/
public Optional> forwardTo() {
return Optional.ofNullable(this.forwardTo);
}
/**
* The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute).
*
*/
@Import(name="lockDuration")
private @Nullable Output lockDuration;
/**
* @return The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute).
*
*/
public Optional> lockDuration() {
return Optional.ofNullable(this.lockDuration);
}
/**
* Integer value which controls when a message is automatically dead lettered. Defaults to `10`.
*
*/
@Import(name="maxDeliveryCount")
private @Nullable Output maxDeliveryCount;
/**
* @return Integer value which controls when a message is automatically dead lettered. Defaults to `10`.
*
*/
public Optional> maxDeliveryCount() {
return Optional.ofNullable(this.maxDeliveryCount);
}
/**
* Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).
*
*/
@Import(name="maxMessageSizeInKilobytes")
private @Nullable Output maxMessageSizeInKilobytes;
/**
* @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).
*
*/
public Optional> maxMessageSizeInKilobytes() {
return Optional.ofNullable(this.maxMessageSizeInKilobytes);
}
/**
* Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).
*
*/
@Import(name="maxSizeInMegabytes")
private @Nullable Output maxSizeInMegabytes;
/**
* @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).
*
*/
public Optional> maxSizeInMegabytes() {
return Optional.ofNullable(this.maxSizeInMegabytes);
}
/**
* Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
*
*/
@Import(name="namespaceId")
private @Nullable Output namespaceId;
/**
* @return The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
*
*/
public Optional> namespaceId() {
return Optional.ofNullable(this.namespaceId);
}
@Import(name="namespaceName")
private @Nullable Output namespaceName;
public Optional> namespaceName() {
return Optional.ofNullable(this.namespaceName);
}
/**
* Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard.
*
* > **NOTE:** Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has `premium_messaging_partitions` sets to `1`, the namespace is not partitioned.
*
*/
@Import(name="partitioningEnabled")
private @Nullable Output partitioningEnabled;
/**
* @return Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard.
*
* > **NOTE:** Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has `premium_messaging_partitions` sets to `1`, the namespace is not partitioned.
*
*/
public Optional> partitioningEnabled() {
return Optional.ofNullable(this.partitioningEnabled);
}
/**
* Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to `false`.
*
*/
@Import(name="requiresDuplicateDetection")
private @Nullable Output requiresDuplicateDetection;
/**
* @return Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to `false`.
*
*/
public Optional> requiresDuplicateDetection() {
return Optional.ofNullable(this.requiresDuplicateDetection);
}
/**
* Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to `false`.
*
*/
@Import(name="requiresSession")
private @Nullable Output requiresSession;
/**
* @return Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to `false`.
*
*/
public Optional> requiresSession() {
return Optional.ofNullable(this.requiresSession);
}
@Import(name="resourceGroupName")
private @Nullable Output resourceGroupName;
public Optional> resourceGroupName() {
return Optional.ofNullable(this.resourceGroupName);
}
/**
* The status of the Queue. Possible values are `Active`, `Creating`, `Deleting`, `Disabled`, `ReceiveDisabled`, `Renaming`, `SendDisabled`, `Unknown`. Note that `Restoring` is not accepted. Defaults to `Active`.
*
*/
@Import(name="status")
private @Nullable Output status;
/**
* @return The status of the Queue. Possible values are `Active`, `Creating`, `Deleting`, `Disabled`, `ReceiveDisabled`, `Renaming`, `SendDisabled`, `Unknown`. Note that `Restoring` is not accepted. Defaults to `Active`.
*
*/
public Optional> status() {
return Optional.ofNullable(this.status);
}
private QueueState() {}
private QueueState(QueueState $) {
this.autoDeleteOnIdle = $.autoDeleteOnIdle;
this.batchedOperationsEnabled = $.batchedOperationsEnabled;
this.deadLetteringOnMessageExpiration = $.deadLetteringOnMessageExpiration;
this.defaultMessageTtl = $.defaultMessageTtl;
this.duplicateDetectionHistoryTimeWindow = $.duplicateDetectionHistoryTimeWindow;
this.expressEnabled = $.expressEnabled;
this.forwardDeadLetteredMessagesTo = $.forwardDeadLetteredMessagesTo;
this.forwardTo = $.forwardTo;
this.lockDuration = $.lockDuration;
this.maxDeliveryCount = $.maxDeliveryCount;
this.maxMessageSizeInKilobytes = $.maxMessageSizeInKilobytes;
this.maxSizeInMegabytes = $.maxSizeInMegabytes;
this.name = $.name;
this.namespaceId = $.namespaceId;
this.namespaceName = $.namespaceName;
this.partitioningEnabled = $.partitioningEnabled;
this.requiresDuplicateDetection = $.requiresDuplicateDetection;
this.requiresSession = $.requiresSession;
this.resourceGroupName = $.resourceGroupName;
this.status = $.status;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(QueueState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private QueueState $;
public Builder() {
$ = new QueueState();
}
public Builder(QueueState defaults) {
$ = new QueueState(Objects.requireNonNull(defaults));
}
/**
* @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
*
* @return builder
*
*/
public Builder autoDeleteOnIdle(@Nullable Output autoDeleteOnIdle) {
$.autoDeleteOnIdle = autoDeleteOnIdle;
return this;
}
/**
* @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
*
* @return builder
*
*/
public Builder autoDeleteOnIdle(String autoDeleteOnIdle) {
return autoDeleteOnIdle(Output.of(autoDeleteOnIdle));
}
/**
* @param batchedOperationsEnabled Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`.
*
* @return builder
*
*/
public Builder batchedOperationsEnabled(@Nullable Output batchedOperationsEnabled) {
$.batchedOperationsEnabled = batchedOperationsEnabled;
return this;
}
/**
* @param batchedOperationsEnabled Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`.
*
* @return builder
*
*/
public Builder batchedOperationsEnabled(Boolean batchedOperationsEnabled) {
return batchedOperationsEnabled(Output.of(batchedOperationsEnabled));
}
/**
* @param deadLetteringOnMessageExpiration Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`.
*
* @return builder
*
*/
public Builder deadLetteringOnMessageExpiration(@Nullable Output deadLetteringOnMessageExpiration) {
$.deadLetteringOnMessageExpiration = deadLetteringOnMessageExpiration;
return this;
}
/**
* @param deadLetteringOnMessageExpiration Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`.
*
* @return builder
*
*/
public Builder deadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) {
return deadLetteringOnMessageExpiration(Output.of(deadLetteringOnMessageExpiration));
}
/**
* @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
*
* @return builder
*
*/
public Builder defaultMessageTtl(@Nullable Output defaultMessageTtl) {
$.defaultMessageTtl = defaultMessageTtl;
return this;
}
/**
* @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
*
* @return builder
*
*/
public Builder defaultMessageTtl(String defaultMessageTtl) {
return defaultMessageTtl(Output.of(defaultMessageTtl));
}
/**
* @param duplicateDetectionHistoryTimeWindow The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes).
*
* @return builder
*
*/
public Builder duplicateDetectionHistoryTimeWindow(@Nullable Output duplicateDetectionHistoryTimeWindow) {
$.duplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow;
return this;
}
/**
* @param duplicateDetectionHistoryTimeWindow The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes).
*
* @return builder
*
*/
public Builder duplicateDetectionHistoryTimeWindow(String duplicateDetectionHistoryTimeWindow) {
return duplicateDetectionHistoryTimeWindow(Output.of(duplicateDetectionHistoryTimeWindow));
}
/**
* @param expressEnabled Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`.
*
* > **NOTE:** Service Bus Premium namespaces do not support Express Entities, so `express_enabled` MUST be set to `false`.
*
* @return builder
*
*/
public Builder expressEnabled(@Nullable Output expressEnabled) {
$.expressEnabled = expressEnabled;
return this;
}
/**
* @param expressEnabled Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`.
*
* > **NOTE:** Service Bus Premium namespaces do not support Express Entities, so `express_enabled` MUST be set to `false`.
*
* @return builder
*
*/
public Builder expressEnabled(Boolean expressEnabled) {
return expressEnabled(Output.of(expressEnabled));
}
/**
* @param forwardDeadLetteredMessagesTo The name of a Queue or Topic to automatically forward dead lettered messages to.
*
* @return builder
*
*/
public Builder forwardDeadLetteredMessagesTo(@Nullable Output forwardDeadLetteredMessagesTo) {
$.forwardDeadLetteredMessagesTo = forwardDeadLetteredMessagesTo;
return this;
}
/**
* @param forwardDeadLetteredMessagesTo The name of a Queue or Topic to automatically forward dead lettered messages to.
*
* @return builder
*
*/
public Builder forwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo) {
return forwardDeadLetteredMessagesTo(Output.of(forwardDeadLetteredMessagesTo));
}
/**
* @param forwardTo The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information.
*
* @return builder
*
*/
public Builder forwardTo(@Nullable Output forwardTo) {
$.forwardTo = forwardTo;
return this;
}
/**
* @param forwardTo The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information.
*
* @return builder
*
*/
public Builder forwardTo(String forwardTo) {
return forwardTo(Output.of(forwardTo));
}
/**
* @param lockDuration The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute).
*
* @return builder
*
*/
public Builder lockDuration(@Nullable Output lockDuration) {
$.lockDuration = lockDuration;
return this;
}
/**
* @param lockDuration The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute).
*
* @return builder
*
*/
public Builder lockDuration(String lockDuration) {
return lockDuration(Output.of(lockDuration));
}
/**
* @param maxDeliveryCount Integer value which controls when a message is automatically dead lettered. Defaults to `10`.
*
* @return builder
*
*/
public Builder maxDeliveryCount(@Nullable Output maxDeliveryCount) {
$.maxDeliveryCount = maxDeliveryCount;
return this;
}
/**
* @param maxDeliveryCount Integer value which controls when a message is automatically dead lettered. Defaults to `10`.
*
* @return builder
*
*/
public Builder maxDeliveryCount(Integer maxDeliveryCount) {
return maxDeliveryCount(Output.of(maxDeliveryCount));
}
/**
* @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).
*
* @return builder
*
*/
public Builder maxMessageSizeInKilobytes(@Nullable Output maxMessageSizeInKilobytes) {
$.maxMessageSizeInKilobytes = maxMessageSizeInKilobytes;
return this;
}
/**
* @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).
*
* @return builder
*
*/
public Builder maxMessageSizeInKilobytes(Integer maxMessageSizeInKilobytes) {
return maxMessageSizeInKilobytes(Output.of(maxMessageSizeInKilobytes));
}
/**
* @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).
*
* @return builder
*
*/
public Builder maxSizeInMegabytes(@Nullable Output maxSizeInMegabytes) {
$.maxSizeInMegabytes = maxSizeInMegabytes;
return this;
}
/**
* @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).
*
* @return builder
*
*/
public Builder maxSizeInMegabytes(Integer maxSizeInMegabytes) {
return maxSizeInMegabytes(Output.of(maxSizeInMegabytes));
}
/**
* @param name Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param namespaceId The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder namespaceId(@Nullable Output namespaceId) {
$.namespaceId = namespaceId;
return this;
}
/**
* @param namespaceId The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder namespaceId(String namespaceId) {
return namespaceId(Output.of(namespaceId));
}
public Builder namespaceName(@Nullable Output namespaceName) {
$.namespaceName = namespaceName;
return this;
}
public Builder namespaceName(String namespaceName) {
return namespaceName(Output.of(namespaceName));
}
/**
* @param partitioningEnabled Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard.
*
* > **NOTE:** Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has `premium_messaging_partitions` sets to `1`, the namespace is not partitioned.
*
* @return builder
*
*/
public Builder partitioningEnabled(@Nullable Output partitioningEnabled) {
$.partitioningEnabled = partitioningEnabled;
return this;
}
/**
* @param partitioningEnabled Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard.
*
* > **NOTE:** Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has `premium_messaging_partitions` sets to `1`, the namespace is not partitioned.
*
* @return builder
*
*/
public Builder partitioningEnabled(Boolean partitioningEnabled) {
return partitioningEnabled(Output.of(partitioningEnabled));
}
/**
* @param requiresDuplicateDetection Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to `false`.
*
* @return builder
*
*/
public Builder requiresDuplicateDetection(@Nullable Output requiresDuplicateDetection) {
$.requiresDuplicateDetection = requiresDuplicateDetection;
return this;
}
/**
* @param requiresDuplicateDetection Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to `false`.
*
* @return builder
*
*/
public Builder requiresDuplicateDetection(Boolean requiresDuplicateDetection) {
return requiresDuplicateDetection(Output.of(requiresDuplicateDetection));
}
/**
* @param requiresSession Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to `false`.
*
* @return builder
*
*/
public Builder requiresSession(@Nullable Output requiresSession) {
$.requiresSession = requiresSession;
return this;
}
/**
* @param requiresSession Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to `false`.
*
* @return builder
*
*/
public Builder requiresSession(Boolean requiresSession) {
return requiresSession(Output.of(requiresSession));
}
public Builder resourceGroupName(@Nullable Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param status The status of the Queue. Possible values are `Active`, `Creating`, `Deleting`, `Disabled`, `ReceiveDisabled`, `Renaming`, `SendDisabled`, `Unknown`. Note that `Restoring` is not accepted. Defaults to `Active`.
*
* @return builder
*
*/
public Builder status(@Nullable Output status) {
$.status = status;
return this;
}
/**
* @param status The status of the Queue. Possible values are `Active`, `Creating`, `Deleting`, `Disabled`, `ReceiveDisabled`, `Renaming`, `SendDisabled`, `Unknown`. Note that `Restoring` is not accepted. Defaults to `Active`.
*
* @return builder
*
*/
public Builder status(String status) {
return status(Output.of(status));
}
public QueueState build() {
return $;
}
}
}