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

com.pulumi.azure.waf.inputs.PolicyManagedRulesManagedRuleSetArgs 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.azure.waf.inputs;

import com.pulumi.azure.waf.inputs.PolicyManagedRulesManagedRuleSetRuleGroupOverrideArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class PolicyManagedRulesManagedRuleSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final PolicyManagedRulesManagedRuleSetArgs Empty = new PolicyManagedRulesManagedRuleSetArgs();

    /**
     * One or more `rule_group_override` block defined below.
     * 
     */
    @Import(name="ruleGroupOverrides")
    private @Nullable Output> ruleGroupOverrides;

    /**
     * @return One or more `rule_group_override` block defined below.
     * 
     */
    public Optional>> ruleGroupOverrides() {
        return Optional.ofNullable(this.ruleGroupOverrides);
    }

    /**
     * The rule set type. Possible values: `Microsoft_BotManagerRuleSet`, `Microsoft_DefaultRuleSet` and `OWASP`. Defaults to `OWASP`.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The rule set type. Possible values: `Microsoft_BotManagerRuleSet`, `Microsoft_DefaultRuleSet` and `OWASP`. Defaults to `OWASP`.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * The rule set version. Possible values: `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`.
     * 
     */
    @Import(name="version", required=true)
    private Output version;

    /**
     * @return The rule set version. Possible values: `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`.
     * 
     */
    public Output version() {
        return this.version;
    }

    private PolicyManagedRulesManagedRuleSetArgs() {}

    private PolicyManagedRulesManagedRuleSetArgs(PolicyManagedRulesManagedRuleSetArgs $) {
        this.ruleGroupOverrides = $.ruleGroupOverrides;
        this.type = $.type;
        this.version = $.version;
    }

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

    public static final class Builder {
        private PolicyManagedRulesManagedRuleSetArgs $;

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

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

        /**
         * @param ruleGroupOverrides One or more `rule_group_override` block defined below.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupOverrides(@Nullable Output> ruleGroupOverrides) {
            $.ruleGroupOverrides = ruleGroupOverrides;
            return this;
        }

        /**
         * @param ruleGroupOverrides One or more `rule_group_override` block defined below.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupOverrides(List ruleGroupOverrides) {
            return ruleGroupOverrides(Output.of(ruleGroupOverrides));
        }

        /**
         * @param ruleGroupOverrides One or more `rule_group_override` block defined below.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupOverrides(PolicyManagedRulesManagedRuleSetRuleGroupOverrideArgs... ruleGroupOverrides) {
            return ruleGroupOverrides(List.of(ruleGroupOverrides));
        }

        /**
         * @param type The rule set type. Possible values: `Microsoft_BotManagerRuleSet`, `Microsoft_DefaultRuleSet` and `OWASP`. Defaults to `OWASP`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The rule set type. Possible values: `Microsoft_BotManagerRuleSet`, `Microsoft_DefaultRuleSet` and `OWASP`. Defaults to `OWASP`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param version The rule set version. Possible values: `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`.
         * 
         * @return builder
         * 
         */
        public Builder version(Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The rule set version. Possible values: `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public PolicyManagedRulesManagedRuleSetArgs build() {
            if ($.version == null) {
                throw new MissingRequiredPropertyException("PolicyManagedRulesManagedRuleSetArgs", "version");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy