@Override
    public ReplaceRouteResult replaceRoute(ReplaceRouteRequest request) {
        request = beforeClientExecution(request);
        return executeReplaceRoute(request);
    }
<p>
Replaces an existing route within a route table in a VPC.
</p>
<p>
You must specify either a destination CIDR block or a prefix list ID. You must also specify exactly one of the
resources from the parameter list, or reset the local route to its default target.
</p>
<p>
For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html">Route
tables</a> in the <i>Amazon VPC User Guide</i>.
</p>

@param replaceRouteRequest
@return Result of the ReplaceRoute operation returned by the service.
@sample AmazonEC2.ReplaceRoute
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java