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

com.pulumi.azure.network.inputs.FirewallPolicyDnsArgs 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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FirewallPolicyDnsArgs Empty = new FirewallPolicyDnsArgs();

    /**
     * Whether to enable DNS proxy on Firewalls attached to this Firewall Policy? Defaults to `false`.
     * 
     */
    @Import(name="proxyEnabled")
    private @Nullable Output proxyEnabled;

    /**
     * @return Whether to enable DNS proxy on Firewalls attached to this Firewall Policy? Defaults to `false`.
     * 
     */
    public Optional> proxyEnabled() {
        return Optional.ofNullable(this.proxyEnabled);
    }

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

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

    private FirewallPolicyDnsArgs() {}

    private FirewallPolicyDnsArgs(FirewallPolicyDnsArgs $) {
        this.proxyEnabled = $.proxyEnabled;
        this.servers = $.servers;
    }

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

    public static final class Builder {
        private FirewallPolicyDnsArgs $;

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

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

        /**
         * @param proxyEnabled Whether to enable DNS proxy on Firewalls attached to this Firewall Policy? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder proxyEnabled(@Nullable Output proxyEnabled) {
            $.proxyEnabled = proxyEnabled;
            return this;
        }

        /**
         * @param proxyEnabled Whether to enable DNS proxy on Firewalls attached to this Firewall Policy? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder proxyEnabled(Boolean proxyEnabled) {
            return proxyEnabled(Output.of(proxyEnabled));
        }

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

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

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

        public FirewallPolicyDnsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy