Package com.dzidzi.dto.menu
Class ChangeMenuRequest
java.lang.Object
com.dzidzi.dto.menu.ChangeMenuRequest
ChangeMenuRequest represents the DTO request containing the objects used to update an existing menu.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChangeMenuRequest(UUID id, String name, String description, BigDecimal price, org.springframework.web.multipart.MultipartFile image) Creates a newChangeMenuRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeMenuRequest.Builderbuilder()The new description of the menugetId()The id of the menuorg.springframework.web.multipart.MultipartFilegetImage()The new image of the menugetName()The new name of the menugetPrice()The new price of the menuvoidThe id of the menuvoidsetImage(org.springframework.web.multipart.MultipartFile image) The new image of the 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 newChangeMenuRequestinstance.- Parameters:
id- The id of the menuname- The new name of the menudescription- The new description of the menuprice- The new price of the menuimage- The new image of the menu
-
-
Method Details
-
builder
-
getId
The id of the menu -
getName
The new name of the menu -
getDescription
The new description of the menu -
getPrice
The new price of the menu -
getImage
public org.springframework.web.multipart.MultipartFile getImage()The new image of the menu -
setId
The id of the menu -
setImage
public void setImage(org.springframework.web.multipart.MultipartFile image) The new image of the menu
-