ArmServiceBusModelFactory.ServiceBusSubscriptionData Method

Definition

Initializes a new instance of ServiceBusSubscriptionData.

public static Azure.ResourceManager.ServiceBus.ServiceBusSubscriptionData ServiceBusSubscriptionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, long? messageCount = default, DateTimeOffset? createdOn = default, DateTimeOffset? accessedOn = default, DateTimeOffset? updatedOn = default, Azure.ResourceManager.ServiceBus.Models.MessageCountDetails countDetails = default, TimeSpan? lockDuration = default, bool? requiresSession = default, TimeSpan? defaultMessageTimeToLive = default, bool? deadLetteringOnFilterEvaluationExceptions = default, bool? deadLetteringOnMessageExpiration = default, TimeSpan? duplicateDetectionHistoryTimeWindow = default, int? maxDeliveryCount = default, Azure.ResourceManager.ServiceBus.Models.ServiceBusMessagingEntityStatus? status = default, bool? enableBatchedOperations = default, TimeSpan? autoDeleteOnIdle = default, string forwardTo = default, string forwardDeadLetteredMessagesTo = default, bool? isClientAffine = default, Azure.ResourceManager.ServiceBus.Models.ServiceBusClientAffineProperties clientAffineProperties = default, Azure.Core.AzureLocation? location = default);
static member ServiceBusSubscriptionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<int64> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.ServiceBus.Models.MessageCountDetails * Nullable<TimeSpan> * Nullable<bool> * Nullable<TimeSpan> * Nullable<bool> * Nullable<bool> * Nullable<TimeSpan> * Nullable<int> * Nullable<Azure.ResourceManager.ServiceBus.Models.ServiceBusMessagingEntityStatus> * Nullable<bool> * Nullable<TimeSpan> * string * string * Nullable<bool> * Azure.ResourceManager.ServiceBus.Models.ServiceBusClientAffineProperties * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.ServiceBus.ServiceBusSubscriptionData
Public Shared Function ServiceBusSubscriptionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional messageCount As Nullable(Of Long) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional accessedOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional countDetails As MessageCountDetails = Nothing, Optional lockDuration As Nullable(Of TimeSpan) = Nothing, Optional requiresSession As Nullable(Of Boolean) = Nothing, Optional defaultMessageTimeToLive As Nullable(Of TimeSpan) = Nothing, Optional deadLetteringOnFilterEvaluationExceptions As Nullable(Of Boolean) = 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 forwardTo As String = Nothing, Optional forwardDeadLetteredMessagesTo As String = Nothing, Optional isClientAffine As Nullable(Of Boolean) = Nothing, Optional clientAffineProperties As ServiceBusClientAffineProperties = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As ServiceBusSubscriptionData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

messageCount
Nullable<Int64>

Number of messages.

createdOn
Nullable<DateTimeOffset>

Exact time the message was created.

accessedOn
Nullable<DateTimeOffset>

Last time there was a receive request to this subscription.

updatedOn
Nullable<DateTimeOffset>

The exact time the message was updated.

countDetails
MessageCountDetails

Message count details.

lockDuration
Nullable<TimeSpan>

ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.

requiresSession
Nullable<Boolean>

Value indicating if a subscription supports the concept of sessions.

defaultMessageTimeToLive
Nullable<TimeSpan>

ISO 8061 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.

deadLetteringOnFilterEvaluationExceptions
Nullable<Boolean>

Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.

deadLetteringOnMessageExpiration
Nullable<Boolean>

Value that indicates whether a subscription 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>

Number of maximum deliveries.

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 topic is automatically deleted. The minimum duration is 5 minutes.

forwardTo
String

Queue/Topic name to forward the messages.

forwardDeadLetteredMessagesTo
String

Queue/Topic name to forward the Dead Letter message.

isClientAffine
Nullable<Boolean>

Value that indicates whether the subscription has an affinity to the client id.

clientAffineProperties
ServiceBusClientAffineProperties

Properties specific to client affine subscriptions.

location
Nullable<AzureLocation>

The geo-location where the resource lives.

Returns

A new ServiceBusSubscriptionData instance for mocking.

Applies to