Class FirewallPolicyDraftInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.FirewallPolicyDraftInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class FirewallPolicyDraftInner extends com.azure.core.management.Resource
FirewallPolicy Resource.
  • Constructor Details

    • FirewallPolicyDraftInner

      public FirewallPolicyDraftInner()
      Creates an instance of FirewallPolicyDraftInner class.
  • Method Details

    • id

      public String id()
      Get the id property: Resource ID.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • withId

      public FirewallPolicyDraftInner withId(String id)
      Set the id property: Resource ID.
      Parameters:
      id - the id value to set.
      Returns:
      the FirewallPolicyDraftInner object itself.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • withLocation

      public FirewallPolicyDraftInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public FirewallPolicyDraftInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • 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 FirewallPolicyDraftInner 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 FirewallPolicyDraftInner object itself.
    • threatIntelMode

      public AzureFirewallThreatIntelMode threatIntelMode()
      Get the threatIntelMode property: The operation mode for Threat Intelligence.
      Returns:
      the threatIntelMode value.
    • withThreatIntelMode

      public FirewallPolicyDraftInner withThreatIntelMode(AzureFirewallThreatIntelMode threatIntelMode)
      Set the threatIntelMode property: The operation mode for Threat Intelligence.
      Parameters:
      threatIntelMode - the threatIntelMode value to set.
      Returns:
      the FirewallPolicyDraftInner object itself.
    • threatIntelWhitelist

      public FirewallPolicyThreatIntelWhitelist threatIntelWhitelist()
      Get the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy.
      Returns:
      the threatIntelWhitelist value.
    • withThreatIntelWhitelist

      public FirewallPolicyDraftInner withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist)
      Set the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy.
      Parameters:
      threatIntelWhitelist - the threatIntelWhitelist value to set.
      Returns:
      the FirewallPolicyDraftInner object itself.
    • insights

      public FirewallPolicyInsights insights()
      Get the insights property: Insights on Firewall Policy.
      Returns:
      the insights value.
    • withInsights

      public FirewallPolicyDraftInner withInsights(FirewallPolicyInsights insights)
      Set the insights property: Insights on Firewall Policy.
      Parameters:
      insights - the insights value to set.
      Returns:
      the FirewallPolicyDraftInner object itself.
    • snat

      public FirewallPolicySnat 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 FirewallPolicyDraftInner object itself.
    • sql

      public FirewallPolicySql 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 FirewallPolicyDraftInner object itself.
    • dnsSettings

      public DnsSettings dnsSettings()
      Get the dnsSettings property: DNS Proxy Settings definition.
      Returns:
      the dnsSettings value.
    • withDnsSettings

      public FirewallPolicyDraftInner withDnsSettings(DnsSettings dnsSettings)
      Set the dnsSettings property: DNS Proxy Settings definition.
      Parameters:
      dnsSettings - the dnsSettings value to set.
      Returns:
      the FirewallPolicyDraftInner object itself.
    • explicitProxy

      public ExplicitProxy explicitProxy()
      Get the explicitProxy property: Explicit Proxy Settings definition.
      Returns:
      the explicitProxy value.
    • withExplicitProxy

      public FirewallPolicyDraftInner withExplicitProxy(ExplicitProxy explicitProxy)
      Set the explicitProxy property: Explicit Proxy Settings definition.
      Parameters:
      explicitProxy - the explicitProxy value to set.
      Returns:
      the FirewallPolicyDraftInner object itself.
    • intrusionDetection

      public FirewallPolicyIntrusionDetection intrusionDetection()
      Get the intrusionDetection property: The configuration for Intrusion detection.
      Returns:
      the intrusionDetection value.
    • withIntrusionDetection

      public FirewallPolicyDraftInner withIntrusionDetection(FirewallPolicyIntrusionDetection intrusionDetection)
      Set the intrusionDetection property: The configuration for Intrusion detection.
      Parameters:
      intrusionDetection - the intrusionDetection value to set.
      Returns:
      the FirewallPolicyDraftInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

      public static FirewallPolicyDraftInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FirewallPolicyDraftInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FirewallPolicyDraftInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the FirewallPolicyDraftInner.