public EndpointRequest withLocation(EndpointLocation location) {
        setLocation(location);
        return this;
    }
<p>
The geographic information for the endpoint.
</p>

@param location
       The geographic information for the endpoint.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EndpointRequest.java