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

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

import com.pulumi.azurenative.azurestackhci.enums.NetworkTypeEnum;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.azurestackhci.inputs.VirtualNetworkPropertiesDhcpOptionsArgs;
import com.pulumi.azurenative.azurestackhci.inputs.VirtualNetworkPropertiesSubnetsArgs;
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.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();

    /**
     * DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
     * 
     */
    @Import(name="dhcpOptions")
    private @Nullable Output dhcpOptions;

    /**
     * @return DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
     * 
     */
    public Optional> dhcpOptions() {
        return Optional.ofNullable(this.dhcpOptions);
    }

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

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

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Type of the network
     * 
     */
    @Import(name="networkType")
    private @Nullable Output> networkType;

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

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

    /**
     * Subnet - list of subnets under the virtual network
     * 
     */
    @Import(name="subnets")
    private @Nullable Output> subnets;

    /**
     * @return Subnet - list of subnets under the virtual network
     * 
     */
    public Optional>> subnets() {
        return Optional.ofNullable(this.subnets);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

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

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

    /**
     * name of the network switch to be used for VMs
     * 
     */
    @Import(name="vmSwitchName")
    private @Nullable Output vmSwitchName;

    /**
     * @return name of the network switch to be used for VMs
     * 
     */
    public Optional> vmSwitchName() {
        return Optional.ofNullable(this.vmSwitchName);
    }

    private VirtualNetworkArgs() {}

    private VirtualNetworkArgs(VirtualNetworkArgs $) {
        this.dhcpOptions = $.dhcpOptions;
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.networkType = $.networkType;
        this.resourceGroupName = $.resourceGroupName;
        this.subnets = $.subnets;
        this.tags = $.tags;
        this.virtualNetworkName = $.virtualNetworkName;
        this.vmSwitchName = $.vmSwitchName;
    }

    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 dhcpOptions DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
         * 
         * @return builder
         * 
         */
        public Builder dhcpOptions(@Nullable Output dhcpOptions) {
            $.dhcpOptions = dhcpOptions;
            return this;
        }

        /**
         * @param dhcpOptions DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
         * 
         * @return builder
         * 
         */
        public Builder dhcpOptions(VirtualNetworkPropertiesDhcpOptionsArgs dhcpOptions) {
            return dhcpOptions(Output.of(dhcpOptions));
        }

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

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

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

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

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

        /**
         * @param networkType Type of the network
         * 
         * @return builder
         * 
         */
        public Builder networkType(Either networkType) {
            return networkType(Output.of(networkType));
        }

        /**
         * @param networkType Type of the network
         * 
         * @return builder
         * 
         */
        public Builder networkType(String networkType) {
            return networkType(Either.ofLeft(networkType));
        }

        /**
         * @param networkType Type of the network
         * 
         * @return builder
         * 
         */
        public Builder networkType(NetworkTypeEnum networkType) {
            return networkType(Either.ofRight(networkType));
        }

        /**
         * @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 subnets Subnet - list of subnets under the virtual network
         * 
         * @return builder
         * 
         */
        public Builder subnets(@Nullable Output> subnets) {
            $.subnets = subnets;
            return this;
        }

        /**
         * @param subnets Subnet - list of subnets under the virtual network
         * 
         * @return builder
         * 
         */
        public Builder subnets(List subnets) {
            return subnets(Output.of(subnets));
        }

        /**
         * @param subnets Subnet - list of subnets under the virtual network
         * 
         * @return builder
         * 
         */
        public Builder subnets(VirtualNetworkPropertiesSubnetsArgs... subnets) {
            return subnets(List.of(subnets));
        }

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

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

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

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

        /**
         * @param vmSwitchName name of the network switch to be used for VMs
         * 
         * @return builder
         * 
         */
        public Builder vmSwitchName(@Nullable Output vmSwitchName) {
            $.vmSwitchName = vmSwitchName;
            return this;
        }

        /**
         * @param vmSwitchName name of the network switch to be used for VMs
         * 
         * @return builder
         * 
         */
        public Builder vmSwitchName(String vmSwitchName) {
            return vmSwitchName(Output.of(vmSwitchName));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy