| | 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 | | using System.Collections.Generic; |
| | 10 | | using System.Linq; |
| | 11 | |
|
| | 12 | | namespace Azure.ResourceManager.Network.Models |
| | 13 | | { |
| | 14 | | /// <summary> RouteTable route. </summary> |
| | 15 | | public partial class HubRoute |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of HubRoute. </summary> |
| | 18 | | /// <param name="name"> The name of the Route that is unique within a RouteTable. This name can be used to acces |
| | 19 | | /// <param name="destinationType"> The type of destinations (eg: CIDR, ResourceId, Service). </param> |
| | 20 | | /// <param name="destinations"> List of all destinations. </param> |
| | 21 | | /// <param name="nextHopType"> The type of next hop (eg: ResourceId). </param> |
| | 22 | | /// <param name="nextHop"> NextHop resource ID. </param> |
| 0 | 23 | | public HubRoute(string name, string destinationType, IEnumerable<string> destinations, string nextHopType, strin |
| | 24 | | { |
| 0 | 25 | | if (name == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(name)); |
| | 28 | | } |
| 0 | 29 | | if (destinationType == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(destinationType)); |
| | 32 | | } |
| 0 | 33 | | if (destinations == null) |
| | 34 | | { |
| 0 | 35 | | throw new ArgumentNullException(nameof(destinations)); |
| | 36 | | } |
| 0 | 37 | | if (nextHopType == null) |
| | 38 | | { |
| 0 | 39 | | throw new ArgumentNullException(nameof(nextHopType)); |
| | 40 | | } |
| 0 | 41 | | if (nextHop == null) |
| | 42 | | { |
| 0 | 43 | | throw new ArgumentNullException(nameof(nextHop)); |
| | 44 | | } |
| | 45 | |
|
| 0 | 46 | | Name = name; |
| 0 | 47 | | DestinationType = destinationType; |
| 0 | 48 | | Destinations = destinations.ToList(); |
| 0 | 49 | | NextHopType = nextHopType; |
| 0 | 50 | | NextHop = nextHop; |
| 0 | 51 | | } |
| | 52 | |
|
| | 53 | | /// <summary> Initializes a new instance of HubRoute. </summary> |
| | 54 | | /// <param name="name"> The name of the Route that is unique within a RouteTable. This name can be used to acces |
| | 55 | | /// <param name="destinationType"> The type of destinations (eg: CIDR, ResourceId, Service). </param> |
| | 56 | | /// <param name="destinations"> List of all destinations. </param> |
| | 57 | | /// <param name="nextHopType"> The type of next hop (eg: ResourceId). </param> |
| | 58 | | /// <param name="nextHop"> NextHop resource ID. </param> |
| 0 | 59 | | internal HubRoute(string name, string destinationType, IList<string> destinations, string nextHopType, string ne |
| | 60 | | { |
| 0 | 61 | | Name = name; |
| 0 | 62 | | DestinationType = destinationType; |
| 0 | 63 | | Destinations = destinations ?? new List<string>(); |
| 0 | 64 | | NextHopType = nextHopType; |
| 0 | 65 | | NextHop = nextHop; |
| 0 | 66 | | } |
| | 67 | |
|
| | 68 | | /// <summary> The name of the Route that is unique within a RouteTable. This name can be used to access this rou |
| 0 | 69 | | public string Name { get; set; } |
| | 70 | | /// <summary> The type of destinations (eg: CIDR, ResourceId, Service). </summary> |
| 0 | 71 | | public string DestinationType { get; set; } |
| | 72 | | /// <summary> List of all destinations. </summary> |
| 0 | 73 | | public IList<string> Destinations { get; } |
| | 74 | | /// <summary> The type of next hop (eg: ResourceId). </summary> |
| 0 | 75 | | public string NextHopType { get; set; } |
| | 76 | | /// <summary> NextHop resource ID. </summary> |
| 0 | 77 | | public string NextHop { get; set; } |
| | 78 | | } |
| | 79 | | } |