AzureFirewallNatRule Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AzureFirewallNatRule

Implements

public final class AzureFirewallNatRule
implements JsonSerializable<AzureFirewallNatRule>

Properties of a NAT rule.

Constructor Summary

Constructor Description
AzureFirewallNatRule()

Creates an instance of AzureFirewallNatRule class.

Method Summary

Modifier and Type Method and Description
String description()

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.

static AzureFirewallNatRule fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallNatRule from the JsonReader.

String name()

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.

JsonWriter toJson(JsonWriter jsonWriter)
String translatedAddress()

Get the translatedAddress property: The translated address for this NAT rule.

String translatedFqdn()

Get the translatedFqdn property: The translated FQDN for this NAT rule.

String translatedPort()

Get the translatedPort property: The translated port for this NAT rule.

void validate()

Validates the instance.

AzureFirewallNatRule withDescription(String description)

Set the description property: Description of the rule.

AzureFirewallNatRule withDestinationAddresses(List<String> destinationAddresses)

Set the destinationAddresses property: List of destination IP addresses for this rule.

AzureFirewallNatRule withDestinationPorts(List<String> destinationPorts)

Set the destinationPorts property: List of destination ports.

AzureFirewallNatRule withName(String name)

Set the name property: Name of the NAT rule.

AzureFirewallNatRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)

Set the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.

AzureFirewallNatRule withSourceAddresses(List<String> sourceAddresses)

Set the sourceAddresses property: List of source IP addresses for this rule.

AzureFirewallNatRule withSourceIpGroups(List<String> sourceIpGroups)

Set the sourceIpGroups property: List of source IpGroups for this rule.

AzureFirewallNatRule withTranslatedAddress(String translatedAddress)

Set the translatedAddress property: The translated address for this NAT rule.

AzureFirewallNatRule withTranslatedFqdn(String translatedFqdn)

Set the translatedFqdn property: The translated FQDN for this NAT rule.

AzureFirewallNatRule withTranslatedPort(String translatedPort)

Set the translatedPort property: The translated port for this NAT rule.

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:

the description value.

destinationAddresses

public List destinationAddresses()

Get the destinationAddresses property: List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.

Returns:

the destinationAddresses value.

destinationPorts

public List destinationPorts()

Get the destinationPorts property: List of destination ports.

Returns:

the destinationPorts value.

fromJson

public static AzureFirewallNatRule fromJson(JsonReader jsonReader)

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.

name

public String name()

Get the name property: Name of the NAT rule.

Returns:

the name value.

protocols

public List protocols()

Get the protocols property: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.

Returns:

the protocols value.

sourceAddresses

public List sourceAddresses()

Get the sourceAddresses property: List of source IP addresses for this rule.

Returns:

the sourceAddresses value.

sourceIpGroups

public List sourceIpGroups()

Get the sourceIpGroups property: List of source IpGroups for this rule.

Returns:

the sourceIpGroups value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

translatedAddress

public String translatedAddress()

Get the translatedAddress property: The translated address for this NAT rule.

Returns:

the translatedAddress value.

translatedFqdn

public String translatedFqdn()

Get the translatedFqdn property: The translated FQDN for this NAT rule.

Returns:

the translatedFqdn value.

translatedPort

public String translatedPort()

Get the translatedPort property: The translated port for this NAT rule.

Returns:

the translatedPort value.

validate

public void validate()

Validates the instance.

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.

withDestinationAddresses

public AzureFirewallNatRule withDestinationAddresses(List 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.

withDestinationPorts

public AzureFirewallNatRule withDestinationPorts(List destinationPorts)

Set the destinationPorts property: List of destination ports.

Parameters:

destinationPorts - the destinationPorts value to set.

Returns:

the AzureFirewallNatRule object itself.

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.

withProtocols

public AzureFirewallNatRule withProtocols(List 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.

withSourceAddresses

public AzureFirewallNatRule withSourceAddresses(List 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.

withSourceIpGroups

public AzureFirewallNatRule withSourceIpGroups(List sourceIpGroups)

Set the sourceIpGroups property: List of source IpGroups for this rule.

Parameters:

sourceIpGroups - the sourceIpGroups value to set.

Returns:

the AzureFirewallNatRule object itself.

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.

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.

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.

Applies to