// *** 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.gcp.dns.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PolicyAlternativeNameServerConfigTargetNameServer {
    /**
     * @return Forwarding path for this TargetNameServer. If unset or `default` Cloud DNS will make forwarding
     * decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go
     * to the Internet. When set to `private`, Cloud DNS will always send queries through VPC for this target
     * Possible values are: `default`, `private`.
     * 
     */
    private @Nullable String forwardingPath;
    /**
     * @return IPv4 address to forward to.
     * 
     */
    private String ipv4Address;

    private PolicyAlternativeNameServerConfigTargetNameServer() {}
    /**
     * @return Forwarding path for this TargetNameServer. If unset or `default` Cloud DNS will make forwarding
     * decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go
     * to the Internet. When set to `private`, Cloud DNS will always send queries through VPC for this target
     * Possible values are: `default`, `private`.
     * 
     */
    public Optional<String> forwardingPath() {
        return Optional.ofNullable(this.forwardingPath);
    }
    /**
     * @return IPv4 address to forward to.
     * 
     */
    public String ipv4Address() {
        return this.ipv4Address;
    }

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

    public static Builder builder(PolicyAlternativeNameServerConfigTargetNameServer defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String forwardingPath;
        private String ipv4Address;
        public Builder() {}
        public Builder(PolicyAlternativeNameServerConfigTargetNameServer defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.forwardingPath = defaults.forwardingPath;
    	      this.ipv4Address = defaults.ipv4Address;
        }

        @CustomType.Setter
        public Builder forwardingPath(@Nullable String forwardingPath) {
            this.forwardingPath = forwardingPath;
            return this;
        }
        @CustomType.Setter
        public Builder ipv4Address(String ipv4Address) {
            this.ipv4Address = Objects.requireNonNull(ipv4Address);
            return this;
        }
        public PolicyAlternativeNameServerConfigTargetNameServer build() {
            final var o = new PolicyAlternativeNameServerConfigTargetNameServer();
            o.forwardingPath = forwardingPath;
            o.ipv4Address = ipv4Address;
            return o;
        }
    }
}
