-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
InboundEndpointIPConfiguration.cs
58 lines (50 loc) · 2.34 KB
/
InboundEndpointIPConfiguration.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
48
49
50
51
52
53
54
55
56
57
58
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Net;
using Azure.Core;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.DnsResolver.Models
{
/// <summary> IP configuration. </summary>
public partial class InboundEndpointIPConfiguration
{
/// <summary> Initializes a new instance of InboundEndpointIPConfiguration. </summary>
/// <param name="subnet"> The reference to the subnet bound to the IP configuration. </param>
/// <exception cref="ArgumentNullException"> <paramref name="subnet"/> is null. </exception>
public InboundEndpointIPConfiguration(WritableSubResource subnet)
{
Argument.AssertNotNull(subnet, nameof(subnet));
Subnet = subnet;
}
/// <summary> Initializes a new instance of InboundEndpointIPConfiguration. </summary>
/// <param name="subnet"> The reference to the subnet bound to the IP configuration. </param>
/// <param name="privateIPAddress"> Private IP address of the IP configuration. </param>
/// <param name="privateIPAllocationMethod"> Private IP address allocation method. </param>
internal InboundEndpointIPConfiguration(WritableSubResource subnet, IPAddress privateIPAddress, InboundEndpointIPAllocationMethod? privateIPAllocationMethod)
{
Subnet = subnet;
PrivateIPAddress = privateIPAddress;
PrivateIPAllocationMethod = privateIPAllocationMethod;
}
/// <summary> The reference to the subnet bound to the IP configuration. </summary>
internal WritableSubResource Subnet { get; set; }
/// <summary> Gets or sets Id. </summary>
public ResourceIdentifier SubnetId
{
get => Subnet is null ? default : Subnet.Id;
set
{
if (Subnet is null)
Subnet = new WritableSubResource();
Subnet.Id = value;
}
}
/// <summary> Private IP address of the IP configuration. </summary>
public IPAddress PrivateIPAddress { get; set; }
/// <summary> Private IP address allocation method. </summary>
public InboundEndpointIPAllocationMethod? PrivateIPAllocationMethod { get; set; }
}
}