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

com.pulumi.azurenative.security.inputs.AllowlistCustomAlertRuleArgs 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.security.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;


/**
 * A custom alert rule that checks if a value (depends on the custom alert type) is allowed.
 * 
 */
public final class AllowlistCustomAlertRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final AllowlistCustomAlertRuleArgs Empty = new AllowlistCustomAlertRuleArgs();

    /**
     * The values to allow. The format of the values depends on the rule type.
     * 
     */
    @Import(name="allowlistValues", required=true)
    private Output> allowlistValues;

    /**
     * @return The values to allow. The format of the values depends on the rule type.
     * 
     */
    public Output> allowlistValues() {
        return this.allowlistValues;
    }

    /**
     * Status of the custom alert.
     * 
     */
    @Import(name="isEnabled", required=true)
    private Output isEnabled;

    /**
     * @return Status of the custom alert.
     * 
     */
    public Output isEnabled() {
        return this.isEnabled;
    }

    /**
     * The type of the custom alert rule.
     * Expected value is 'AllowlistCustomAlertRule'.
     * 
     */
    @Import(name="ruleType", required=true)
    private Output ruleType;

    /**
     * @return The type of the custom alert rule.
     * Expected value is 'AllowlistCustomAlertRule'.
     * 
     */
    public Output ruleType() {
        return this.ruleType;
    }

    private AllowlistCustomAlertRuleArgs() {}

    private AllowlistCustomAlertRuleArgs(AllowlistCustomAlertRuleArgs $) {
        this.allowlistValues = $.allowlistValues;
        this.isEnabled = $.isEnabled;
        this.ruleType = $.ruleType;
    }

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

    public static final class Builder {
        private AllowlistCustomAlertRuleArgs $;

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

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

        /**
         * @param allowlistValues The values to allow. The format of the values depends on the rule type.
         * 
         * @return builder
         * 
         */
        public Builder allowlistValues(Output> allowlistValues) {
            $.allowlistValues = allowlistValues;
            return this;
        }

        /**
         * @param allowlistValues The values to allow. The format of the values depends on the rule type.
         * 
         * @return builder
         * 
         */
        public Builder allowlistValues(List allowlistValues) {
            return allowlistValues(Output.of(allowlistValues));
        }

        /**
         * @param allowlistValues The values to allow. The format of the values depends on the rule type.
         * 
         * @return builder
         * 
         */
        public Builder allowlistValues(String... allowlistValues) {
            return allowlistValues(List.of(allowlistValues));
        }

        /**
         * @param isEnabled Status of the custom alert.
         * 
         * @return builder
         * 
         */
        public Builder isEnabled(Output isEnabled) {
            $.isEnabled = isEnabled;
            return this;
        }

        /**
         * @param isEnabled Status of the custom alert.
         * 
         * @return builder
         * 
         */
        public Builder isEnabled(Boolean isEnabled) {
            return isEnabled(Output.of(isEnabled));
        }

        /**
         * @param ruleType The type of the custom alert rule.
         * Expected value is 'AllowlistCustomAlertRule'.
         * 
         * @return builder
         * 
         */
        public Builder ruleType(Output ruleType) {
            $.ruleType = ruleType;
            return this;
        }

        /**
         * @param ruleType The type of the custom alert rule.
         * Expected value is 'AllowlistCustomAlertRule'.
         * 
         * @return builder
         * 
         */
        public Builder ruleType(String ruleType) {
            return ruleType(Output.of(ruleType));
        }

        public AllowlistCustomAlertRuleArgs build() {
            if ($.allowlistValues == null) {
                throw new MissingRequiredPropertyException("AllowlistCustomAlertRuleArgs", "allowlistValues");
            }
            if ($.isEnabled == null) {
                throw new MissingRequiredPropertyException("AllowlistCustomAlertRuleArgs", "isEnabled");
            }
            $.ruleType = Codegen.stringProp("ruleType").output().arg($.ruleType).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy