Class AzureFirewallNatRule
java.lang.Object
com.microsoft.azure.management.network.AzureFirewallNatRule
Properties of a NAT rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet description of the rule.Get list of destination IP addresses for this rule.Get list of destination ports.name()
Get name of the NAT rule.Get array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.Get list of source IP addresses for this rule.Get list of source IpGroups for this rule.Get the translated address for this NAT rule.Get the translated FQDN for this NAT rule.Get the translated port for this NAT rule.withDescription
(String description) Set description of the rule.withDestinationAddresses
(List<String> destinationAddresses) Set list of destination IP addresses for this rule.withDestinationPorts
(List<String> destinationPorts) Set list of destination ports.Set name of the NAT rule.withProtocols
(List<AzureFirewallNetworkRuleProtocol> protocols) Set array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.withSourceAddresses
(List<String> sourceAddresses) Set list of source IP addresses for this rule.withSourceIpGroups
(List<String> sourceIpGroups) Set list of source IpGroups for this rule.withTranslatedAddress
(String translatedAddress) Set the translated address for this NAT rule.withTranslatedFqdn
(String translatedFqdn) Set the translated FQDN for this NAT rule.withTranslatedPort
(String translatedPort) Set the translated port for this NAT rule.
-
Constructor Details
-
AzureFirewallNatRule
public AzureFirewallNatRule()
-
-
Method Details
-
name
Get name of the NAT rule.- Returns:
- the name value
-
withName
Set name of the NAT rule.- Parameters:
name
- the name value to set- Returns:
- the AzureFirewallNatRule object itself.
-
description
Get description of the rule.- Returns:
- the description value
-
withDescription
Set description of the rule.- Parameters:
description
- the description value to set- Returns:
- the AzureFirewallNatRule object itself.
-
sourceAddresses
Get list of source IP addresses for this rule.- Returns:
- the sourceAddresses value
-
withSourceAddresses
Set list of source IP addresses for this rule.- Parameters:
sourceAddresses
- the sourceAddresses value to set- Returns:
- the AzureFirewallNatRule object itself.
-
destinationAddresses
Get list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.- Returns:
- the destinationAddresses value
-
withDestinationAddresses
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.
-
destinationPorts
Get list of destination ports.- Returns:
- the destinationPorts value
-
withDestinationPorts
Set list of destination ports.- Parameters:
destinationPorts
- the destinationPorts value to set- Returns:
- the AzureFirewallNatRule object itself.
-
protocols
Get array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.- Returns:
- the protocols value
-
withProtocols
Set array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.- Parameters:
protocols
- the protocols value to set- Returns:
- the AzureFirewallNatRule object itself.
-
translatedAddress
Get the translated address for this NAT rule.- Returns:
- the translatedAddress value
-
withTranslatedAddress
Set the translated address for this NAT rule.- Parameters:
translatedAddress
- the translatedAddress value to set- Returns:
- the AzureFirewallNatRule object itself.
-
translatedPort
Get the translated port for this NAT rule.- Returns:
- the translatedPort value
-
withTranslatedPort
Set the translated port for this NAT rule.- Parameters:
translatedPort
- the translatedPort value to set- Returns:
- the AzureFirewallNatRule object itself.
-
translatedFqdn
Get the translated FQDN for this NAT rule.- Returns:
- the translatedFqdn value
-
withTranslatedFqdn
Set the translated FQDN for this NAT rule.- Parameters:
translatedFqdn
- the translatedFqdn value to set- Returns:
- the AzureFirewallNatRule object itself.
-
sourceIpGroups
Get list of source IpGroups for this rule.- Returns:
- the sourceIpGroups value
-
withSourceIpGroups
Set list of source IpGroups for this rule.- Parameters:
sourceIpGroups
- the sourceIpGroups value to set- Returns:
- the AzureFirewallNatRule object itself.
-