
com.pulumi.azurenative.network.outputs.PolicySettingsResponseLogScrubbing Maven / Gradle / Ivy
// *** 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.WebApplicationFirewallScrubbingRulesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PolicySettingsResponseLogScrubbing {
/**
* @return The rules that are applied to the logs for scrubbing.
*
*/
private @Nullable List scrubbingRules;
/**
* @return State of the log scrubbing config. Default value is Enabled.
*
*/
private @Nullable String state;
private PolicySettingsResponseLogScrubbing() {}
/**
* @return The rules that are applied to the logs for scrubbing.
*
*/
public List scrubbingRules() {
return this.scrubbingRules == null ? List.of() : this.scrubbingRules;
}
/**
* @return State of the log scrubbing config. Default value is Enabled.
*
*/
public Optional state() {
return Optional.ofNullable(this.state);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicySettingsResponseLogScrubbing defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List scrubbingRules;
private @Nullable String state;
public Builder() {}
public Builder(PolicySettingsResponseLogScrubbing defaults) {
Objects.requireNonNull(defaults);
this.scrubbingRules = defaults.scrubbingRules;
this.state = defaults.state;
}
@CustomType.Setter
public Builder scrubbingRules(@Nullable List scrubbingRules) {
this.scrubbingRules = scrubbingRules;
return this;
}
public Builder scrubbingRules(WebApplicationFirewallScrubbingRulesResponse... scrubbingRules) {
return scrubbingRules(List.of(scrubbingRules));
}
@CustomType.Setter
public Builder state(@Nullable String state) {
this.state = state;
return this;
}
public PolicySettingsResponseLogScrubbing build() {
final var _resultValue = new PolicySettingsResponseLogScrubbing();
_resultValue.scrubbingRules = scrubbingRules;
_resultValue.state = state;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy