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

com.pulumi.azurenative.devtestlab.VirtualNetworkArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.devtestlab;

import com.pulumi.azurenative.devtestlab.inputs.SubnetArgs;
import com.pulumi.azurenative.devtestlab.inputs.SubnetOverrideArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualNetworkArgs Empty = new VirtualNetworkArgs();

    /**
     * The allowed subnets of the virtual network.
     * 
     */
    @Import(name="allowedSubnets")
    private @Nullable Output> allowedSubnets;

    /**
     * @return The allowed subnets of the virtual network.
     * 
     */
    public Optional>> allowedSubnets() {
        return Optional.ofNullable(this.allowedSubnets);
    }

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

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

    /**
     * The Microsoft.Network resource identifier of the virtual network.
     * 
     */
    @Import(name="externalProviderResourceId")
    private @Nullable Output externalProviderResourceId;

    /**
     * @return The Microsoft.Network resource identifier of the virtual network.
     * 
     */
    public Optional> externalProviderResourceId() {
        return Optional.ofNullable(this.externalProviderResourceId);
    }

    /**
     * The name of the lab.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the lab.
     * 
     */
    public Output labName() {
        return this.labName;
    }

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

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

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

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

    /**
     * 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;
    }

    /**
     * The subnet overrides of the virtual network.
     * 
     */
    @Import(name="subnetOverrides")
    private @Nullable Output> subnetOverrides;

    /**
     * @return The subnet overrides of the virtual network.
     * 
     */
    public Optional>> subnetOverrides() {
        return Optional.ofNullable(this.subnetOverrides);
    }

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

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

    private VirtualNetworkArgs() {}

    private VirtualNetworkArgs(VirtualNetworkArgs $) {
        this.allowedSubnets = $.allowedSubnets;
        this.description = $.description;
        this.externalProviderResourceId = $.externalProviderResourceId;
        this.labName = $.labName;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.subnetOverrides = $.subnetOverrides;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private VirtualNetworkArgs $;

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

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

        /**
         * @param allowedSubnets The allowed subnets of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder allowedSubnets(@Nullable Output> allowedSubnets) {
            $.allowedSubnets = allowedSubnets;
            return this;
        }

        /**
         * @param allowedSubnets The allowed subnets of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder allowedSubnets(List allowedSubnets) {
            return allowedSubnets(Output.of(allowedSubnets));
        }

        /**
         * @param allowedSubnets The allowed subnets of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder allowedSubnets(SubnetArgs... allowedSubnets) {
            return allowedSubnets(List.of(allowedSubnets));
        }

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

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

        /**
         * @param externalProviderResourceId The Microsoft.Network resource identifier of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder externalProviderResourceId(@Nullable Output externalProviderResourceId) {
            $.externalProviderResourceId = externalProviderResourceId;
            return this;
        }

        /**
         * @param externalProviderResourceId The Microsoft.Network resource identifier of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder externalProviderResourceId(String externalProviderResourceId) {
            return externalProviderResourceId(Output.of(externalProviderResourceId));
        }

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

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

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

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

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

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

        /**
         * @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));
        }

        /**
         * @param subnetOverrides The subnet overrides of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder subnetOverrides(@Nullable Output> subnetOverrides) {
            $.subnetOverrides = subnetOverrides;
            return this;
        }

        /**
         * @param subnetOverrides The subnet overrides of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder subnetOverrides(List subnetOverrides) {
            return subnetOverrides(Output.of(subnetOverrides));
        }

        /**
         * @param subnetOverrides The subnet overrides of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder subnetOverrides(SubnetOverrideArgs... subnetOverrides) {
            return subnetOverrides(List.of(subnetOverrides));
        }

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

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy