AzureFirewallNatRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. AzureFirewallNatRule
- com.
Implements
public final class AzureFirewallNatRule
implements JsonSerializable<AzureFirewallNatRule>
Properties of a NAT rule.
Constructor Summary
Constructor | Description |
---|---|
AzureFirewallNatRule() |
Creates an instance of Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: Description of the rule. |
List<String> |
destinationAddresses()
Get the destination |
List<String> |
destinationPorts()
Get the destination |
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
String |
name()
Get the name property: Name of the NAT rule. |
List<Azure |
protocols()
Get the protocols property: Array of Azure |
List<String> |
sourceAddresses()
Get the source |
List<String> |
sourceIpGroups()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
String |
translatedAddress()
Get the translated |
String |
translatedFqdn()
Get the translated |
String |
translatedPort()
Get the translated |
void |
validate()
Validates the instance. |
Azure |
withDescription(String description)
Set the description property: Description of the rule. |
Azure |
withDestinationAddresses(List<String> destinationAddresses)
Set the destination |
Azure |
withDestinationPorts(List<String> destinationPorts)
Set the destination |
Azure |
withName(String name)
Set the name property: Name of the NAT rule. |
Azure |
withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)
Set the protocols property: Array of Azure |
Azure |
withSourceAddresses(List<String> sourceAddresses)
Set the source |
Azure |
withSourceIpGroups(List<String> sourceIpGroups)
Set the source |
Azure |
withTranslatedAddress(String translatedAddress)
Set the translated |
Azure |
withTranslatedFqdn(String translatedFqdn)
Set the translated |
Azure |
withTranslatedPort(String translatedPort)
Set the translated |
Methods inherited from java.lang.Object
Constructor Details
AzureFirewallNatRule
public AzureFirewallNatRule()
Creates an instance of AzureFirewallNatRule class.
Method Details
description
public String description()
Get the description property: Description of the rule.
Returns:
destinationAddresses
public List
Get the destinationAddresses property: List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.
Returns:
destinationPorts
public List
Get the destinationPorts property: List of destination ports.
Returns:
fromJson
public static AzureFirewallNatRule fromJson(JsonReader jsonReader)
Reads an instance of AzureFirewallNatRule from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the NAT rule.
Returns:
protocols
public List
Get the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.
Returns:
sourceAddresses
public List
Get the sourceAddresses property: List of source IP addresses for this rule.
Returns:
sourceIpGroups
public List
Get the sourceIpGroups property: List of source IpGroups for this rule.
Returns:
toJson
translatedAddress
public String translatedAddress()
Get the translatedAddress property: The translated address for this NAT rule.
Returns:
translatedFqdn
public String translatedFqdn()
Get the translatedFqdn property: The translated FQDN for this NAT rule.
Returns:
translatedPort
public String translatedPort()
Get the translatedPort property: The translated port for this NAT rule.
Returns:
validate
public void validate()
Validates the instance.
withDescription
public AzureFirewallNatRule withDescription(String description)
Set the description property: Description of the rule.
Parameters:
Returns:
withDestinationAddresses
public AzureFirewallNatRule withDestinationAddresses(List
Set the destinationAddresses property: List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.
Parameters:
Returns:
withDestinationPorts
public AzureFirewallNatRule withDestinationPorts(List
Set the destinationPorts property: List of destination ports.
Parameters:
Returns:
withName
public AzureFirewallNatRule withName(String name)
Set the name property: Name of the NAT rule.
Parameters:
Returns:
withProtocols
public AzureFirewallNatRule withProtocols(List
Set the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.
Parameters:
Returns:
withSourceAddresses
public AzureFirewallNatRule withSourceAddresses(List
Set the sourceAddresses property: List of source IP addresses for this rule.
Parameters:
Returns:
withSourceIpGroups
public AzureFirewallNatRule withSourceIpGroups(List
Set the sourceIpGroups property: List of source IpGroups for this rule.
Parameters:
Returns:
withTranslatedAddress
public AzureFirewallNatRule withTranslatedAddress(String translatedAddress)
Set the translatedAddress property: The translated address for this NAT rule.
Parameters:
Returns:
withTranslatedFqdn
public AzureFirewallNatRule withTranslatedFqdn(String translatedFqdn)
Set the translatedFqdn property: The translated FQDN for this NAT rule.
Parameters:
Returns:
withTranslatedPort
public AzureFirewallNatRule withTranslatedPort(String translatedPort)
Set the translatedPort property: The translated port for this NAT rule.
Parameters:
Returns:
Applies to
Azure SDK for Java