com.payu.menu.client.model.operation.CreateUpdateRepas Maven / Gradle / Ivy
package com.payu.menu.client.model.operation;
import com.payu.menu.client.enums.Difficulty;
import com.payu.menu.client.enums.Region;
import com.payu.menu.client.enums.RepasCategory;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "Create Repas Operation")
public class CreateUpdateRepas {
@Schema(description = "name")
private String name;
@Schema(description = "description")
private String description;
@Schema(description = "image url")
private String imageUrl;
@Schema(description = "video url")
private String videoUrl;
@Schema(description = "cooking time")
private Long cookingTime;
@Schema(description = "Person count of the repas")
private int personCount;
@Schema(description = "If repas is most wanted")
private boolean mostWanted;
@Schema(description = "Images illustration of repas")
private Set illustrations = Set.of();
@NotNull(message = "The difficulty is required")
@Schema(description = "difficulty")
private Difficulty difficulty;
@Schema(description = "region")
private Region region;
@Schema(description = "categories of repas")
private Set categories = Set.of();
@Schema(description = "nutritional value list")
private List nutritionalValues = new ArrayList<>();
@Schema(description = "cooking step list")
private List cookingSteps = new ArrayList<>();
@Schema(description = "ingredients references list")
private Set ingredientReferences = Set.of();
}