sdk/java/src/main/java/com/pulumi/ovh/CloudProject/NetworkPrivateArgs.java
// *** 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.ovh.CloudProject;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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<String> name;

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

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

    /**
     * @return an array of valid OVHcloud public cloud region ID in which the network
     * will be available. Ex.: &#34;GRA1&#34;. Defaults to all public cloud regions.
     * 
     */
    public Optional<Output<List<String>>> 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<String> serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Output<String> 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<Integer> vlanId;

    /**
     * @return a vlan id to associate with the network.
     * Changing this value recreates the resource. Defaults to 0.
     * 
     */
    public Optional<Output<Integer>> 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<String> 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.: &#34;GRA1&#34;. Defaults to all public cloud regions.
         * 
         * @return builder
         * 
         */
        public Builder regions(@Nullable Output<List<String>> regions) {
            $.regions = regions;
            return this;
        }

        /**
         * @param regions an array of valid OVHcloud public cloud region ID in which the network
         * will be available. Ex.: &#34;GRA1&#34;. Defaults to all public cloud regions.
         * 
         * @return builder
         * 
         */
        public Builder regions(List<String> 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.: &#34;GRA1&#34;. 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<String> 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<Integer> 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() {
            $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null");
            return $;
        }
    }

}
