Class AzureFirewallNatRule

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

public class AzureFirewallNatRule extends Object
Properties of a NAT rule.
  • Constructor Details

    • AzureFirewallNatRule

      public AzureFirewallNatRule()
  • Method Details

    • name

      public String name()
      Get name of the NAT rule.
      Returns:
      the name value
    • withName

      public AzureFirewallNatRule withName(String name)
      Set name of the NAT rule.
      Parameters:
      name - the name value to set
      Returns:
      the AzureFirewallNatRule object itself.
    • description

      public String description()
      Get description of the rule.
      Returns:
      the description value
    • withDescription

      public AzureFirewallNatRule withDescription(String description)
      Set description of the rule.
      Parameters:
      description - the description value to set
      Returns:
      the AzureFirewallNatRule object itself.
    • sourceAddresses

      public List<String> sourceAddresses()
      Get list of source IP addresses for this rule.
      Returns:
      the sourceAddresses value
    • withSourceAddresses

      public AzureFirewallNatRule withSourceAddresses(List<String> sourceAddresses)
      Set 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 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 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 list of destination ports.
      Returns:
      the destinationPorts value
    • withDestinationPorts

      public AzureFirewallNatRule withDestinationPorts(List<String> destinationPorts)
      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

      public AzureFirewallNatRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)
      Set 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 translated address for this NAT rule.
      Returns:
      the translatedAddress value
    • 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.
    • translatedPort

      public String translatedPort()
      Get the translated port for this NAT rule.
      Returns:
      the translatedPort value
    • 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.
    • translatedFqdn

      public String translatedFqdn()
      Get the translated FQDN for this NAT rule.
      Returns:
      the translatedFqdn value
    • 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.
    • sourceIpGroups

      public List<String> sourceIpGroups()
      Get list of source IpGroups for this rule.
      Returns:
      the sourceIpGroups value
    • withSourceIpGroups

      public AzureFirewallNatRule withSourceIpGroups(List<String> sourceIpGroups)
      Set list of source IpGroups for this rule.
      Parameters:
      sourceIpGroups - the sourceIpGroups value to set
      Returns:
      the AzureFirewallNatRule object itself.