| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.DigitalTwins.Core |
| | 11 | | { |
| | 12 | | /// <summary> A route which directs notification and telemetry events to an endpoint. Endpoints are a destination ou |
| | 13 | | public partial class EventRoute |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of EventRoute. </summary> |
| | 16 | | /// <param name="endpointName"> The name of the endpoint this event route is bound to. </param> |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="endpointName"/> is null. </exception> |
| 12 | 18 | | public EventRoute(string endpointName) |
| | 19 | | { |
| 12 | 20 | | if (endpointName == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(endpointName)); |
| | 23 | | } |
| | 24 | |
|
| 12 | 25 | | EndpointName = endpointName; |
| 12 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of EventRoute. </summary> |
| | 29 | | /// <param name="id"> The id of the event route. </param> |
| | 30 | | /// <param name="endpointName"> The name of the endpoint this event route is bound to. </param> |
| | 31 | | /// <param name="filter"> An expression which describes the events which are routed to the endpoint. </param> |
| 8 | 32 | | internal EventRoute(string id, string endpointName, string filter) |
| | 33 | | { |
| 8 | 34 | | Id = id; |
| 8 | 35 | | EndpointName = endpointName; |
| 8 | 36 | | Filter = filter; |
| 8 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> The id of the event route. </summary> |
| 8 | 40 | | public string Id { get; } |
| | 41 | | /// <summary> The name of the endpoint this event route is bound to. </summary> |
| 48 | 42 | | public string EndpointName { get; set; } |
| | 43 | | /// <summary> An expression which describes the events which are routed to the endpoint. </summary> |
| 60 | 44 | | public string Filter { get; set; } |
| | 45 | | } |
| | 46 | | } |