Class AzureFirewallApplicationRule
java.lang.Object
com.azure.resourcemanager.network.models.AzureFirewallApplicationRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFirewallApplicationRule>
public final class AzureFirewallApplicationRule
extends Object
implements com.azure.json.JsonSerializable<AzureFirewallApplicationRule>
Properties of an application rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureFirewallApplicationRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of the rule.fqdnTags()Get the fqdnTags property: List of FQDN Tags for this rule.static AzureFirewallApplicationRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFirewallApplicationRule from the JsonReader.name()Get the name property: Name of the application rule.Get the protocols property: Array of ApplicationRuleProtocols.Get the sourceAddresses property: List of source IP addresses for this rule.Get the sourceIpGroups property: List of source IpGroups for this rule.Get the targetFqdns property: List of FQDNs for this rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Description of the rule.withFqdnTags(List<String> fqdnTags) Set the fqdnTags property: List of FQDN Tags for this rule.Set the name property: Name of the application rule.withProtocols(List<AzureFirewallApplicationRuleProtocol> protocols) Set the protocols property: Array of ApplicationRuleProtocols.withSourceAddresses(List<String> sourceAddresses) Set the sourceAddresses property: List of source IP addresses for this rule.withSourceIpGroups(List<String> sourceIpGroups) Set the sourceIpGroups property: List of source IpGroups for this rule.withTargetFqdns(List<String> targetFqdns) Set the targetFqdns property: List of FQDNs for this rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureFirewallApplicationRule
public AzureFirewallApplicationRule()Creates an instance of AzureFirewallApplicationRule class.
-
-
Method Details
-
name
Get the name property: Name of the application rule.- Returns:
- the name value.
-
withName
Set the name property: Name of the application rule.- Parameters:
name- the name value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
description
Get the description property: Description of the rule.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the rule.- Parameters:
description- the description value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
sourceAddresses
Get the sourceAddresses property: List of source IP addresses for this rule.- Returns:
- the sourceAddresses value.
-
withSourceAddresses
Set the sourceAddresses property: List of source IP addresses for this rule.- Parameters:
sourceAddresses- the sourceAddresses value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
protocols
Get the protocols property: Array of ApplicationRuleProtocols.- Returns:
- the protocols value.
-
withProtocols
public AzureFirewallApplicationRule withProtocols(List<AzureFirewallApplicationRuleProtocol> protocols) Set the protocols property: Array of ApplicationRuleProtocols.- Parameters:
protocols- the protocols value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
targetFqdns
Get the targetFqdns property: List of FQDNs for this rule.- Returns:
- the targetFqdns value.
-
withTargetFqdns
Set the targetFqdns property: List of FQDNs for this rule.- Parameters:
targetFqdns- the targetFqdns value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
fqdnTags
Get the fqdnTags property: List of FQDN Tags for this rule.- Returns:
- the fqdnTags value.
-
withFqdnTags
Set the fqdnTags property: List of FQDN Tags for this rule.- Parameters:
fqdnTags- the fqdnTags value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
sourceIpGroups
Get the sourceIpGroups property: List of source IpGroups for this rule.- Returns:
- the sourceIpGroups value.
-
withSourceIpGroups
Set the sourceIpGroups property: List of source IpGroups for this rule.- Parameters:
sourceIpGroups- the sourceIpGroups value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureFirewallApplicationRule>- Throws:
IOException
-
fromJson
public static AzureFirewallApplicationRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-