com.pulumi.azurenative.network.outputs.FirewallPolicyInsightsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The newest version!
// *** 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.azurenative.network.outputs;
import com.pulumi.azurenative.network.outputs.FirewallPolicyLogAnalyticsResourcesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FirewallPolicyInsightsResponse {
/**
* @return A flag to indicate if the insights are enabled on the policy.
*
*/
private @Nullable Boolean isEnabled;
/**
* @return Workspaces needed to configure the Firewall Policy Insights.
*
*/
private @Nullable FirewallPolicyLogAnalyticsResourcesResponse logAnalyticsResources;
/**
* @return Number of days the insights should be enabled on the policy.
*
*/
private @Nullable Integer retentionDays;
private FirewallPolicyInsightsResponse() {}
/**
* @return A flag to indicate if the insights are enabled on the policy.
*
*/
public Optional isEnabled() {
return Optional.ofNullable(this.isEnabled);
}
/**
* @return Workspaces needed to configure the Firewall Policy Insights.
*
*/
public Optional logAnalyticsResources() {
return Optional.ofNullable(this.logAnalyticsResources);
}
/**
* @return Number of days the insights should be enabled on the policy.
*
*/
public Optional retentionDays() {
return Optional.ofNullable(this.retentionDays);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FirewallPolicyInsightsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean isEnabled;
private @Nullable FirewallPolicyLogAnalyticsResourcesResponse logAnalyticsResources;
private @Nullable Integer retentionDays;
public Builder() {}
public Builder(FirewallPolicyInsightsResponse defaults) {
Objects.requireNonNull(defaults);
this.isEnabled = defaults.isEnabled;
this.logAnalyticsResources = defaults.logAnalyticsResources;
this.retentionDays = defaults.retentionDays;
}
@CustomType.Setter
public Builder isEnabled(@Nullable Boolean isEnabled) {
this.isEnabled = isEnabled;
return this;
}
@CustomType.Setter
public Builder logAnalyticsResources(@Nullable FirewallPolicyLogAnalyticsResourcesResponse logAnalyticsResources) {
this.logAnalyticsResources = logAnalyticsResources;
return this;
}
@CustomType.Setter
public Builder retentionDays(@Nullable Integer retentionDays) {
this.retentionDays = retentionDays;
return this;
}
public FirewallPolicyInsightsResponse build() {
final var _resultValue = new FirewallPolicyInsightsResponse();
_resultValue.isEnabled = isEnabled;
_resultValue.logAnalyticsResources = logAnalyticsResources;
_resultValue.retentionDays = retentionDays;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy