Class AzureFirewallNatRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.AzureFirewallNatRule
-
public final class AzureFirewallNatRule extends Object
Properties of a NAT rule.
-
-
Constructor Summary
Constructors Constructor Description AzureFirewallNatRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: Description of the rule.List<String>destinationAddresses()Get the destinationAddresses property: List of destination IP addresses for this rule.List<String>destinationPorts()Get the destinationPorts property: List of destination ports.Stringname()Get the name property: Name of the NAT rule.List<AzureFirewallNetworkRuleProtocol>protocols()Get the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.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.StringtranslatedAddress()Get the translatedAddress property: The translated address for this NAT rule.StringtranslatedFqdn()Get the translatedFqdn property: The translated FQDN for this NAT rule.StringtranslatedPort()Get the translatedPort property: The translated port for this NAT rule.voidvalidate()Validates the instance.AzureFirewallNatRulewithDescription(String description)Set the description property: Description of the rule.AzureFirewallNatRulewithDestinationAddresses(List<String> destinationAddresses)Set the destinationAddresses property: List of destination IP addresses for this rule.AzureFirewallNatRulewithDestinationPorts(List<String> destinationPorts)Set the destinationPorts property: List of destination ports.AzureFirewallNatRulewithName(String name)Set the name property: Name of the NAT rule.AzureFirewallNatRulewithProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)Set the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.AzureFirewallNatRulewithSourceAddresses(List<String> sourceAddresses)Set the sourceAddresses property: List of source IP addresses for this rule.AzureFirewallNatRulewithSourceIpGroups(List<String> sourceIpGroups)Set the sourceIpGroups property: List of source IpGroups for this rule.AzureFirewallNatRulewithTranslatedAddress(String translatedAddress)Set the translatedAddress property: The translated address for this NAT rule.AzureFirewallNatRulewithTranslatedFqdn(String translatedFqdn)Set the translatedFqdn property: The translated FQDN for this NAT rule.AzureFirewallNatRulewithTranslatedPort(String translatedPort)Set the translatedPort property: The translated port for this NAT rule.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the NAT rule.- Returns:
- the name value.
-
withName
public AzureFirewallNatRule withName(String name)
Set the name property: Name of the NAT rule.- Parameters:
name- the name value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
description
public String description()
Get the description property: Description of the rule.- Returns:
- the description value.
-
withDescription
public AzureFirewallNatRule withDescription(String description)
Set the description property: Description of the rule.- Parameters:
description- the description value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
sourceAddresses
public List<String> sourceAddresses()
Get the sourceAddresses property: List of source IP addresses for this rule.- Returns:
- the sourceAddresses value.
-
withSourceAddresses
public AzureFirewallNatRule withSourceAddresses(List<String> sourceAddresses)
Set the sourceAddresses property: List of source IP addresses for this rule.- Parameters:
sourceAddresses- the sourceAddresses value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
destinationAddresses
public List<String> destinationAddresses()
Get the destinationAddresses property: List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.- Returns:
- the destinationAddresses value.
-
withDestinationAddresses
public AzureFirewallNatRule withDestinationAddresses(List<String> destinationAddresses)
Set the destinationAddresses property: 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
public List<String> destinationPorts()
Get the destinationPorts property: List of destination ports.- Returns:
- the destinationPorts value.
-
withDestinationPorts
public AzureFirewallNatRule withDestinationPorts(List<String> destinationPorts)
Set the destinationPorts property: List of destination ports.- Parameters:
destinationPorts- the destinationPorts value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
protocols
public List<AzureFirewallNetworkRuleProtocol> protocols()
Get the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.- Returns:
- the protocols value.
-
withProtocols
public AzureFirewallNatRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)
Set the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.- Parameters:
protocols- the protocols value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
translatedAddress
public String translatedAddress()
Get the translatedAddress property: The translated address for this NAT rule.- Returns:
- the translatedAddress value.
-
withTranslatedAddress
public AzureFirewallNatRule withTranslatedAddress(String translatedAddress)
Set the translatedAddress property: The translated address for this NAT rule.- Parameters:
translatedAddress- the translatedAddress value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
translatedPort
public String translatedPort()
Get the translatedPort property: The translated port for this NAT rule.- Returns:
- the translatedPort value.
-
withTranslatedPort
public AzureFirewallNatRule withTranslatedPort(String translatedPort)
Set the translatedPort property: The translated port for this NAT rule.- Parameters:
translatedPort- the translatedPort value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
translatedFqdn
public String translatedFqdn()
Get the translatedFqdn property: The translated FQDN for this NAT rule.- Returns:
- the translatedFqdn value.
-
withTranslatedFqdn
public AzureFirewallNatRule withTranslatedFqdn(String translatedFqdn)
Set the translatedFqdn property: The translated FQDN for this NAT rule.- Parameters:
translatedFqdn- the translatedFqdn value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
sourceIpGroups
public List<String> sourceIpGroups()
Get the sourceIpGroups property: List of source IpGroups for this rule.- Returns:
- the sourceIpGroups value.
-
withSourceIpGroups
public AzureFirewallNatRule withSourceIpGroups(List<String> sourceIpGroups)
Set the sourceIpGroups property: List of source IpGroups for this rule.- Parameters:
sourceIpGroups- the sourceIpGroups value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-