Class FirewallPolicyDraftProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.FirewallPolicyDraftProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyDraftProperties>
public final class FirewallPolicyDraftProperties
extends Object
implements com.azure.json.JsonSerializable<FirewallPolicyDraftProperties>
The FirewallPolicyDraftProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyDraftProperties class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the basePolicy property: The parent firewall policy from which rules are inherited.Get the dnsSettings property: DNS Proxy Settings definition.Get the explicitProxy property: Explicit Proxy Settings definition.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyDraftProperties from the JsonReader.insights()Get the insights property: Insights on Firewall Policy.Get the intrusionDetection property: The configuration for Intrusion detection.snat()Get the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT.sql()Get the sql property: SQL Settings definition.Get the threatIntelMode property: The operation mode for Threat Intelligence.Get the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBasePolicy(com.azure.core.management.SubResource basePolicy) Set the basePolicy property: The parent firewall policy from which rules are inherited.withDnsSettings(DnsSettings dnsSettings) Set the dnsSettings property: DNS Proxy Settings definition.withExplicitProxy(ExplicitProxy explicitProxy) Set the explicitProxy property: Explicit Proxy Settings definition.withInsights(FirewallPolicyInsights insights) Set the insights property: Insights on Firewall Policy.withIntrusionDetection(FirewallPolicyIntrusionDetection intrusionDetection) Set the intrusionDetection property: The configuration for Intrusion detection.withSnat(FirewallPolicySnat snat) Set the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT.withSql(FirewallPolicySql sql) Set the sql property: SQL Settings definition.withThreatIntelMode(AzureFirewallThreatIntelMode threatIntelMode) Set the threatIntelMode property: The operation mode for Threat Intelligence.withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist) Set the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy.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
-
FirewallPolicyDraftProperties
public FirewallPolicyDraftProperties()Creates an instance of FirewallPolicyDraftProperties class.
-
-
Method Details
-
basePolicy
public com.azure.core.management.SubResource basePolicy()Get the basePolicy property: The parent firewall policy from which rules are inherited.- Returns:
- the basePolicy value.
-
withBasePolicy
public FirewallPolicyDraftProperties withBasePolicy(com.azure.core.management.SubResource basePolicy) Set the basePolicy property: The parent firewall policy from which rules are inherited.- Parameters:
basePolicy- the basePolicy value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
threatIntelMode
Get the threatIntelMode property: The operation mode for Threat Intelligence.- Returns:
- the threatIntelMode value.
-
withThreatIntelMode
public FirewallPolicyDraftProperties withThreatIntelMode(AzureFirewallThreatIntelMode threatIntelMode) Set the threatIntelMode property: The operation mode for Threat Intelligence.- Parameters:
threatIntelMode- the threatIntelMode value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
threatIntelWhitelist
Get the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy.- Returns:
- the threatIntelWhitelist value.
-
withThreatIntelWhitelist
public FirewallPolicyDraftProperties withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist) Set the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy.- Parameters:
threatIntelWhitelist- the threatIntelWhitelist value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
insights
Get the insights property: Insights on Firewall Policy.- Returns:
- the insights value.
-
withInsights
Set the insights property: Insights on Firewall Policy.- Parameters:
insights- the insights value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
snat
Get the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT.- Returns:
- the snat value.
-
withSnat
Set the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT.- Parameters:
snat- the snat value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
sql
Get the sql property: SQL Settings definition.- Returns:
- the sql value.
-
withSql
Set the sql property: SQL Settings definition.- Parameters:
sql- the sql value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
dnsSettings
Get the dnsSettings property: DNS Proxy Settings definition.- Returns:
- the dnsSettings value.
-
withDnsSettings
Set the dnsSettings property: DNS Proxy Settings definition.- Parameters:
dnsSettings- the dnsSettings value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
explicitProxy
Get the explicitProxy property: Explicit Proxy Settings definition.- Returns:
- the explicitProxy value.
-
withExplicitProxy
Set the explicitProxy property: Explicit Proxy Settings definition.- Parameters:
explicitProxy- the explicitProxy value to set.- Returns:
- the FirewallPolicyDraftProperties object itself.
-
intrusionDetection
Get the intrusionDetection property: The configuration for Intrusion detection.- Returns:
- the intrusionDetection value.
-
withIntrusionDetection
public FirewallPolicyDraftProperties withIntrusionDetection(FirewallPolicyIntrusionDetection intrusionDetection) Set the intrusionDetection property: The configuration for Intrusion detection.- Parameters:
intrusionDetection- the intrusionDetection value to set.- Returns:
- the FirewallPolicyDraftProperties 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<FirewallPolicyDraftProperties>- Throws:
IOException
-
fromJson
public static FirewallPolicyDraftProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FirewallPolicyDraftProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FirewallPolicyDraftProperties 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 FirewallPolicyDraftProperties.
-