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

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

import com.pulumi.azurenative.network.inputs.RulesEngineRuleArgs;
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 RulesEngineArgs extends com.pulumi.resources.ResourceArgs {

    public static final RulesEngineArgs Empty = new RulesEngineArgs();

    /**
     * Name of the Front Door which is globally unique.
     * 
     */
    @Import(name="frontDoorName", required=true)
    private Output frontDoorName;

    /**
     * @return Name of the Front Door which is globally unique.
     * 
     */
    public Output frontDoorName() {
        return this.frontDoorName;
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * A list of rules that define a particular Rules Engine Configuration.
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return A list of rules that define a particular Rules Engine Configuration.
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    /**
     * Name of the Rules Engine which is unique within the Front Door.
     * 
     */
    @Import(name="rulesEngineName")
    private @Nullable Output rulesEngineName;

    /**
     * @return Name of the Rules Engine which is unique within the Front Door.
     * 
     */
    public Optional> rulesEngineName() {
        return Optional.ofNullable(this.rulesEngineName);
    }

    private RulesEngineArgs() {}

    private RulesEngineArgs(RulesEngineArgs $) {
        this.frontDoorName = $.frontDoorName;
        this.resourceGroupName = $.resourceGroupName;
        this.rules = $.rules;
        this.rulesEngineName = $.rulesEngineName;
    }

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

    public static final class Builder {
        private RulesEngineArgs $;

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

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

        /**
         * @param frontDoorName Name of the Front Door which is globally unique.
         * 
         * @return builder
         * 
         */
        public Builder frontDoorName(Output frontDoorName) {
            $.frontDoorName = frontDoorName;
            return this;
        }

        /**
         * @param frontDoorName Name of the Front Door which is globally unique.
         * 
         * @return builder
         * 
         */
        public Builder frontDoorName(String frontDoorName) {
            return frontDoorName(Output.of(frontDoorName));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param rules A list of rules that define a particular Rules Engine Configuration.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules A list of rules that define a particular Rules Engine Configuration.
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules A list of rules that define a particular Rules Engine Configuration.
         * 
         * @return builder
         * 
         */
        public Builder rules(RulesEngineRuleArgs... rules) {
            return rules(List.of(rules));
        }

        /**
         * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.
         * 
         * @return builder
         * 
         */
        public Builder rulesEngineName(@Nullable Output rulesEngineName) {
            $.rulesEngineName = rulesEngineName;
            return this;
        }

        /**
         * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.
         * 
         * @return builder
         * 
         */
        public Builder rulesEngineName(String rulesEngineName) {
            return rulesEngineName(Output.of(rulesEngineName));
        }

        public RulesEngineArgs build() {
            if ($.frontDoorName == null) {
                throw new MissingRequiredPropertyException("RulesEngineArgs", "frontDoorName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RulesEngineArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy