public void setWeight(Integer weight) {
        this.weight = weight;
    }
<p>
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to
route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5,
and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is
routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see
<a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints-endpoint-weights.html">Endpoint
weights</a> in the <i>Global Accelerator Developer Guide</i>.
</p>

@param weight
       The weight associated with the endpoint. When you add weights to endpoints, you configure Global
       Accelerator to route traffic based on proportions that you specify. For example, you might specify
       endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is
       routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to
       the last endpoint. For more information, see <a
       href="https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints-endpoint-weights.html"
       >Endpoint weights</a> in the <i>Global Accelerator Developer Guide</i>.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/EndpointDescription.java