Class NatRule

    • Constructor Detail

      • NatRule

        public NatRule()
    • Method Detail

      • withIpProtocols

        public NatRule withIpProtocols​(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)
        Set the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols.
        Parameters:
        ipProtocols - the ipProtocols value to set.
        Returns:
        the NatRule 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 NatRule 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 NatRule object itself.
      • destinationAddresses

        public List<String> destinationAddresses()
        Get the destinationAddresses property: List of destination IP addresses or Service Tags.
        Returns:
        the destinationAddresses value.
      • withDestinationAddresses

        public NatRule withDestinationAddresses​(List<String> destinationAddresses)
        Set the destinationAddresses property: List of destination IP addresses or Service Tags.
        Parameters:
        destinationAddresses - the destinationAddresses value to set.
        Returns:
        the NatRule object itself.
      • destinationPorts

        public List<String> destinationPorts()
        Get the destinationPorts property: List of destination ports.
        Returns:
        the destinationPorts value.
      • withDestinationPorts

        public NatRule withDestinationPorts​(List<String> destinationPorts)
        Set the destinationPorts property: List of destination ports.
        Parameters:
        destinationPorts - the destinationPorts value to set.
        Returns:
        the NatRule object itself.
      • translatedAddress

        public String translatedAddress()
        Get the translatedAddress property: The translated address for this NAT rule.
        Returns:
        the translatedAddress value.
      • withTranslatedAddress

        public NatRule withTranslatedAddress​(String translatedAddress)
        Set the translatedAddress property: The translated address for this NAT rule.
        Parameters:
        translatedAddress - the translatedAddress value to set.
        Returns:
        the NatRule object itself.
      • translatedPort

        public String translatedPort()
        Get the translatedPort property: The translated port for this NAT rule.
        Returns:
        the translatedPort value.
      • withTranslatedPort

        public NatRule withTranslatedPort​(String translatedPort)
        Set the translatedPort property: The translated port for this NAT rule.
        Parameters:
        translatedPort - the translatedPort value to set.
        Returns:
        the NatRule object itself.
      • sourceIpGroups

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

        public NatRule withSourceIpGroups​(List<String> sourceIpGroups)
        Set the sourceIpGroups property: List of source IpGroups for this rule.
        Parameters:
        sourceIpGroups - the sourceIpGroups value to set.
        Returns:
        the NatRule object itself.
      • translatedFqdn

        public String translatedFqdn()
        Get the translatedFqdn property: The translated FQDN for this NAT rule.
        Returns:
        the translatedFqdn value.
      • withTranslatedFqdn

        public NatRule withTranslatedFqdn​(String translatedFqdn)
        Set the translatedFqdn property: The translated FQDN for this NAT rule.
        Parameters:
        translatedFqdn - the translatedFqdn value to set.
        Returns:
        the NatRule object itself.
      • withName

        public NatRule withName​(String name)
        Set the name property: Name of the rule.
        Overrides:
        withName in class FirewallPolicyRule
        Parameters:
        name - the name value to set.
        Returns:
        the FirewallPolicyRule object itself.
      • withDescription

        public NatRule withDescription​(String description)
        Set the description property: Description of the rule.
        Overrides:
        withDescription in class FirewallPolicyRule
        Parameters:
        description - the description value to set.
        Returns:
        the FirewallPolicyRule object itself.