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 Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyInsights class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FirewallPolicyInsightsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyInsights from the JsonReader.Get the isEnabled property: A flag to indicate if the insights are enabled on the policy.Get the logAnalyticsResources property: Workspaces needed to configure the Firewall Policy Insights.Get the retentionDays property: Number of days the insights should be enabled on the policy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsEnabled(Boolean isEnabled) Set the isEnabled property: A flag to indicate if the insights are enabled on the policy.withLogAnalyticsResources(FirewallPolicyLogAnalyticsResources logAnalyticsResources) Set the logAnalyticsResources property: Workspaces needed to configure the Firewall Policy Insights.withRetentionDays(Integer retentionDays) Set the retentionDays property: Number of days the insights should be enabled on the 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
-
FirewallPolicyInsights
public FirewallPolicyInsights()Creates an instance of FirewallPolicyInsights class.
-
-
Method Details
-
isEnabled
Get the isEnabled property: A flag to indicate if the insights are enabled on the policy.- Returns:
- the isEnabled value.
-
withIsEnabled
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
Get the retentionDays property: Number of days the insights should be enabled on the policy.- Returns:
- the retentionDays value.
-
withRetentionDays
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
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
- Specified by:
toJsonin interfacecom.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.
-