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

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

import com.pulumi.azurenative.network.enums.DisableBgpRoutePropagation;
import com.pulumi.azurenative.network.inputs.NetworkManagerRoutingGroupItemArgs;
import com.pulumi.core.Either;
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 RoutingRuleCollectionArgs extends com.pulumi.resources.ResourceArgs {

    public static final RoutingRuleCollectionArgs Empty = new RoutingRuleCollectionArgs();

    /**
     * Groups for configuration
     * 
     */
    @Import(name="appliesTo", required=true)
    private Output> appliesTo;

    /**
     * @return Groups for configuration
     * 
     */
    public Output> appliesTo() {
        return this.appliesTo;
    }

    /**
     * The name of the network manager Routing Configuration.
     * 
     */
    @Import(name="configurationName", required=true)
    private Output configurationName;

    /**
     * @return The name of the network manager Routing Configuration.
     * 
     */
    public Output configurationName() {
        return this.configurationName;
    }

    /**
     * A description of the routing rule collection.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the routing rule collection.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Determines whether BGP route propagation is enabled. Defaults to true.
     * 
     */
    @Import(name="disableBgpRoutePropagation")
    private @Nullable Output> disableBgpRoutePropagation;

    /**
     * @return Determines whether BGP route propagation is enabled. Defaults to true.
     * 
     */
    public Optional>> disableBgpRoutePropagation() {
        return Optional.ofNullable(this.disableBgpRoutePropagation);
    }

    /**
     * The name of the network manager.
     * 
     */
    @Import(name="networkManagerName", required=true)
    private Output networkManagerName;

    /**
     * @return The name of the network manager.
     * 
     */
    public Output networkManagerName() {
        return this.networkManagerName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the network manager routing Configuration rule collection.
     * 
     */
    @Import(name="ruleCollectionName")
    private @Nullable Output ruleCollectionName;

    /**
     * @return The name of the network manager routing Configuration rule collection.
     * 
     */
    public Optional> ruleCollectionName() {
        return Optional.ofNullable(this.ruleCollectionName);
    }

    private RoutingRuleCollectionArgs() {}

    private RoutingRuleCollectionArgs(RoutingRuleCollectionArgs $) {
        this.appliesTo = $.appliesTo;
        this.configurationName = $.configurationName;
        this.description = $.description;
        this.disableBgpRoutePropagation = $.disableBgpRoutePropagation;
        this.networkManagerName = $.networkManagerName;
        this.resourceGroupName = $.resourceGroupName;
        this.ruleCollectionName = $.ruleCollectionName;
    }

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

    public static final class Builder {
        private RoutingRuleCollectionArgs $;

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

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

        /**
         * @param appliesTo Groups for configuration
         * 
         * @return builder
         * 
         */
        public Builder appliesTo(Output> appliesTo) {
            $.appliesTo = appliesTo;
            return this;
        }

        /**
         * @param appliesTo Groups for configuration
         * 
         * @return builder
         * 
         */
        public Builder appliesTo(List appliesTo) {
            return appliesTo(Output.of(appliesTo));
        }

        /**
         * @param appliesTo Groups for configuration
         * 
         * @return builder
         * 
         */
        public Builder appliesTo(NetworkManagerRoutingGroupItemArgs... appliesTo) {
            return appliesTo(List.of(appliesTo));
        }

        /**
         * @param configurationName The name of the network manager Routing Configuration.
         * 
         * @return builder
         * 
         */
        public Builder configurationName(Output configurationName) {
            $.configurationName = configurationName;
            return this;
        }

        /**
         * @param configurationName The name of the network manager Routing Configuration.
         * 
         * @return builder
         * 
         */
        public Builder configurationName(String configurationName) {
            return configurationName(Output.of(configurationName));
        }

        /**
         * @param description A description of the routing rule collection.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of the routing rule collection.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param disableBgpRoutePropagation Determines whether BGP route propagation is enabled. Defaults to true.
         * 
         * @return builder
         * 
         */
        public Builder disableBgpRoutePropagation(@Nullable Output> disableBgpRoutePropagation) {
            $.disableBgpRoutePropagation = disableBgpRoutePropagation;
            return this;
        }

        /**
         * @param disableBgpRoutePropagation Determines whether BGP route propagation is enabled. Defaults to true.
         * 
         * @return builder
         * 
         */
        public Builder disableBgpRoutePropagation(Either disableBgpRoutePropagation) {
            return disableBgpRoutePropagation(Output.of(disableBgpRoutePropagation));
        }

        /**
         * @param disableBgpRoutePropagation Determines whether BGP route propagation is enabled. Defaults to true.
         * 
         * @return builder
         * 
         */
        public Builder disableBgpRoutePropagation(String disableBgpRoutePropagation) {
            return disableBgpRoutePropagation(Either.ofLeft(disableBgpRoutePropagation));
        }

        /**
         * @param disableBgpRoutePropagation Determines whether BGP route propagation is enabled. Defaults to true.
         * 
         * @return builder
         * 
         */
        public Builder disableBgpRoutePropagation(DisableBgpRoutePropagation disableBgpRoutePropagation) {
            return disableBgpRoutePropagation(Either.ofRight(disableBgpRoutePropagation));
        }

        /**
         * @param networkManagerName The name of the network manager.
         * 
         * @return builder
         * 
         */
        public Builder networkManagerName(Output networkManagerName) {
            $.networkManagerName = networkManagerName;
            return this;
        }

        /**
         * @param networkManagerName The name of the network manager.
         * 
         * @return builder
         * 
         */
        public Builder networkManagerName(String networkManagerName) {
            return networkManagerName(Output.of(networkManagerName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param ruleCollectionName The name of the network manager routing Configuration rule collection.
         * 
         * @return builder
         * 
         */
        public Builder ruleCollectionName(@Nullable Output ruleCollectionName) {
            $.ruleCollectionName = ruleCollectionName;
            return this;
        }

        /**
         * @param ruleCollectionName The name of the network manager routing Configuration rule collection.
         * 
         * @return builder
         * 
         */
        public Builder ruleCollectionName(String ruleCollectionName) {
            return ruleCollectionName(Output.of(ruleCollectionName));
        }

        public RoutingRuleCollectionArgs build() {
            if ($.appliesTo == null) {
                throw new MissingRequiredPropertyException("RoutingRuleCollectionArgs", "appliesTo");
            }
            if ($.configurationName == null) {
                throw new MissingRequiredPropertyException("RoutingRuleCollectionArgs", "configurationName");
            }
            if ($.networkManagerName == null) {
                throw new MissingRequiredPropertyException("RoutingRuleCollectionArgs", "networkManagerName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RoutingRuleCollectionArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy