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

com.pulumi.azurenative.azurestackhci.inputs.LogicalNetworkPropertiesDhcpOptionsArgs Maven / Gradle / Ivy

// *** 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.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 logical network. Standard DHCP option for a subnet overrides logical network DHCP options.
 * 
 */
public final class LogicalNetworkPropertiesDhcpOptionsArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogicalNetworkPropertiesDhcpOptionsArgs Empty = new LogicalNetworkPropertiesDhcpOptionsArgs();

    /**
     * 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 LogicalNetworkPropertiesDhcpOptionsArgs() {}

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

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

    public static final class Builder {
        private LogicalNetworkPropertiesDhcpOptionsArgs $;

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

        public Builder(LogicalNetworkPropertiesDhcpOptionsArgs defaults) {
            $ = new LogicalNetworkPropertiesDhcpOptionsArgs(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 LogicalNetworkPropertiesDhcpOptionsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy