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

com.pulumi.azurenative.cloudngfw.outputs.DNSSettingsResponse 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.cloudngfw.outputs;

import com.pulumi.azurenative.cloudngfw.outputs.IPAddressResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DNSSettingsResponse {
    /**
     * @return List of IPs associated with the Firewall
     * 
     */
    private @Nullable List dnsServers;
    /**
     * @return Enable DNS proxy, disabled by default
     * 
     */
    private @Nullable String enableDnsProxy;
    /**
     * @return Enabled DNS proxy type, disabled by default
     * 
     */
    private @Nullable String enabledDnsType;

    private DNSSettingsResponse() {}
    /**
     * @return List of IPs associated with the Firewall
     * 
     */
    public List dnsServers() {
        return this.dnsServers == null ? List.of() : this.dnsServers;
    }
    /**
     * @return Enable DNS proxy, disabled by default
     * 
     */
    public Optional enableDnsProxy() {
        return Optional.ofNullable(this.enableDnsProxy);
    }
    /**
     * @return Enabled DNS proxy type, disabled by default
     * 
     */
    public Optional enabledDnsType() {
        return Optional.ofNullable(this.enabledDnsType);
    }

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

    public static Builder builder(DNSSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List dnsServers;
        private @Nullable String enableDnsProxy;
        private @Nullable String enabledDnsType;
        public Builder() {}
        public Builder(DNSSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dnsServers = defaults.dnsServers;
    	      this.enableDnsProxy = defaults.enableDnsProxy;
    	      this.enabledDnsType = defaults.enabledDnsType;
        }

        @CustomType.Setter
        public Builder dnsServers(@Nullable List dnsServers) {

            this.dnsServers = dnsServers;
            return this;
        }
        public Builder dnsServers(IPAddressResponse... dnsServers) {
            return dnsServers(List.of(dnsServers));
        }
        @CustomType.Setter
        public Builder enableDnsProxy(@Nullable String enableDnsProxy) {

            this.enableDnsProxy = enableDnsProxy;
            return this;
        }
        @CustomType.Setter
        public Builder enabledDnsType(@Nullable String enabledDnsType) {

            this.enabledDnsType = enabledDnsType;
            return this;
        }
        public DNSSettingsResponse build() {
            final var _resultValue = new DNSSettingsResponse();
            _resultValue.dnsServers = dnsServers;
            _resultValue.enableDnsProxy = enableDnsProxy;
            _resultValue.enabledDnsType = enabledDnsType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy