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

com.pulumi.azurenative.cdn.inputs.ManagedRuleSetArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.cdn.inputs.ManagedRuleGroupOverrideArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines a managed rule set.
 * 
 */
public final class ManagedRuleSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedRuleSetArgs Empty = new ManagedRuleSetArgs();

    /**
     * Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
     * 
     */
    @Import(name="anomalyScore")
    private @Nullable Output anomalyScore;

    /**
     * @return Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
     * 
     */
    public Optional> anomalyScore() {
        return Optional.ofNullable(this.anomalyScore);
    }

    /**
     * Defines the rule overrides to apply to the rule set.
     * 
     */
    @Import(name="ruleGroupOverrides")
    private @Nullable Output> ruleGroupOverrides;

    /**
     * @return Defines the rule overrides to apply to the rule set.
     * 
     */
    public Optional>> ruleGroupOverrides() {
        return Optional.ofNullable(this.ruleGroupOverrides);
    }

    /**
     * Defines the rule set type to use.
     * 
     */
    @Import(name="ruleSetType", required=true)
    private Output ruleSetType;

    /**
     * @return Defines the rule set type to use.
     * 
     */
    public Output ruleSetType() {
        return this.ruleSetType;
    }

    /**
     * Defines the version of the rule set to use.
     * 
     */
    @Import(name="ruleSetVersion", required=true)
    private Output ruleSetVersion;

    /**
     * @return Defines the version of the rule set to use.
     * 
     */
    public Output ruleSetVersion() {
        return this.ruleSetVersion;
    }

    private ManagedRuleSetArgs() {}

    private ManagedRuleSetArgs(ManagedRuleSetArgs $) {
        this.anomalyScore = $.anomalyScore;
        this.ruleGroupOverrides = $.ruleGroupOverrides;
        this.ruleSetType = $.ruleSetType;
        this.ruleSetVersion = $.ruleSetVersion;
    }

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

    public static final class Builder {
        private ManagedRuleSetArgs $;

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

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

        /**
         * @param anomalyScore Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
         * 
         * @return builder
         * 
         */
        public Builder anomalyScore(@Nullable Output anomalyScore) {
            $.anomalyScore = anomalyScore;
            return this;
        }

        /**
         * @param anomalyScore Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
         * 
         * @return builder
         * 
         */
        public Builder anomalyScore(Integer anomalyScore) {
            return anomalyScore(Output.of(anomalyScore));
        }

        /**
         * @param ruleGroupOverrides Defines the rule overrides to apply to the rule set.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupOverrides(@Nullable Output> ruleGroupOverrides) {
            $.ruleGroupOverrides = ruleGroupOverrides;
            return this;
        }

        /**
         * @param ruleGroupOverrides Defines the rule overrides to apply to the rule set.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupOverrides(List ruleGroupOverrides) {
            return ruleGroupOverrides(Output.of(ruleGroupOverrides));
        }

        /**
         * @param ruleGroupOverrides Defines the rule overrides to apply to the rule set.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupOverrides(ManagedRuleGroupOverrideArgs... ruleGroupOverrides) {
            return ruleGroupOverrides(List.of(ruleGroupOverrides));
        }

        /**
         * @param ruleSetType Defines the rule set type to use.
         * 
         * @return builder
         * 
         */
        public Builder ruleSetType(Output ruleSetType) {
            $.ruleSetType = ruleSetType;
            return this;
        }

        /**
         * @param ruleSetType Defines the rule set type to use.
         * 
         * @return builder
         * 
         */
        public Builder ruleSetType(String ruleSetType) {
            return ruleSetType(Output.of(ruleSetType));
        }

        /**
         * @param ruleSetVersion Defines the version of the rule set to use.
         * 
         * @return builder
         * 
         */
        public Builder ruleSetVersion(Output ruleSetVersion) {
            $.ruleSetVersion = ruleSetVersion;
            return this;
        }

        /**
         * @param ruleSetVersion Defines the version of the rule set to use.
         * 
         * @return builder
         * 
         */
        public Builder ruleSetVersion(String ruleSetVersion) {
            return ruleSetVersion(Output.of(ruleSetVersion));
        }

        public ManagedRuleSetArgs build() {
            if ($.ruleSetType == null) {
                throw new MissingRequiredPropertyException("ManagedRuleSetArgs", "ruleSetType");
            }
            if ($.ruleSetVersion == null) {
                throw new MissingRequiredPropertyException("ManagedRuleSetArgs", "ruleSetVersion");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy