FirewallPolicyInsights Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.FirewallPolicyInsights

Implements

public final class FirewallPolicyInsights
implements JsonSerializable<FirewallPolicyInsights>

Firewall Policy Insights.

Constructor Summary

Constructor Description
FirewallPolicyInsights()

Creates an instance of FirewallPolicyInsights class.

Method Summary

Modifier and Type Method and Description
static FirewallPolicyInsights fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicyInsights from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: A flag to indicate if the insights are enabled on the policy.

FirewallPolicyLogAnalyticsResources logAnalyticsResources()

Get the logAnalyticsResources property: Workspaces needed to configure the Firewall Policy Insights.

Integer retentionDays()

Get the retentionDays property: Number of days the insights should be enabled on the policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FirewallPolicyInsights withIsEnabled(Boolean isEnabled)

Set the isEnabled property: A flag to indicate if the insights are enabled on the policy.

FirewallPolicyInsights withLogAnalyticsResources(FirewallPolicyLogAnalyticsResources logAnalyticsResources)

Set the logAnalyticsResources property: Workspaces needed to configure the Firewall Policy Insights.

FirewallPolicyInsights withRetentionDays(Integer retentionDays)

Set the retentionDays property: Number of days the insights should be enabled on the policy.

Methods inherited from java.lang.Object

Constructor Details

FirewallPolicyInsights

public FirewallPolicyInsights()

Creates an instance of FirewallPolicyInsights class.

Method Details

fromJson

public static FirewallPolicyInsights fromJson(JsonReader jsonReader)

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.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: A flag to indicate if the insights are enabled on the policy.

Returns:

the isEnabled value.

logAnalyticsResources

public FirewallPolicyLogAnalyticsResources logAnalyticsResources()

Get the logAnalyticsResources property: Workspaces needed to configure the Firewall Policy Insights.

Returns:

the logAnalyticsResources value.

retentionDays

public Integer retentionDays()

Get the retentionDays property: Number of days the insights should be enabled on the policy.

Returns:

the retentionDays value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to