AzureFirewallNatRule Class

  • java.lang.Object
    • com.microsoft.azure.management.network.AzureFirewallNatRule

public class AzureFirewallNatRule

Properties of a NAT rule.

Constructor Summary

Constructor Description
AzureFirewallNatRule()

Method Summary

Modifier and Type Method and Description
java.lang.String description()

Get description of the rule.

java.util.List<java.lang.String> destinationAddresses()

Get list of destination IP addresses for this rule.

java.util.List<java.lang.String> destinationPorts()

Get list of destination ports.

java.lang.String name()

Get name of the NAT rule.

java.util.List<AzureFirewallNetworkRuleProtocol> protocols()

Get array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.

java.util.List<java.lang.String> sourceAddresses()

Get list of source IP addresses for this rule.

java.util.List<java.lang.String> sourceIpGroups()

Get list of source IpGroups for this rule.

java.lang.String translatedAddress()

Get the translated address for this NAT rule.

java.lang.String translatedFqdn()

Get the translated FQDN for this NAT rule.

java.lang.String translatedPort()

Get the translated port for this NAT rule.

AzureFirewallNatRule withDescription(String description)

Set description of the rule.

AzureFirewallNatRule withDestinationAddresses(List<String> destinationAddresses)

Set list of destination IP addresses for this rule.

AzureFirewallNatRule withDestinationPorts(List<String> destinationPorts)

Set list of destination ports.

AzureFirewallNatRule withName(String name)

Set name of the NAT rule.

AzureFirewallNatRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)

Set array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.

AzureFirewallNatRule withSourceAddresses(List<String> sourceAddresses)

Set list of source IP addresses for this rule.

AzureFirewallNatRule withSourceIpGroups(List<String> sourceIpGroups)

Set list of source IpGroups for this rule.

AzureFirewallNatRule withTranslatedAddress(String translatedAddress)

Set the translated address for this NAT rule.

AzureFirewallNatRule withTranslatedFqdn(String translatedFqdn)

Set the translated FQDN for this NAT rule.

AzureFirewallNatRule withTranslatedPort(String translatedPort)

Set the translated port for this NAT rule.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

AzureFirewallNatRule

public AzureFirewallNatRule()

Method Details

description

public String description()

Get description of the rule.

Returns:

the description value

destinationAddresses

public List destinationAddresses()

Get list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.

Returns:

the destinationAddresses value

destinationPorts

public List destinationPorts()

Get list of destination ports.

Returns:

the destinationPorts value

name

public String name()

Get name of the NAT rule.

Returns:

the name value

protocols

public List protocols()

Get array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.

Returns:

the protocols value

sourceAddresses

public List sourceAddresses()

Get list of source IP addresses for this rule.

Returns:

the sourceAddresses value

sourceIpGroups

public List sourceIpGroups()

Get list of source IpGroups for this rule.

Returns:

the sourceIpGroups value

translatedAddress

public String translatedAddress()

Get the translated address for this NAT rule.

Returns:

the translatedAddress value

translatedFqdn

public String translatedFqdn()

Get the translated FQDN for this NAT rule.

Returns:

the translatedFqdn value

translatedPort

public String translatedPort()

Get the translated port for this NAT rule.

Returns:

the translatedPort value

withDescription

public AzureFirewallNatRule withDescription(String description)

Set description of the rule.

Parameters:

description - the description value to set

Returns:

the AzureFirewallNatRule object itself.

withDestinationAddresses

public AzureFirewallNatRule withDestinationAddresses(List destinationAddresses)

Set list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.

Parameters:

destinationAddresses - the destinationAddresses value to set

Returns:

the AzureFirewallNatRule object itself.

withDestinationPorts

public AzureFirewallNatRule withDestinationPorts(List destinationPorts)

Set list of destination ports.

Parameters:

destinationPorts - the destinationPorts value to set

Returns:

the AzureFirewallNatRule object itself.

withName

public AzureFirewallNatRule withName(String name)

Set name of the NAT rule.

Parameters:

name - the name value to set

Returns:

the AzureFirewallNatRule object itself.

withProtocols

public AzureFirewallNatRule withProtocols(List protocols)

Set array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.

Parameters:

protocols - the protocols value to set

Returns:

the AzureFirewallNatRule object itself.

withSourceAddresses

public AzureFirewallNatRule withSourceAddresses(List sourceAddresses)

Set list of source IP addresses for this rule.

Parameters:

sourceAddresses - the sourceAddresses value to set

Returns:

the AzureFirewallNatRule object itself.

withSourceIpGroups

public AzureFirewallNatRule withSourceIpGroups(List sourceIpGroups)

Set list of source IpGroups for this rule.

Parameters:

sourceIpGroups - the sourceIpGroups value to set

Returns:

the AzureFirewallNatRule object itself.

withTranslatedAddress

public AzureFirewallNatRule withTranslatedAddress(String translatedAddress)

Set the translated address for this NAT rule.

Parameters:

translatedAddress - the translatedAddress value to set

Returns:

the AzureFirewallNatRule object itself.

withTranslatedFqdn

public AzureFirewallNatRule withTranslatedFqdn(String translatedFqdn)

Set the translated FQDN for this NAT rule.

Parameters:

translatedFqdn - the translatedFqdn value to set

Returns:

the AzureFirewallNatRule object itself.

withTranslatedPort

public AzureFirewallNatRule withTranslatedPort(String translatedPort)

Set the translated port for this NAT rule.

Parameters:

translatedPort - the translatedPort value to set

Returns:

the AzureFirewallNatRule object itself.

Applies to