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

com.pulumi.azurenative.network.inputs.ExclusionManagedRuleArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Defines a managed rule to use for exclusion.
 * 
 */
public final class ExclusionManagedRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExclusionManagedRuleArgs Empty = new ExclusionManagedRuleArgs();

    /**
     * Identifier for the managed rule.
     * 
     */
    @Import(name="ruleId", required=true)
    private Output ruleId;

    /**
     * @return Identifier for the managed rule.
     * 
     */
    public Output ruleId() {
        return this.ruleId;
    }

    private ExclusionManagedRuleArgs() {}

    private ExclusionManagedRuleArgs(ExclusionManagedRuleArgs $) {
        this.ruleId = $.ruleId;
    }

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

    public static final class Builder {
        private ExclusionManagedRuleArgs $;

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

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

        /**
         * @param ruleId Identifier for the managed rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleId(Output ruleId) {
            $.ruleId = ruleId;
            return this;
        }

        /**
         * @param ruleId Identifier for the managed rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleId(String ruleId) {
            return ruleId(Output.of(ruleId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy