1 2 3 4 5 6 7 8 9 10
package com.mavlushechka.a1qa.project.models; public record Attachment(com.mavlushechka.a1qa.project.constants.Attachment attachment, int ownerId, int mediaId) { @Override public String toString() { return attachment.name().toLowerCase() + ownerId + "_" + mediaId; } }