// *** 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.Integer;
import java.util.Objects;


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

    public static final RecordWeightedRoutingPolicyArgs Empty = new RecordWeightedRoutingPolicyArgs();

    /**
     * A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted.
     * 
     */
    @Import(name="weight", required=true)
    private Output<Integer> weight;

    /**
     * @return A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted.
     * 
     */
    public Output<Integer> weight() {
        return this.weight;
    }

    private RecordWeightedRoutingPolicyArgs() {}

    private RecordWeightedRoutingPolicyArgs(RecordWeightedRoutingPolicyArgs $) {
        this.weight = $.weight;
    }

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

    public static final class Builder {
        private RecordWeightedRoutingPolicyArgs $;

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

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

        /**
         * @param weight A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted.
         * 
         * @return builder
         * 
         */
        public Builder weight(Output<Integer> weight) {
            $.weight = weight;
            return this;
        }

        /**
         * @param weight A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted.
         * 
         * @return builder
         * 
         */
        public Builder weight(Integer weight) {
            return weight(Output.of(weight));
        }

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

}
