Class AddMenuRequest

java.lang.Object
com.dzidzi.dto.menu.AddMenuRequest

public class AddMenuRequest extends Object
AddMenuRequest represents the DTO request containing the objects used to create a new menu.
  • Constructor Details

    • AddMenuRequest

      @ConstructorProperties({"name","description","price","image","category"}) public AddMenuRequest(String name, String description, BigDecimal price, org.springframework.web.multipart.MultipartFile image, MenuCategory category)
      Creates a new AddMenuRequest instance.
      Parameters:
      name - The name of the menu
      description - The description of the menu
      price - The price of the menu
      image - The image of the menu
      category - The menu category
    • AddMenuRequest

      public AddMenuRequest()
  • Method Details

    • builder

      public static AddMenuRequest.Builder builder()
    • getName

      public String getName()
      The name of the menu
    • getDescription

      public String getDescription()
      The description of the menu
    • getPrice

      public BigDecimal getPrice()
      The price of the menu
    • getImage

      public org.springframework.web.multipart.MultipartFile getImage()
      The image of the menu
    • getCategory

      public MenuCategory getCategory()
      The menu category
    • setName

      public void setName(String name)
      The name of the menu
    • setDescription

      public void setDescription(String description)
      The description of the menu
    • setPrice

      public void setPrice(BigDecimal price)
      The price of the menu
    • setImage

      public void setImage(org.springframework.web.multipart.MultipartFile image)
      The image of the menu
    • setCategory

      public void setCategory(MenuCategory category)
      The menu category