@Override
    public ReplaceRouteTableAssociationResult replaceRouteTableAssociation(ReplaceRouteTableAssociationRequest request) {
        request = beforeClientExecution(request);
        return executeReplaceRouteTableAssociation(request);
    }
<p>
Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC.
After the operation completes, the subnet or gateway uses the routes in the new route table. For more information
about route tables, 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>
<p>
You can also use this operation to change which table is the main route table in the VPC. Specify the main route
table's association ID and the route table ID of the new main route table.
</p>

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