| | 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.ResourceManager.Network.Models |
| | 11 | | { |
| | 12 | | /// <summary> Parameters that define the source and destination endpoint. </summary> |
| | 13 | | public partial class NextHopParameters |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of NextHopParameters. </summary> |
| | 16 | | /// <param name="targetResourceId"> The resource identifier of the target resource against which the action is t |
| | 17 | | /// <param name="sourceIPAddress"> The source IP address. </param> |
| | 18 | | /// <param name="destinationIPAddress"> The destination IP address. </param> |
| 8 | 19 | | public NextHopParameters(string targetResourceId, string sourceIPAddress, string destinationIPAddress) |
| | 20 | | { |
| 8 | 21 | | if (targetResourceId == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(targetResourceId)); |
| | 24 | | } |
| 8 | 25 | | if (sourceIPAddress == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(sourceIPAddress)); |
| | 28 | | } |
| 8 | 29 | | if (destinationIPAddress == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(destinationIPAddress)); |
| | 32 | | } |
| | 33 | |
|
| 8 | 34 | | TargetResourceId = targetResourceId; |
| 8 | 35 | | SourceIPAddress = sourceIPAddress; |
| 8 | 36 | | DestinationIPAddress = destinationIPAddress; |
| 8 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> Initializes a new instance of NextHopParameters. </summary> |
| | 40 | | /// <param name="targetResourceId"> The resource identifier of the target resource against which the action is t |
| | 41 | | /// <param name="sourceIPAddress"> The source IP address. </param> |
| | 42 | | /// <param name="destinationIPAddress"> The destination IP address. </param> |
| | 43 | | /// <param name="targetNicResourceId"> The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any |
| 0 | 44 | | internal NextHopParameters(string targetResourceId, string sourceIPAddress, string destinationIPAddress, string |
| | 45 | | { |
| 0 | 46 | | TargetResourceId = targetResourceId; |
| 0 | 47 | | SourceIPAddress = sourceIPAddress; |
| 0 | 48 | | DestinationIPAddress = destinationIPAddress; |
| 0 | 49 | | TargetNicResourceId = targetNicResourceId; |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> The resource identifier of the target resource against which the action is to be performed. </summ |
| 16 | 53 | | public string TargetResourceId { get; } |
| | 54 | | /// <summary> The source IP address. </summary> |
| 16 | 55 | | public string SourceIPAddress { get; } |
| | 56 | | /// <summary> The destination IP address. </summary> |
| 16 | 57 | | public string DestinationIPAddress { get; } |
| | 58 | | /// <summary> The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this pa |
| 0 | 59 | | public string TargetNicResourceId { get; set; } |
| | 60 | | } |
| | 61 | | } |