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

com.pulumi.azure.network.inputs.VirtualNetworkDnsServersState 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.azure.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;


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

    public static final VirtualNetworkDnsServersState Empty = new VirtualNetworkDnsServersState();

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

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

    /**
     * The ID of the Virtual Network that should be linked to the DNS Zone. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="virtualNetworkId")
    private @Nullable Output virtualNetworkId;

    /**
     * @return The ID of the Virtual Network that should be linked to the DNS Zone. Changing this forces a new resource to be created.
     * 
     */
    public Optional> virtualNetworkId() {
        return Optional.ofNullable(this.virtualNetworkId);
    }

    private VirtualNetworkDnsServersState() {}

    private VirtualNetworkDnsServersState(VirtualNetworkDnsServersState $) {
        this.dnsServers = $.dnsServers;
        this.virtualNetworkId = $.virtualNetworkId;
    }

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

    public static final class Builder {
        private VirtualNetworkDnsServersState $;

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

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

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

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

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

        /**
         * @param virtualNetworkId The ID of the Virtual Network that should be linked to the DNS Zone. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkId(@Nullable Output virtualNetworkId) {
            $.virtualNetworkId = virtualNetworkId;
            return this;
        }

        /**
         * @param virtualNetworkId The ID of the Virtual Network that should be linked to the DNS Zone. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkId(String virtualNetworkId) {
            return virtualNetworkId(Output.of(virtualNetworkId));
        }

        public VirtualNetworkDnsServersState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy