-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ServiceBusQueueEventSubscriptionDestination.cs
47 lines (41 loc) · 2.74 KB
/
ServiceBusQueueEventSubscriptionDestination.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.EventGrid.Models
{
/// <summary> Information about the service bus destination for an event subscription. </summary>
public partial class ServiceBusQueueEventSubscriptionDestination : EventSubscriptionDestination
{
/// <summary> Initializes a new instance of ServiceBusQueueEventSubscriptionDestination. </summary>
public ServiceBusQueueEventSubscriptionDestination()
{
DeliveryAttributeMappings = new ChangeTrackingList<DeliveryAttributeMapping>();
EndpointType = EndpointType.ServiceBusQueue;
}
/// <summary> Initializes a new instance of ServiceBusQueueEventSubscriptionDestination. </summary>
/// <param name="endpointType"> Type of the endpoint for the event subscription destination. </param>
/// <param name="resourceId"> The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription. </param>
/// <param name="deliveryAttributeMappings">
/// Delivery attribute details.
/// Please note <see cref="DeliveryAttributeMapping"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="DynamicDeliveryAttributeMapping"/> and <see cref="StaticDeliveryAttributeMapping"/>.
/// </param>
internal ServiceBusQueueEventSubscriptionDestination(EndpointType endpointType, ResourceIdentifier resourceId, IList<DeliveryAttributeMapping> deliveryAttributeMappings) : base(endpointType)
{
ResourceId = resourceId;
DeliveryAttributeMappings = deliveryAttributeMappings;
EndpointType = endpointType;
}
/// <summary> The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription. </summary>
public ResourceIdentifier ResourceId { get; set; }
/// <summary>
/// Delivery attribute details.
/// Please note <see cref="DeliveryAttributeMapping"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="DynamicDeliveryAttributeMapping"/> and <see cref="StaticDeliveryAttributeMapping"/>.
/// </summary>
public IList<DeliveryAttributeMapping> DeliveryAttributeMappings { get; }
}
}