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

com.ovhcloud.pulumi.ovh.CloudProject.NetworkPrivateArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProject;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class NetworkPrivateArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkPrivateArgs Empty = new NetworkPrivateArgs();

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

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

    /**
     * an array of valid OVHcloud public cloud region ID in which the network
     * will be available. Ex.: "GRA1". Defaults to all public cloud regions.
     * 
     */
    @Import(name="regions")
    private @Nullable Output> regions;

    /**
     * @return an array of valid OVHcloud public cloud region ID in which the network
     * will be available. Ex.: "GRA1". Defaults to all public cloud regions.
     * 
     */
    public Optional>> regions() {
        return Optional.ofNullable(this.regions);
    }

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * a vlan id to associate with the network.
     * Changing this value recreates the resource. Defaults to 0.
     * 
     */
    @Import(name="vlanId")
    private @Nullable Output vlanId;

    /**
     * @return a vlan id to associate with the network.
     * Changing this value recreates the resource. Defaults to 0.
     * 
     */
    public Optional> vlanId() {
        return Optional.ofNullable(this.vlanId);
    }

    private NetworkPrivateArgs() {}

    private NetworkPrivateArgs(NetworkPrivateArgs $) {
        this.name = $.name;
        this.regions = $.regions;
        this.serviceName = $.serviceName;
        this.vlanId = $.vlanId;
    }

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

    public static final class Builder {
        private NetworkPrivateArgs $;

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

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

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

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

        /**
         * @param regions an array of valid OVHcloud public cloud region ID in which the network
         * will be available. Ex.: "GRA1". Defaults to all public cloud regions.
         * 
         * @return builder
         * 
         */
        public Builder regions(@Nullable Output> regions) {
            $.regions = regions;
            return this;
        }

        /**
         * @param regions an array of valid OVHcloud public cloud region ID in which the network
         * will be available. Ex.: "GRA1". Defaults to all public cloud regions.
         * 
         * @return builder
         * 
         */
        public Builder regions(List regions) {
            return regions(Output.of(regions));
        }

        /**
         * @param regions an array of valid OVHcloud public cloud region ID in which the network
         * will be available. Ex.: "GRA1". Defaults to all public cloud regions.
         * 
         * @return builder
         * 
         */
        public Builder regions(String... regions) {
            return regions(List.of(regions));
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param vlanId a vlan id to associate with the network.
         * Changing this value recreates the resource. Defaults to 0.
         * 
         * @return builder
         * 
         */
        public Builder vlanId(@Nullable Output vlanId) {
            $.vlanId = vlanId;
            return this;
        }

        /**
         * @param vlanId a vlan id to associate with the network.
         * Changing this value recreates the resource. Defaults to 0.
         * 
         * @return builder
         * 
         */
        public Builder vlanId(Integer vlanId) {
            return vlanId(Output.of(vlanId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy