AzureFirewallNetworkRule Class

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

Implements

public final class AzureFirewallNetworkRule
implements JsonSerializable<AzureFirewallNetworkRule>

Properties of the network rule.

Constructor Summary

Constructor Description
AzureFirewallNetworkRule()

Creates an instance of AzureFirewallNetworkRule 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.

List<String> destinationFqdns()

Get the destinationFqdns property: List of destination FQDNs.

List<String> destinationIpGroups()

Get the destinationIpGroups property: List of destination IpGroups for this rule.

List<String> destinationPorts()

Get the destinationPorts property: List of destination ports.

static AzureFirewallNetworkRule fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallNetworkRule from the JsonReader.

String name()

Get the name property: Name of the network rule.

List<AzureFirewallNetworkRuleProtocol> protocols()

Get the protocols property: Array of AzureFirewallNetworkRuleProtocols.

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)
void validate()

Validates the instance.

AzureFirewallNetworkRule withDescription(String description)

Set the description property: Description of the rule.

AzureFirewallNetworkRule withDestinationAddresses(List<String> destinationAddresses)

Set the destinationAddresses property: List of destination IP addresses.

AzureFirewallNetworkRule withDestinationFqdns(List<String> destinationFqdns)

Set the destinationFqdns property: List of destination FQDNs.

AzureFirewallNetworkRule withDestinationIpGroups(List<String> destinationIpGroups)

Set the destinationIpGroups property: List of destination IpGroups for this rule.

AzureFirewallNetworkRule withDestinationPorts(List<String> destinationPorts)

Set the destinationPorts property: List of destination ports.

AzureFirewallNetworkRule withName(String name)

Set the name property: Name of the network rule.

AzureFirewallNetworkRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)

Set the protocols property: Array of AzureFirewallNetworkRuleProtocols.

AzureFirewallNetworkRule withSourceAddresses(List<String> sourceAddresses)

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

AzureFirewallNetworkRule withSourceIpGroups(List<String> sourceIpGroups)

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

Methods inherited from java.lang.Object

Constructor Details

AzureFirewallNetworkRule

public AzureFirewallNetworkRule()

Creates an instance of AzureFirewallNetworkRule 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.

Returns:

the destinationAddresses value.

destinationFqdns

public List destinationFqdns()

Get the destinationFqdns property: List of destination FQDNs.

Returns:

the destinationFqdns value.

destinationIpGroups

public List destinationIpGroups()

Get the destinationIpGroups property: List of destination IpGroups for this rule.

Returns:

the destinationIpGroups value.

destinationPorts

public List destinationPorts()

Get the destinationPorts property: List of destination ports.

Returns:

the destinationPorts value.

fromJson

public static AzureFirewallNetworkRule fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallNetworkRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureFirewallNetworkRule 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 AzureFirewallNetworkRule.

name

public String name()

Get the name property: Name of the network rule.

Returns:

the name value.

protocols

public List protocols()

Get the protocols property: Array of AzureFirewallNetworkRuleProtocols.

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:

validate

public void validate()

Validates the instance.

withDescription

public AzureFirewallNetworkRule withDescription(String description)

Set the description property: Description of the rule.

Parameters:

description - the description value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withDestinationAddresses

public AzureFirewallNetworkRule withDestinationAddresses(List destinationAddresses)

Set the destinationAddresses property: List of destination IP addresses.

Parameters:

destinationAddresses - the destinationAddresses value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withDestinationFqdns

public AzureFirewallNetworkRule withDestinationFqdns(List destinationFqdns)

Set the destinationFqdns property: List of destination FQDNs.

Parameters:

destinationFqdns - the destinationFqdns value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withDestinationIpGroups

public AzureFirewallNetworkRule withDestinationIpGroups(List destinationIpGroups)

Set the destinationIpGroups property: List of destination IpGroups for this rule.

Parameters:

destinationIpGroups - the destinationIpGroups value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withDestinationPorts

public AzureFirewallNetworkRule withDestinationPorts(List destinationPorts)

Set the destinationPorts property: List of destination ports.

Parameters:

destinationPorts - the destinationPorts value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withName

public AzureFirewallNetworkRule withName(String name)

Set the name property: Name of the network rule.

Parameters:

name - the name value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withProtocols

public AzureFirewallNetworkRule withProtocols(List protocols)

Set the protocols property: Array of AzureFirewallNetworkRuleProtocols.

Parameters:

protocols - the protocols value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withSourceAddresses

public AzureFirewallNetworkRule withSourceAddresses(List sourceAddresses)

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

Parameters:

sourceAddresses - the sourceAddresses value to set.

Returns:

the AzureFirewallNetworkRule object itself.

withSourceIpGroups

public AzureFirewallNetworkRule withSourceIpGroups(List sourceIpGroups)

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

Parameters:

sourceIpGroups - the sourceIpGroups value to set.

Returns:

the AzureFirewallNetworkRule object itself.

Applies to