Package com.dzidzi.dto.menu
Class AddMenuRequest
java.lang.Object
com.dzidzi.dto.menu.AddMenuRequest
AddMenuRequest represents the DTO request containing the objects used to create a new menu.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddMenuRequest(String name, String description, BigDecimal price, org.springframework.web.multipart.MultipartFile image, MenuCategory category) Creates a newAddMenuRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddMenuRequest.Builderbuilder()The menu categoryThe description of the menuorg.springframework.web.multipart.MultipartFilegetImage()The image of the menugetName()The name of the menugetPrice()The price of the menuvoidsetCategory(MenuCategory category) The menu categoryvoidsetDescription(String description) The description of the menuvoidsetImage(org.springframework.web.multipart.MultipartFile image) The image of the menuvoidThe name of the menuvoidsetPrice(BigDecimal price) The price of the menu
-
Constructor Details
-
AddMenuRequest
public AddMenuRequest()
-
Method Details
-
builder
-
getName
The name of the menu -
getDescription
The description of the menu -
getPrice
The price of the menu -
getImage
public org.springframework.web.multipart.MultipartFile getImage()The image of the menu -
getCategory
The menu category -
setName
The name of the menu -
setDescription
The description of the menu -
setPrice
The price of the menu -
setImage
public void setImage(org.springframework.web.multipart.MultipartFile image) The image of the menu
-