NetworkRuleCondition Class

public class NetworkRuleCondition
extends FirewallPolicyRuleCondition

Rule condition of type network.

Constructor Summary

Constructor Description
NetworkRuleCondition()

Method Summary

Modifier and Type Method and Description
java.util.List<java.lang.String> destinationAddresses()

Get list of destination IP addresses or Service Tags.

java.util.List<java.lang.String> destinationPorts()

Get list of destination ports.

java.util.List<FirewallPolicyRuleConditionNetworkProtocol> ipProtocols()

Get array of FirewallPolicyRuleConditionNetworkProtocols.

java.util.List<java.lang.String> sourceAddresses()

Get list of source IP addresses for this rule.

NetworkRuleCondition withDestinationAddresses(List<String> destinationAddresses)

Set list of destination IP addresses or Service Tags.

NetworkRuleCondition withDestinationPorts(List<String> destinationPorts)

Set list of destination ports.

NetworkRuleCondition withIpProtocols(List<FirewallPolicyRuleConditionNetworkProtocol> ipProtocols)

Set array of FirewallPolicyRuleConditionNetworkProtocols.

NetworkRuleCondition withSourceAddresses(List<String> sourceAddresses)

Set list of source IP addresses for this rule.

Methods inherited from FirewallPolicyRuleCondition

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

NetworkRuleCondition

public NetworkRuleCondition()

Method Details

destinationAddresses

public List destinationAddresses()

Get list of destination IP addresses or Service Tags.

Returns:

the destinationAddresses value

destinationPorts

public List destinationPorts()

Get list of destination ports.

Returns:

the destinationPorts value

ipProtocols

public List ipProtocols()

Get array of FirewallPolicyRuleConditionNetworkProtocols.

Returns:

the ipProtocols value

sourceAddresses

public List sourceAddresses()

Get list of source IP addresses for this rule.

Returns:

the sourceAddresses value

withDestinationAddresses

public NetworkRuleCondition withDestinationAddresses(List destinationAddresses)

Set list of destination IP addresses or Service Tags.

Parameters:

destinationAddresses - the destinationAddresses value to set

Returns:

the NetworkRuleCondition object itself.

withDestinationPorts

public NetworkRuleCondition withDestinationPorts(List destinationPorts)

Set list of destination ports.

Parameters:

destinationPorts - the destinationPorts value to set

Returns:

the NetworkRuleCondition object itself.

withIpProtocols

public NetworkRuleCondition withIpProtocols(List ipProtocols)

Set array of FirewallPolicyRuleConditionNetworkProtocols.

Parameters:

ipProtocols - the ipProtocols value to set

Returns:

the NetworkRuleCondition object itself.

withSourceAddresses

public NetworkRuleCondition withSourceAddresses(List sourceAddresses)

Set list of source IP addresses for this rule.

Parameters:

sourceAddresses - the sourceAddresses value to set

Returns:

the NetworkRuleCondition object itself.

Applies to