// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.dns.inputs.RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargetsArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RecordSetRoutingPolicyPrimaryBackupBackupGeoArgs Empty = new RecordSetRoutingPolicyPrimaryBackupBackupGeoArgs();

    /**
     * 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.
     * 
     */
    @Import(name="healthCheckedTargets")
    private @Nullable Output<RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargetsArgs> healthCheckedTargets;

    /**
     * @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<Output<RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargetsArgs>> healthCheckedTargets() {
        return Optional.ofNullable(this.healthCheckedTargets);
    }

    /**
     * The location name defined in Google Cloud.
     * 
     */
    @Import(name="location", required=true)
    private Output<String> location;

    /**
     * @return The location name defined in Google Cloud.
     * 
     */
    public Output<String> location() {
        return this.location;
    }

    @Import(name="rrdatas")
    private @Nullable Output<List<String>> rrdatas;

    public Optional<Output<List<String>>> rrdatas() {
        return Optional.ofNullable(this.rrdatas);
    }

    private RecordSetRoutingPolicyPrimaryBackupBackupGeoArgs() {}

    private RecordSetRoutingPolicyPrimaryBackupBackupGeoArgs(RecordSetRoutingPolicyPrimaryBackupBackupGeoArgs $) {
        this.healthCheckedTargets = $.healthCheckedTargets;
        this.location = $.location;
        this.rrdatas = $.rrdatas;
    }

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

    public static final class Builder {
        private RecordSetRoutingPolicyPrimaryBackupBackupGeoArgs $;

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

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

        /**
         * @param healthCheckedTargets 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.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckedTargets(@Nullable Output<RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargetsArgs> healthCheckedTargets) {
            $.healthCheckedTargets = healthCheckedTargets;
            return this;
        }

        /**
         * @param healthCheckedTargets 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.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckedTargets(RecordSetRoutingPolicyPrimaryBackupBackupGeoHealthCheckedTargetsArgs healthCheckedTargets) {
            return healthCheckedTargets(Output.of(healthCheckedTargets));
        }

        /**
         * @param location The location name defined in Google Cloud.
         * 
         * @return builder
         * 
         */
        public Builder location(Output<String> location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location name defined in Google Cloud.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        public Builder rrdatas(@Nullable Output<List<String>> rrdatas) {
            $.rrdatas = rrdatas;
            return this;
        }

        public Builder rrdatas(List<String> rrdatas) {
            return rrdatas(Output.of(rrdatas));
        }

        public Builder rrdatas(String... rrdatas) {
            return rrdatas(List.of(rrdatas));
        }

        public RecordSetRoutingPolicyPrimaryBackupBackupGeoArgs build() {
            $.location = Objects.requireNonNull($.location, "expected parameter 'location' to be non-null");
            return $;
        }
    }

}
