FirewallPolicyNatRule Class

public class FirewallPolicyNatRule
extends FirewallPolicyRule

Firewall Policy NAT Rule.

Constructor Summary

Constructor Description
FirewallPolicyNatRule()

Method Summary

Modifier and Type Method and Description
FirewallPolicyNatRuleAction action()

Get the action type of a Nat rule.

FirewallPolicyRuleCondition ruleCondition()

Get the match conditions for incoming traffic.

java.lang.String translatedAddress()

Get the translated address for this NAT rule.

java.lang.String translatedPort()

Get the translated port for this NAT rule.

FirewallPolicyNatRule withAction(FirewallPolicyNatRuleAction action)

Set the action type of a Nat rule.

FirewallPolicyNatRule withRuleCondition(FirewallPolicyRuleCondition ruleCondition)

Set the match conditions for incoming traffic.

FirewallPolicyNatRule withTranslatedAddress(String translatedAddress)

Set the translated address for this NAT rule.

FirewallPolicyNatRule withTranslatedPort(String translatedPort)

Set the translated port for this NAT rule.

Methods inherited from FirewallPolicyRule

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

FirewallPolicyNatRule

public FirewallPolicyNatRule()

Method Details

action

public FirewallPolicyNatRuleAction action()

Get the action type of a Nat rule.

Returns:

the action value

ruleCondition

public FirewallPolicyRuleCondition ruleCondition()

Get the match conditions for incoming traffic.

Returns:

the ruleCondition value

translatedAddress

public String translatedAddress()

Get the translated address for this NAT rule.

Returns:

the translatedAddress value

translatedPort

public String translatedPort()

Get the translated port for this NAT rule.

Returns:

the translatedPort value

withAction

public FirewallPolicyNatRule withAction(FirewallPolicyNatRuleAction action)

Set the action type of a Nat rule.

Parameters:

action - the action value to set

Returns:

the FirewallPolicyNatRule object itself.

withRuleCondition

public FirewallPolicyNatRule withRuleCondition(FirewallPolicyRuleCondition ruleCondition)

Set the match conditions for incoming traffic.

Parameters:

ruleCondition - the ruleCondition value to set

Returns:

the FirewallPolicyNatRule object itself.

withTranslatedAddress

public FirewallPolicyNatRule withTranslatedAddress(String translatedAddress)

Set the translated address for this NAT rule.

Parameters:

translatedAddress - the translatedAddress value to set

Returns:

the FirewallPolicyNatRule object itself.

withTranslatedPort

public FirewallPolicyNatRule withTranslatedPort(String translatedPort)

Set the translated port for this NAT rule.

Parameters:

translatedPort - the translatedPort value to set

Returns:

the FirewallPolicyNatRule object itself.

Applies to