Class AzureFirewallNatRule
java.lang.Object
com.azure.resourcemanager.network.models.AzureFirewallNatRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFirewallNatRule>
public final class AzureFirewallNatRule
extends Object
implements com.azure.json.JsonSerializable<AzureFirewallNatRule>
Properties of a NAT rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of the rule.Get the destinationAddresses property: List of destination IP addresses for this rule.Get the destinationPorts property: List of destination ports.static AzureFirewallNatRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFirewallNatRule from the JsonReader.name()Get the name property: Name of the NAT rule.Get the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.Get the sourceAddresses property: List of source IP addresses for this rule.Get the sourceIpGroups property: List of source IpGroups for this rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the translatedAddress property: The translated address for this NAT rule.Get the translatedFqdn property: The translated FQDN for this NAT rule.Get the translatedPort property: The translated port for this NAT rule.voidvalidate()Validates the instance.withDescription(String description) Set the description property: Description of the rule.withDestinationAddresses(List<String> destinationAddresses) Set the destinationAddresses property: List of destination IP addresses for this rule.withDestinationPorts(List<String> destinationPorts) Set the destinationPorts property: List of destination ports.Set the name property: Name of the NAT rule.withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols) Set the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.withSourceAddresses(List<String> sourceAddresses) Set the sourceAddresses property: List of source IP addresses for this rule.withSourceIpGroups(List<String> sourceIpGroups) Set the sourceIpGroups property: List of source IpGroups for this rule.withTranslatedAddress(String translatedAddress) Set the translatedAddress property: The translated address for this NAT rule.withTranslatedFqdn(String translatedFqdn) Set the translatedFqdn property: The translated FQDN for this NAT rule.withTranslatedPort(String translatedPort) Set the translatedPort property: The translated port for this NAT rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureFirewallNatRule
public AzureFirewallNatRule()Creates an instance of AzureFirewallNatRule class.
-
-
Method Details
-
name
Get the name property: Name of the NAT rule.- Returns:
- the name value.
-
withName
Set the name property: Name of the NAT rule.- Parameters:
name- the name value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
description
Get the description property: Description of the rule.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the rule.- Parameters:
description- the description value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
sourceAddresses
Get the sourceAddresses property: List of source IP addresses for this rule.- Returns:
- the sourceAddresses value.
-
withSourceAddresses
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
Get the destinationAddresses property: List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.- Returns:
- the destinationAddresses value.
-
withDestinationAddresses
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
Get the destinationPorts property: List of destination ports.- Returns:
- the destinationPorts value.
-
withDestinationPorts
Set the destinationPorts property: List of destination ports.- Parameters:
destinationPorts- the destinationPorts value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
protocols
Get the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.- Returns:
- the protocols value.
-
withProtocols
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
Get the translatedAddress property: The translated address for this NAT rule.- Returns:
- the translatedAddress value.
-
withTranslatedAddress
Set the translatedAddress property: The translated address for this NAT rule.- Parameters:
translatedAddress- the translatedAddress value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
translatedPort
Get the translatedPort property: The translated port for this NAT rule.- Returns:
- the translatedPort value.
-
withTranslatedPort
Set the translatedPort property: The translated port for this NAT rule.- Parameters:
translatedPort- the translatedPort value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
translatedFqdn
Get the translatedFqdn property: The translated FQDN for this NAT rule.- Returns:
- the translatedFqdn value.
-
withTranslatedFqdn
Set the translatedFqdn property: The translated FQDN for this NAT rule.- Parameters:
translatedFqdn- the translatedFqdn value to set.- Returns:
- the AzureFirewallNatRule object itself.
-
sourceIpGroups
Get the sourceIpGroups property: List of source IpGroups for this rule.- Returns:
- the sourceIpGroups value.
-
withSourceIpGroups
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureFirewallNatRule>- Throws:
IOException
-
fromJson
public static AzureFirewallNatRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureFirewallNatRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFirewallNatRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AzureFirewallNatRule.
-