public class Product { private String title; private String description; private double price; private double discountPercentage; private double rating; private int stock; private String brand; private String category; public Product(String title, String description, double price, double discountPercentage, double rating, int stock, String brand, String category) { this.title = title; this.description = description; this.price = price; this.discountPercentage = discountPercentage; this.rating = rating; this.stock = stock; this.brand = brand; this.category = category; } public String getTitle() { return title; } public Product setTitle(String title) { this.title = title; return this; } public String getDescription() { return description; } public Product setDescription(String description) { this.description = description; return this; } public double getPrice() { return price; } public Product setPrice(double price) { this.price = price; return this; } public double getDiscountPercentage() { return discountPercentage; } public Product setDiscountPercentage(double discountPercentage) { this.discountPercentage = discountPercentage; return this; } public double getRating() { return rating; } public Product setRating(double rating) { this.rating = rating; return this; } public int getStock() { return stock; } public Product setStock(int stock) { this.stock = stock; return this; } public String getBrand() { return brand; } public Product setBrand(String brand) { this.brand = brand; return this; } public String getCategory() { return category; } public Product setCategory(String category) { this.category = category; return this; } }