Amazon.com Inc was slapped with a class-action lawsuit on Thursday accusing the e-commerce giant of inflating the prices of ebooks in collusion with some publishers.