Package com.dzidzi.dto.extra
Class AddExtraRequest
java.lang.Object
com.dzidzi.dto.extra.AddExtraRequest
AddExtraRequest represents the DTO request containing the objects used to create a new extra.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddExtraRequest(String name, BigDecimal price, org.springframework.web.multipart.MultipartFile image) Creates a newAddExtraRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddExtraRequest.Builderbuilder()org.springframework.web.multipart.MultipartFilegetImage()The image of the extragetName()The name of the extragetPrice()The price of the extra
-
Constructor Details
-
AddExtraRequest
public AddExtraRequest() -
AddExtraRequest
@ConstructorProperties({"name","price","image"}) public AddExtraRequest(String name, BigDecimal price, org.springframework.web.multipart.MultipartFile image) Creates a newAddExtraRequestinstance.- Parameters:
name- The name of the extraprice- The price of the extraimage- The image of the extra
-
-
Method Details
-
builder
-
getName
The name of the extra -
getPrice
The price of the extra -
getImage
public org.springframework.web.multipart.MultipartFile getImage()The image of the extra
-