Class ChangeMenuRequest

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

public class ChangeMenuRequest extends Object
ChangeMenuRequest represents the DTO request containing the objects used to update an existing menu.
  • Constructor Details

    • ChangeMenuRequest

      public ChangeMenuRequest()
    • ChangeMenuRequest

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

    • builder

      public static ChangeMenuRequest.Builder builder()
    • getId

      public UUID getId()
      The id of the menu
    • getName

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

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

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

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

      public void setId(UUID id)
      The id of the menu
    • setImage

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