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

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

import com.pulumi.azurenative.network.enums.ConnectivityTopology;
import com.pulumi.azurenative.network.enums.DeleteExistingPeering;
import com.pulumi.azurenative.network.enums.IsGlobal;
import com.pulumi.azurenative.network.inputs.ConnectivityGroupItemArgs;
import com.pulumi.azurenative.network.inputs.HubArgs;
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 ConnectivityConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectivityConfigurationArgs Empty = new ConnectivityConfigurationArgs();

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

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

    /**
     * The name of the network manager connectivity configuration.
     * 
     */
    @Import(name="configurationName")
    private @Nullable Output configurationName;

    /**
     * @return The name of the network manager connectivity configuration.
     * 
     */
    public Optional> configurationName() {
        return Optional.ofNullable(this.configurationName);
    }

    /**
     * Connectivity topology type.
     * 
     */
    @Import(name="connectivityTopology", required=true)
    private Output> connectivityTopology;

    /**
     * @return Connectivity topology type.
     * 
     */
    public Output> connectivityTopology() {
        return this.connectivityTopology;
    }

    /**
     * Flag if need to remove current existing peerings.
     * 
     */
    @Import(name="deleteExistingPeering")
    private @Nullable Output> deleteExistingPeering;

    /**
     * @return Flag if need to remove current existing peerings.
     * 
     */
    public Optional>> deleteExistingPeering() {
        return Optional.ofNullable(this.deleteExistingPeering);
    }

    /**
     * A description of the connectivity configuration.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the connectivity configuration.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * List of hubItems
     * 
     */
    @Import(name="hubs")
    private @Nullable Output> hubs;

    /**
     * @return List of hubItems
     * 
     */
    public Optional>> hubs() {
        return Optional.ofNullable(this.hubs);
    }

    /**
     * Flag if global mesh is supported.
     * 
     */
    @Import(name="isGlobal")
    private @Nullable Output> isGlobal;

    /**
     * @return Flag if global mesh is supported.
     * 
     */
    public Optional>> isGlobal() {
        return Optional.ofNullable(this.isGlobal);
    }

    /**
     * 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.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

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

    private ConnectivityConfigurationArgs() {}

    private ConnectivityConfigurationArgs(ConnectivityConfigurationArgs $) {
        this.appliesToGroups = $.appliesToGroups;
        this.configurationName = $.configurationName;
        this.connectivityTopology = $.connectivityTopology;
        this.deleteExistingPeering = $.deleteExistingPeering;
        this.description = $.description;
        this.hubs = $.hubs;
        this.isGlobal = $.isGlobal;
        this.networkManagerName = $.networkManagerName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ConnectivityConfigurationArgs $;

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

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

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

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

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

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

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

        /**
         * @param connectivityTopology Connectivity topology type.
         * 
         * @return builder
         * 
         */
        public Builder connectivityTopology(Output> connectivityTopology) {
            $.connectivityTopology = connectivityTopology;
            return this;
        }

        /**
         * @param connectivityTopology Connectivity topology type.
         * 
         * @return builder
         * 
         */
        public Builder connectivityTopology(Either connectivityTopology) {
            return connectivityTopology(Output.of(connectivityTopology));
        }

        /**
         * @param connectivityTopology Connectivity topology type.
         * 
         * @return builder
         * 
         */
        public Builder connectivityTopology(String connectivityTopology) {
            return connectivityTopology(Either.ofLeft(connectivityTopology));
        }

        /**
         * @param connectivityTopology Connectivity topology type.
         * 
         * @return builder
         * 
         */
        public Builder connectivityTopology(ConnectivityTopology connectivityTopology) {
            return connectivityTopology(Either.ofRight(connectivityTopology));
        }

        /**
         * @param deleteExistingPeering Flag if need to remove current existing peerings.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingPeering(@Nullable Output> deleteExistingPeering) {
            $.deleteExistingPeering = deleteExistingPeering;
            return this;
        }

        /**
         * @param deleteExistingPeering Flag if need to remove current existing peerings.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingPeering(Either deleteExistingPeering) {
            return deleteExistingPeering(Output.of(deleteExistingPeering));
        }

        /**
         * @param deleteExistingPeering Flag if need to remove current existing peerings.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingPeering(String deleteExistingPeering) {
            return deleteExistingPeering(Either.ofLeft(deleteExistingPeering));
        }

        /**
         * @param deleteExistingPeering Flag if need to remove current existing peerings.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingPeering(DeleteExistingPeering deleteExistingPeering) {
            return deleteExistingPeering(Either.ofRight(deleteExistingPeering));
        }

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

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

        /**
         * @param hubs List of hubItems
         * 
         * @return builder
         * 
         */
        public Builder hubs(@Nullable Output> hubs) {
            $.hubs = hubs;
            return this;
        }

        /**
         * @param hubs List of hubItems
         * 
         * @return builder
         * 
         */
        public Builder hubs(List hubs) {
            return hubs(Output.of(hubs));
        }

        /**
         * @param hubs List of hubItems
         * 
         * @return builder
         * 
         */
        public Builder hubs(HubArgs... hubs) {
            return hubs(List.of(hubs));
        }

        /**
         * @param isGlobal Flag if global mesh is supported.
         * 
         * @return builder
         * 
         */
        public Builder isGlobal(@Nullable Output> isGlobal) {
            $.isGlobal = isGlobal;
            return this;
        }

        /**
         * @param isGlobal Flag if global mesh is supported.
         * 
         * @return builder
         * 
         */
        public Builder isGlobal(Either isGlobal) {
            return isGlobal(Output.of(isGlobal));
        }

        /**
         * @param isGlobal Flag if global mesh is supported.
         * 
         * @return builder
         * 
         */
        public Builder isGlobal(String isGlobal) {
            return isGlobal(Either.ofLeft(isGlobal));
        }

        /**
         * @param isGlobal Flag if global mesh is supported.
         * 
         * @return builder
         * 
         */
        public Builder isGlobal(IsGlobal isGlobal) {
            return isGlobal(Either.ofRight(isGlobal));
        }

        /**
         * @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.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

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

        public ConnectivityConfigurationArgs build() {
            if ($.appliesToGroups == null) {
                throw new MissingRequiredPropertyException("ConnectivityConfigurationArgs", "appliesToGroups");
            }
            if ($.connectivityTopology == null) {
                throw new MissingRequiredPropertyException("ConnectivityConfigurationArgs", "connectivityTopology");
            }
            if ($.networkManagerName == null) {
                throw new MissingRequiredPropertyException("ConnectivityConfigurationArgs", "networkManagerName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConnectivityConfigurationArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy