Class ApplicationRule
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyRule
com.azure.resourcemanager.network.models.ApplicationRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyRule>
Rule of type application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationAddresses property: List of destination IP addresses or Service Tags.fqdnTags()Get the fqdnTags property: List of FQDN Tags for this rule.static ApplicationRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationRule from the JsonReader.Get the httpHeadersToInsert property: List of HTTP/S headers to insert.Get the protocols property: Array of Application Protocols.ruleType()Get the ruleType property: Rule Type.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.Get the targetUrls property: List of Urls for this rule condition.Get the terminateTls property: Terminate TLS connections for this rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the webCategories property: List of destination azure web categories.withDescription(String description) Set the description property: Description of the rule.withDestinationAddresses(List<String> destinationAddresses) Set the destinationAddresses property: List of destination IP addresses or Service Tags.withFqdnTags(List<String> fqdnTags) Set the fqdnTags property: List of FQDN Tags for this rule.withHttpHeadersToInsert(List<FirewallPolicyHttpHeaderToInsert> httpHeadersToInsert) Set the httpHeadersToInsert property: List of HTTP/S headers to insert.Set the name property: Name of the rule.withProtocols(List<FirewallPolicyRuleApplicationProtocol> protocols) Set the protocols property: Array of Application Protocols.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.withTargetUrls(List<String> targetUrls) Set the targetUrls property: List of Urls for this rule condition.withTerminateTls(Boolean terminateTls) Set the terminateTls property: Terminate TLS connections for this rule.withWebCategories(List<String> webCategories) Set the webCategories property: List of destination azure web categories.Methods inherited from class com.azure.resourcemanager.network.models.FirewallPolicyRule
description, nameMethods 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
-
ApplicationRule
public ApplicationRule()Creates an instance of ApplicationRule class.
-
-
Method Details
-
ruleType
Get the ruleType property: Rule Type.- Overrides:
ruleTypein classFirewallPolicyRule- Returns:
- the ruleType value.
-
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 ApplicationRule object itself.
-
destinationAddresses
Get the destinationAddresses property: List of destination IP addresses or Service Tags.- Returns:
- the destinationAddresses value.
-
withDestinationAddresses
Set the destinationAddresses property: List of destination IP addresses or Service Tags.- Parameters:
destinationAddresses- the destinationAddresses value to set.- Returns:
- the ApplicationRule object itself.
-
protocols
Get the protocols property: Array of Application Protocols.- Returns:
- the protocols value.
-
withProtocols
Set the protocols property: Array of Application Protocols.- Parameters:
protocols- the protocols value to set.- Returns:
- the ApplicationRule 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 ApplicationRule object itself.
-
targetUrls
Get the targetUrls property: List of Urls for this rule condition.- Returns:
- the targetUrls value.
-
withTargetUrls
Set the targetUrls property: List of Urls for this rule condition.- Parameters:
targetUrls- the targetUrls value to set.- Returns:
- the ApplicationRule 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 ApplicationRule 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 ApplicationRule object itself.
-
terminateTls
Get the terminateTls property: Terminate TLS connections for this rule.- Returns:
- the terminateTls value.
-
withTerminateTls
Set the terminateTls property: Terminate TLS connections for this rule.- Parameters:
terminateTls- the terminateTls value to set.- Returns:
- the ApplicationRule object itself.
-
webCategories
Get the webCategories property: List of destination azure web categories.- Returns:
- the webCategories value.
-
withWebCategories
Set the webCategories property: List of destination azure web categories.- Parameters:
webCategories- the webCategories value to set.- Returns:
- the ApplicationRule object itself.
-
httpHeadersToInsert
Get the httpHeadersToInsert property: List of HTTP/S headers to insert.- Returns:
- the httpHeadersToInsert value.
-
withHttpHeadersToInsert
public ApplicationRule withHttpHeadersToInsert(List<FirewallPolicyHttpHeaderToInsert> httpHeadersToInsert) Set the httpHeadersToInsert property: List of HTTP/S headers to insert.- Parameters:
httpHeadersToInsert- the httpHeadersToInsert value to set.- Returns:
- the ApplicationRule object itself.
-
withName
Set the name property: Name of the rule.- Overrides:
withNamein classFirewallPolicyRule- Parameters:
name- the name value to set.- Returns:
- the FirewallPolicyRule object itself.
-
withDescription
Set the description property: Description of the rule.- Overrides:
withDescriptionin classFirewallPolicyRule- Parameters:
description- the description value to set.- Returns:
- the FirewallPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classFirewallPolicyRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FirewallPolicyRule>- Overrides:
toJsonin classFirewallPolicyRule- Throws:
IOException
-
fromJson
Reads an instance of ApplicationRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationRule 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 ApplicationRule.
-