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

com.pulumi.alicloud.fc.outputs.V2FunctionCustomDns Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.fc.outputs;

import com.pulumi.alicloud.fc.outputs.V2FunctionCustomDnsDnsOption;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class V2FunctionCustomDns {
    /**
     * @return DNS resolver configuration parameter list. See `dns_options` below.
     * 
     */
    private @Nullable List dnsOptions;
    /**
     * @return List of IP addresses of DNS servers.
     * 
     */
    private @Nullable List nameServers;
    /**
     * @return List of DNS search domains.
     * 
     */
    private @Nullable List searches;

    private V2FunctionCustomDns() {}
    /**
     * @return DNS resolver configuration parameter list. See `dns_options` below.
     * 
     */
    public List dnsOptions() {
        return this.dnsOptions == null ? List.of() : this.dnsOptions;
    }
    /**
     * @return List of IP addresses of DNS servers.
     * 
     */
    public List nameServers() {
        return this.nameServers == null ? List.of() : this.nameServers;
    }
    /**
     * @return List of DNS search domains.
     * 
     */
    public List searches() {
        return this.searches == null ? List.of() : this.searches;
    }

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

    public static Builder builder(V2FunctionCustomDns defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List dnsOptions;
        private @Nullable List nameServers;
        private @Nullable List searches;
        public Builder() {}
        public Builder(V2FunctionCustomDns defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dnsOptions = defaults.dnsOptions;
    	      this.nameServers = defaults.nameServers;
    	      this.searches = defaults.searches;
        }

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

            this.dnsOptions = dnsOptions;
            return this;
        }
        public Builder dnsOptions(V2FunctionCustomDnsDnsOption... dnsOptions) {
            return dnsOptions(List.of(dnsOptions));
        }
        @CustomType.Setter
        public Builder nameServers(@Nullable List nameServers) {

            this.nameServers = nameServers;
            return this;
        }
        public Builder nameServers(String... nameServers) {
            return nameServers(List.of(nameServers));
        }
        @CustomType.Setter
        public Builder searches(@Nullable List searches) {

            this.searches = searches;
            return this;
        }
        public Builder searches(String... searches) {
            return searches(List.of(searches));
        }
        public V2FunctionCustomDns build() {
            final var _resultValue = new V2FunctionCustomDns();
            _resultValue.dnsOptions = dnsOptions;
            _resultValue.nameServers = nameServers;
            _resultValue.searches = searches;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy