public void setRoutes(java.util.Collection<VpnStaticRoute> routes) {
        if (routes == null) {
            this.routes = null;
            return;
        }

        this.routes = new com.amazonaws.internal.SdkInternalList<VpnStaticRoute>(routes);
    }
<p>
The static routes associated with the VPN connection.
</p>

@param routes
       The static routes associated with the VPN connection.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/VpnConnection.java