com.pulumi.azure.network.outputs.FirewallPolicyInsights Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.network.outputs;
import com.pulumi.azure.network.outputs.FirewallPolicyInsightsLogAnalyticsWorkspace;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FirewallPolicyInsights {
/**
* @return The ID of the default Log Analytics Workspace that the Firewalls associated with this Firewall Policy will send their logs to, when there is no location matches in the `log_analytics_workspace`.
*
*/
private String defaultLogAnalyticsWorkspaceId;
/**
* @return Whether the insights functionality is enabled for this Firewall Policy.
*
*/
private Boolean enabled;
/**
* @return A list of `log_analytics_workspace` block as defined below.
*
*/
private @Nullable List logAnalyticsWorkspaces;
/**
* @return The log retention period in days.
*
*/
private @Nullable Integer retentionInDays;
private FirewallPolicyInsights() {}
/**
* @return The ID of the default Log Analytics Workspace that the Firewalls associated with this Firewall Policy will send their logs to, when there is no location matches in the `log_analytics_workspace`.
*
*/
public String defaultLogAnalyticsWorkspaceId() {
return this.defaultLogAnalyticsWorkspaceId;
}
/**
* @return Whether the insights functionality is enabled for this Firewall Policy.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return A list of `log_analytics_workspace` block as defined below.
*
*/
public List logAnalyticsWorkspaces() {
return this.logAnalyticsWorkspaces == null ? List.of() : this.logAnalyticsWorkspaces;
}
/**
* @return The log retention period in days.
*
*/
public Optional retentionInDays() {
return Optional.ofNullable(this.retentionInDays);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FirewallPolicyInsights defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String defaultLogAnalyticsWorkspaceId;
private Boolean enabled;
private @Nullable List logAnalyticsWorkspaces;
private @Nullable Integer retentionInDays;
public Builder() {}
public Builder(FirewallPolicyInsights defaults) {
Objects.requireNonNull(defaults);
this.defaultLogAnalyticsWorkspaceId = defaults.defaultLogAnalyticsWorkspaceId;
this.enabled = defaults.enabled;
this.logAnalyticsWorkspaces = defaults.logAnalyticsWorkspaces;
this.retentionInDays = defaults.retentionInDays;
}
@CustomType.Setter
public Builder defaultLogAnalyticsWorkspaceId(String defaultLogAnalyticsWorkspaceId) {
if (defaultLogAnalyticsWorkspaceId == null) {
throw new MissingRequiredPropertyException("FirewallPolicyInsights", "defaultLogAnalyticsWorkspaceId");
}
this.defaultLogAnalyticsWorkspaceId = defaultLogAnalyticsWorkspaceId;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("FirewallPolicyInsights", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder logAnalyticsWorkspaces(@Nullable List logAnalyticsWorkspaces) {
this.logAnalyticsWorkspaces = logAnalyticsWorkspaces;
return this;
}
public Builder logAnalyticsWorkspaces(FirewallPolicyInsightsLogAnalyticsWorkspace... logAnalyticsWorkspaces) {
return logAnalyticsWorkspaces(List.of(logAnalyticsWorkspaces));
}
@CustomType.Setter
public Builder retentionInDays(@Nullable Integer retentionInDays) {
this.retentionInDays = retentionInDays;
return this;
}
public FirewallPolicyInsights build() {
final var _resultValue = new FirewallPolicyInsights();
_resultValue.defaultLogAnalyticsWorkspaceId = defaultLogAnalyticsWorkspaceId;
_resultValue.enabled = enabled;
_resultValue.logAnalyticsWorkspaces = logAnalyticsWorkspaces;
_resultValue.retentionInDays = retentionInDays;
return _resultValue;
}
}
}