AzureFirewallApplicationRule Class

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

Implements

public final class AzureFirewallApplicationRule
implements JsonSerializable<AzureFirewallApplicationRule>

Properties of an application rule.

Constructor Summary

Constructor Description
AzureFirewallApplicationRule()

Creates an instance of AzureFirewallApplicationRule class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the rule.

List<String> fqdnTags()

Get the fqdnTags property: List of FQDN Tags for this rule.

static AzureFirewallApplicationRule fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallApplicationRule from the JsonReader.

String name()

Get the name property: Name of the application rule.

List<AzureFirewallApplicationRuleProtocol> protocols()

Get the protocols property: Array of ApplicationRuleProtocols.

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.

List<String> targetFqdns()

Get the targetFqdns property: List of FQDNs for this rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureFirewallApplicationRule withDescription(String description)

Set the description property: Description of the rule.

AzureFirewallApplicationRule withFqdnTags(List<String> fqdnTags)

Set the fqdnTags property: List of FQDN Tags for this rule.

AzureFirewallApplicationRule withName(String name)

Set the name property: Name of the application rule.

AzureFirewallApplicationRule withProtocols(List<AzureFirewallApplicationRuleProtocol> protocols)

Set the protocols property: Array of ApplicationRuleProtocols.

AzureFirewallApplicationRule withSourceAddresses(List<String> sourceAddresses)

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

AzureFirewallApplicationRule withSourceIpGroups(List<String> sourceIpGroups)

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

AzureFirewallApplicationRule withTargetFqdns(List<String> targetFqdns)

Set the targetFqdns property: List of FQDNs for this rule.

Methods inherited from java.lang.Object

Constructor Details

AzureFirewallApplicationRule

public AzureFirewallApplicationRule()

Creates an instance of AzureFirewallApplicationRule class.

Method Details

description

public String description()

Get the description property: Description of the rule.

Returns:

the description value.

fqdnTags

public List fqdnTags()

Get the fqdnTags property: List of FQDN Tags for this rule.

Returns:

the fqdnTags value.

fromJson

public static AzureFirewallApplicationRule fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallApplicationRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the application rule.

Returns:

the name value.

protocols

public List protocols()

Get the protocols property: Array of ApplicationRuleProtocols.

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.

targetFqdns

public List targetFqdns()

Get the targetFqdns property: List of FQDNs for this rule.

Returns:

the targetFqdns value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public AzureFirewallApplicationRule withDescription(String description)

Set the description property: Description of the rule.

Parameters:

description - the description value to set.

Returns:

the AzureFirewallApplicationRule object itself.

withFqdnTags

public AzureFirewallApplicationRule withFqdnTags(List fqdnTags)

Set the fqdnTags property: List of FQDN Tags for this rule.

Parameters:

fqdnTags - the fqdnTags value to set.

Returns:

the AzureFirewallApplicationRule object itself.

withName

public AzureFirewallApplicationRule withName(String name)

Set the name property: Name of the application rule.

Parameters:

name - the name value to set.

Returns:

the AzureFirewallApplicationRule object itself.

withProtocols

public AzureFirewallApplicationRule withProtocols(List protocols)

Set the protocols property: Array of ApplicationRuleProtocols.

Parameters:

protocols - the protocols value to set.

Returns:

the AzureFirewallApplicationRule object itself.

withSourceAddresses

public AzureFirewallApplicationRule withSourceAddresses(List sourceAddresses)

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

Parameters:

sourceAddresses - the sourceAddresses value to set.

Returns:

the AzureFirewallApplicationRule object itself.

withSourceIpGroups

public AzureFirewallApplicationRule withSourceIpGroups(List sourceIpGroups)

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

Parameters:

sourceIpGroups - the sourceIpGroups value to set.

Returns:

the AzureFirewallApplicationRule object itself.

withTargetFqdns

public AzureFirewallApplicationRule withTargetFqdns(List targetFqdns)

Set the targetFqdns property: List of FQDNs for this rule.

Parameters:

targetFqdns - the targetFqdns value to set.

Returns:

the AzureFirewallApplicationRule object itself.

Applies to