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

com.pulumi.azurenative.network.inputs.DhcpOptionsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.network.inputs;

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


/**
 * 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 final class DhcpOptionsArgs extends com.pulumi.resources.ResourceArgs {

    public static final DhcpOptionsArgs Empty = new DhcpOptionsArgs();

    /**
     * The list of DNS servers IP addresses.
     * 
     */
    @Import(name="dnsServers")
    private @Nullable Output> dnsServers;

    /**
     * @return The list of DNS servers IP addresses.
     * 
     */
    public Optional>> dnsServers() {
        return Optional.ofNullable(this.dnsServers);
    }

    private DhcpOptionsArgs() {}

    private DhcpOptionsArgs(DhcpOptionsArgs $) {
        this.dnsServers = $.dnsServers;
    }

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

    public static final class Builder {
        private DhcpOptionsArgs $;

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

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

        /**
         * @param dnsServers The list of DNS servers IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder dnsServers(@Nullable Output> dnsServers) {
            $.dnsServers = dnsServers;
            return this;
        }

        /**
         * @param dnsServers The list of DNS servers IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder dnsServers(List dnsServers) {
            return dnsServers(Output.of(dnsServers));
        }

        /**
         * @param dnsServers The list of DNS servers IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder dnsServers(String... dnsServers) {
            return dnsServers(List.of(dnsServers));
        }

        public DhcpOptionsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy