public final class NatRule extends FirewallPolicyRule
| Constructor and Description |
|---|
NatRule() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
destinationAddresses()
Get the destinationAddresses property: List of destination IP addresses or Service Tags.
|
List<String> |
destinationPorts()
Get the destinationPorts property: List of destination ports.
|
List<FirewallPolicyRuleNetworkProtocol> |
ipProtocols()
Get the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols.
|
List<String> |
sourceAddresses()
Get the sourceAddresses property: List of source IP addresses for this rule.
|
List<String> |
sourceIpGroups()
Get the sourceIpGroups property: List of source IpGroups for this rule.
|
String |
translatedAddress()
Get the translatedAddress property: The translated address for this NAT rule.
|
String |
translatedPort()
Get the translatedPort property: The translated port for this NAT rule.
|
void |
validate()
Validates the instance.
|
NatRule |
withDestinationAddresses(List<String> destinationAddresses)
Set the destinationAddresses property: List of destination IP addresses or Service Tags.
|
NatRule |
withDestinationPorts(List<String> destinationPorts)
Set the destinationPorts property: List of destination ports.
|
NatRule |
withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)
Set the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols.
|
NatRule |
withSourceAddresses(List<String> sourceAddresses)
Set the sourceAddresses property: List of source IP addresses for this rule.
|
NatRule |
withSourceIpGroups(List<String> sourceIpGroups)
Set the sourceIpGroups property: List of source IpGroups for this rule.
|
NatRule |
withTranslatedAddress(String translatedAddress)
Set the translatedAddress property: The translated address for this NAT rule.
|
NatRule |
withTranslatedPort(String translatedPort)
Set the translatedPort property: The translated port for this NAT rule.
|
description, name, withDescription, withNamepublic List<FirewallPolicyRuleNetworkProtocol> ipProtocols()
public NatRule withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)
ipProtocols - the ipProtocols value to set.public List<String> sourceAddresses()
public NatRule withSourceAddresses(List<String> sourceAddresses)
sourceAddresses - the sourceAddresses value to set.public List<String> destinationAddresses()
public NatRule withDestinationAddresses(List<String> destinationAddresses)
destinationAddresses - the destinationAddresses value to set.public List<String> destinationPorts()
public NatRule withDestinationPorts(List<String> destinationPorts)
destinationPorts - the destinationPorts value to set.public String translatedAddress()
public NatRule withTranslatedAddress(String translatedAddress)
translatedAddress - the translatedAddress value to set.public String translatedPort()
public NatRule withTranslatedPort(String translatedPort)
translatedPort - the translatedPort value to set.public List<String> sourceIpGroups()
public NatRule withSourceIpGroups(List<String> sourceIpGroups)
sourceIpGroups - the sourceIpGroups value to set.public void validate()
validate in class FirewallPolicyRuleIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.