ArmServiceBusModelFactory.ServiceBusQueueData Method

Definition

Initializes a new instance of ServiceBusQueueData.

public static Azure.ResourceManager.ServiceBus.ServiceBusQueueData ServiceBusQueueData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.ServiceBus.Models.MessageCountDetails countDetails = default, DateTimeOffset? createdOn = default, DateTimeOffset? updatedOn = default, DateTimeOffset? accessedOn = default, long? sizeInBytes = default, long? messageCount = default, TimeSpan? lockDuration = default, int? maxSizeInMegabytes = default, long? maxMessageSizeInKilobytes = default, bool? requiresDuplicateDetection = default, bool? requiresSession = default, TimeSpan? defaultMessageTimeToLive = default, bool? deadLetteringOnMessageExpiration = default, TimeSpan? duplicateDetectionHistoryTimeWindow = default, int? maxDeliveryCount = default, Azure.ResourceManager.ServiceBus.Models.ServiceBusMessagingEntityStatus? status = default, bool? enableBatchedOperations = default, TimeSpan? autoDeleteOnIdle = default, bool? enablePartitioning = default, bool? enableExpress = default, string forwardTo = default, string forwardDeadLetteredMessagesTo = default, Azure.Core.AzureLocation? location = default);
static member ServiceBusQueueData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.ResourceManager.ServiceBus.Models.MessageCountDetails * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int64> * Nullable<int64> * Nullable<TimeSpan> * Nullable<int> * Nullable<int64> * Nullable<bool> * Nullable<bool> * Nullable<TimeSpan> * Nullable<bool> * Nullable<TimeSpan> * Nullable<int> * Nullable<Azure.ResourceManager.ServiceBus.Models.ServiceBusMessagingEntityStatus> * Nullable<bool> * Nullable<TimeSpan> * Nullable<bool> * Nullable<bool> * string * string * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.ServiceBus.ServiceBusQueueData
Public Shared Function ServiceBusQueueData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional countDetails As MessageCountDetails = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional accessedOn As Nullable(Of DateTimeOffset) = Nothing, Optional sizeInBytes As Nullable(Of Long) = Nothing, Optional messageCount As Nullable(Of Long) = Nothing, Optional lockDuration As Nullable(Of TimeSpan) = Nothing, Optional maxSizeInMegabytes As Nullable(Of Integer) = Nothing, Optional maxMessageSizeInKilobytes As Nullable(Of Long) = Nothing, Optional requiresDuplicateDetection As Nullable(Of Boolean) = Nothing, Optional requiresSession As Nullable(Of Boolean) = Nothing, Optional defaultMessageTimeToLive As Nullable(Of TimeSpan) = Nothing, Optional deadLetteringOnMessageExpiration As Nullable(Of Boolean) = Nothing, Optional duplicateDetectionHistoryTimeWindow As Nullable(Of TimeSpan) = Nothing, Optional maxDeliveryCount As Nullable(Of Integer) = Nothing, Optional status As Nullable(Of ServiceBusMessagingEntityStatus) = Nothing, Optional enableBatchedOperations As Nullable(Of Boolean) = Nothing, Optional autoDeleteOnIdle As Nullable(Of TimeSpan) = Nothing, Optional enablePartitioning As Nullable(Of Boolean) = Nothing, Optional enableExpress As Nullable(Of Boolean) = Nothing, Optional forwardTo As String = Nothing, Optional forwardDeadLetteredMessagesTo As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As ServiceBusQueueData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

countDetails
MessageCountDetails

Message Count Details.

createdOn
Nullable<DateTimeOffset>

The exact time the message was created.

updatedOn
Nullable<DateTimeOffset>

The exact time the message was updated.

accessedOn
Nullable<DateTimeOffset>

Last time a message was sent, or the last time there was a receive request to this queue.

sizeInBytes
Nullable<Int64>

The size of the queue, in bytes.

messageCount
Nullable<Int64>

The number of messages in the queue.

lockDuration
Nullable<TimeSpan>

ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.

maxSizeInMegabytes
Nullable<Int32>

The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.

maxMessageSizeInKilobytes
Nullable<Int64>

Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.

requiresDuplicateDetection
Nullable<Boolean>

A value indicating if this queue requires duplicate detection.

requiresSession
Nullable<Boolean>

A value that indicates whether the queue supports the concept of sessions.

defaultMessageTimeToLive
Nullable<TimeSpan>

ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.

deadLetteringOnMessageExpiration
Nullable<Boolean>

A value that indicates whether this queue has dead letter support when a message expires.

duplicateDetectionHistoryTimeWindow
Nullable<TimeSpan>

ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.

maxDeliveryCount
Nullable<Int32>

The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.

status
Nullable<ServiceBusMessagingEntityStatus>

Enumerates the possible values for the status of a messaging entity.

enableBatchedOperations
Nullable<Boolean>

Value that indicates whether server-side batched operations are enabled.

autoDeleteOnIdle
Nullable<TimeSpan>

ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.

enablePartitioning
Nullable<Boolean>

A value that indicates whether the queue is to be partitioned across multiple message brokers.

enableExpress
Nullable<Boolean>

A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.

forwardTo
String

Queue/Topic name to forward the messages.

forwardDeadLetteredMessagesTo
String

Queue/Topic name to forward the Dead Letter message.

location
Nullable<AzureLocation>

The geo-location where the resource lives.

Returns

A new ServiceBusQueueData instance for mocking.

Applies to