All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.network.inputs.PolicySettingsLogScrubbingArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show 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.inputs;

import com.pulumi.azurenative.network.enums.WebApplicationFirewallScrubbingState;
import com.pulumi.azurenative.network.inputs.WebApplicationFirewallScrubbingRulesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * To scrub sensitive log fields
 * 
 */
public final class PolicySettingsLogScrubbingArgs extends com.pulumi.resources.ResourceArgs {

    public static final PolicySettingsLogScrubbingArgs Empty = new PolicySettingsLogScrubbingArgs();

    /**
     * The rules that are applied to the logs for scrubbing.
     * 
     */
    @Import(name="scrubbingRules")
    private @Nullable Output> scrubbingRules;

    /**
     * @return The rules that are applied to the logs for scrubbing.
     * 
     */
    public Optional>> scrubbingRules() {
        return Optional.ofNullable(this.scrubbingRules);
    }

    /**
     * State of the log scrubbing config. Default value is Enabled.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return State of the log scrubbing config. Default value is Enabled.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    private PolicySettingsLogScrubbingArgs() {}

    private PolicySettingsLogScrubbingArgs(PolicySettingsLogScrubbingArgs $) {
        this.scrubbingRules = $.scrubbingRules;
        this.state = $.state;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PolicySettingsLogScrubbingArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PolicySettingsLogScrubbingArgs $;

        public Builder() {
            $ = new PolicySettingsLogScrubbingArgs();
        }

        public Builder(PolicySettingsLogScrubbingArgs defaults) {
            $ = new PolicySettingsLogScrubbingArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param scrubbingRules The rules that are applied to the logs for scrubbing.
         * 
         * @return builder
         * 
         */
        public Builder scrubbingRules(@Nullable Output> scrubbingRules) {
            $.scrubbingRules = scrubbingRules;
            return this;
        }

        /**
         * @param scrubbingRules The rules that are applied to the logs for scrubbing.
         * 
         * @return builder
         * 
         */
        public Builder scrubbingRules(List scrubbingRules) {
            return scrubbingRules(Output.of(scrubbingRules));
        }

        /**
         * @param scrubbingRules The rules that are applied to the logs for scrubbing.
         * 
         * @return builder
         * 
         */
        public Builder scrubbingRules(WebApplicationFirewallScrubbingRulesArgs... scrubbingRules) {
            return scrubbingRules(List.of(scrubbingRules));
        }

        /**
         * @param state State of the log scrubbing config. Default value is Enabled.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state State of the log scrubbing config. Default value is Enabled.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state State of the log scrubbing config. Default value is Enabled.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state State of the log scrubbing config. Default value is Enabled.
         * 
         * @return builder
         * 
         */
        public Builder state(WebApplicationFirewallScrubbingState state) {
            return state(Either.ofRight(state));
        }

        public PolicySettingsLogScrubbingArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy