Udostępnij za pośrednictwem


ArmNetworkModelFactory.InboundNatRulePortMapping Method

Definition

Initializes a new instance of InboundNatRulePortMapping.

public static Azure.ResourceManager.Network.Models.InboundNatRulePortMapping InboundNatRulePortMapping (string inboundNatRuleName = default, Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol? protocol = default, int? frontendPort = default, int? backendPort = default);
static member InboundNatRulePortMapping : string * Nullable<Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol> * Nullable<int> * Nullable<int> -> Azure.ResourceManager.Network.Models.InboundNatRulePortMapping
Public Shared Function InboundNatRulePortMapping (Optional inboundNatRuleName As String = Nothing, Optional protocol As Nullable(Of LoadBalancingTransportProtocol) = Nothing, Optional frontendPort As Nullable(Of Integer) = Nothing, Optional backendPort As Nullable(Of Integer) = Nothing) As InboundNatRulePortMapping

Parameters

inboundNatRuleName
String

Name of inbound NAT rule.

protocol
Nullable<LoadBalancingTransportProtocol>

The reference to the transport protocol used by the inbound NAT rule.

frontendPort
Nullable<Int32>

Frontend port.

backendPort
Nullable<Int32>

Backend port.

Returns

A new InboundNatRulePortMapping instance for mocking.

Applies to