// *** 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 com.pulumi.gcp.dns.outputs.RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargets;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RecordSetRoutingPolicyPrimaryBackupBackupGeo {
    /**
     * @return The list of targets to be health checked. Note that if DNSSEC is enabled for this zone, only one of `rrdatas` or `health_checked_targets` can be set.
     * Structure is document below.
     * 
     * Structure is document below.
     * 
     */
    private @Nullable RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargets healthCheckedTargets;
    /**
     * @return The location name defined in Google Cloud.
     * 
     */
    private String location;
    private @Nullable List<String> rrdatas;

    private RecordSetRoutingPolicyPrimaryBackupBackupGeo() {}
    /**
     * @return The list of targets to be health checked. Note that if DNSSEC is enabled for this zone, only one of `rrdatas` or `health_checked_targets` can be set.
     * Structure is document below.
     * 
     * Structure is document below.
     * 
     */
    public Optional<RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargets> healthCheckedTargets() {
        return Optional.ofNullable(this.healthCheckedTargets);
    }
    /**
     * @return The location name defined in Google Cloud.
     * 
     */
    public String location() {
        return this.location;
    }
    public List<String> rrdatas() {
        return this.rrdatas == null ? List.of() : this.rrdatas;
    }

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

    public static Builder builder(RecordSetRoutingPolicyPrimaryBackupBackupGeo defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargets healthCheckedTargets;
        private String location;
        private @Nullable List<String> rrdatas;
        public Builder() {}
        public Builder(RecordSetRoutingPolicyPrimaryBackupBackupGeo defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.healthCheckedTargets = defaults.healthCheckedTargets;
    	      this.location = defaults.location;
    	      this.rrdatas = defaults.rrdatas;
        }

        @CustomType.Setter
        public Builder healthCheckedTargets(@Nullable RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargets healthCheckedTargets) {
            this.healthCheckedTargets = healthCheckedTargets;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            this.location = Objects.requireNonNull(location);
            return this;
        }
        @CustomType.Setter
        public Builder rrdatas(@Nullable List<String> rrdatas) {
            this.rrdatas = rrdatas;
            return this;
        }
        public Builder rrdatas(String... rrdatas) {
            return rrdatas(List.of(rrdatas));
        }
        public RecordSetRoutingPolicyPrimaryBackupBackupGeo build() {
            final var o = new RecordSetRoutingPolicyPrimaryBackupBackupGeo();
            o.healthCheckedTargets = healthCheckedTargets;
            o.location = location;
            o.rrdatas = rrdatas;
            return o;
        }
    }
}
