Class FirewallPolicyInsights

java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyInsights
All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyInsights>

public final class FirewallPolicyInsights extends Object implements com.azure.json.JsonSerializable<FirewallPolicyInsights>
Firewall Policy Insights.
  • Constructor Details

    • FirewallPolicyInsights

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

    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: A flag to indicate if the insights are enabled on the policy.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public FirewallPolicyInsights withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: A flag to indicate if the insights are enabled on the policy.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the FirewallPolicyInsights object itself.
    • retentionDays

      public Integer retentionDays()
      Get the retentionDays property: Number of days the insights should be enabled on the policy.
      Returns:
      the retentionDays value.
    • withRetentionDays

      public FirewallPolicyInsights withRetentionDays(Integer retentionDays)
      Set the retentionDays property: Number of days the insights should be enabled on the policy.
      Parameters:
      retentionDays - the retentionDays value to set.
      Returns:
      the FirewallPolicyInsights object itself.
    • logAnalyticsResources

      public FirewallPolicyLogAnalyticsResources logAnalyticsResources()
      Get the logAnalyticsResources property: Workspaces needed to configure the Firewall Policy Insights.
      Returns:
      the logAnalyticsResources value.
    • withLogAnalyticsResources

      public FirewallPolicyInsights withLogAnalyticsResources(FirewallPolicyLogAnalyticsResources logAnalyticsResources)
      Set the logAnalyticsResources property: Workspaces needed to configure the Firewall Policy Insights.
      Parameters:
      logAnalyticsResources - the logAnalyticsResources value to set.
      Returns:
      the FirewallPolicyInsights 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<FirewallPolicyInsights>
      Throws:
      IOException
    • fromJson

      public static FirewallPolicyInsights fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FirewallPolicyInsights from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FirewallPolicyInsights 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 FirewallPolicyInsights.