If you want to create that it’s only purpose is to hold data, then Data class is for you. You can declare a data class this way:
data class Person(val name:String)
Data classes should have one parameter at the primary constructor and use val or var, cannot be open, abstract,inner or sealed and can only implement interfaces. Data class has the following members:
You can read more here.