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

com.pulumi.azurenative.network.outputs.WebApplicationFirewallScrubbingRulesResponse 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class WebApplicationFirewallScrubbingRulesResponse {
    /**
     * @return The variable to be scrubbed from the logs.
     * 
     */
    private String matchVariable;
    /**
     * @return When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.
     * 
     */
    private @Nullable String selector;
    /**
     * @return When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.
     * 
     */
    private String selectorMatchOperator;
    /**
     * @return Defines the state of log scrubbing rule. Default value is Enabled.
     * 
     */
    private @Nullable String state;

    private WebApplicationFirewallScrubbingRulesResponse() {}
    /**
     * @return The variable to be scrubbed from the logs.
     * 
     */
    public String matchVariable() {
        return this.matchVariable;
    }
    /**
     * @return When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.
     * 
     */
    public Optional selector() {
        return Optional.ofNullable(this.selector);
    }
    /**
     * @return When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.
     * 
     */
    public String selectorMatchOperator() {
        return this.selectorMatchOperator;
    }
    /**
     * @return Defines the state of log scrubbing rule. Default value is Enabled.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }

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

    public static Builder builder(WebApplicationFirewallScrubbingRulesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String matchVariable;
        private @Nullable String selector;
        private String selectorMatchOperator;
        private @Nullable String state;
        public Builder() {}
        public Builder(WebApplicationFirewallScrubbingRulesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.matchVariable = defaults.matchVariable;
    	      this.selector = defaults.selector;
    	      this.selectorMatchOperator = defaults.selectorMatchOperator;
    	      this.state = defaults.state;
        }

        @CustomType.Setter
        public Builder matchVariable(String matchVariable) {
            if (matchVariable == null) {
              throw new MissingRequiredPropertyException("WebApplicationFirewallScrubbingRulesResponse", "matchVariable");
            }
            this.matchVariable = matchVariable;
            return this;
        }
        @CustomType.Setter
        public Builder selector(@Nullable String selector) {

            this.selector = selector;
            return this;
        }
        @CustomType.Setter
        public Builder selectorMatchOperator(String selectorMatchOperator) {
            if (selectorMatchOperator == null) {
              throw new MissingRequiredPropertyException("WebApplicationFirewallScrubbingRulesResponse", "selectorMatchOperator");
            }
            this.selectorMatchOperator = selectorMatchOperator;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

            this.state = state;
            return this;
        }
        public WebApplicationFirewallScrubbingRulesResponse build() {
            final var _resultValue = new WebApplicationFirewallScrubbingRulesResponse();
            _resultValue.matchVariable = matchVariable;
            _resultValue.selector = selector;
            _resultValue.selectorMatchOperator = selectorMatchOperator;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy