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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


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

    public static final RecordLatencyRoutingPolicyArgs Empty = new RecordLatencyRoutingPolicyArgs();

    /**
     * An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency
     * 
     */
    @Import(name="region", required=true)
    private Output<String> region;

    /**
     * @return An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency
     * 
     */
    public Output<String> region() {
        return this.region;
    }

    private RecordLatencyRoutingPolicyArgs() {}

    private RecordLatencyRoutingPolicyArgs(RecordLatencyRoutingPolicyArgs $) {
        this.region = $.region;
    }

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

    public static final class Builder {
        private RecordLatencyRoutingPolicyArgs $;

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

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

        /**
         * @param region An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency
         * 
         * @return builder
         * 
         */
        public Builder region(Output<String> region) {
            $.region = region;
            return this;
        }

        /**
         * @param region An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

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

}
