Class AddRestaurantRequest

java.lang.Object
com.dzidzi.dto.restaurant.AddRestaurantRequest

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

    • AddRestaurantRequest

      public AddRestaurantRequest()
    • AddRestaurantRequest

      @ConstructorProperties({"address","name","contact","contact1","avatar","backgroundImage","bio","newPassword","repeatPass","username"}) public AddRestaurantRequest(AddAddressRequest address, String name, String contact, String contact1, org.springframework.web.multipart.MultipartFile avatar, org.springframework.web.multipart.MultipartFile backgroundImage, String bio, String newPassword, String repeatPass, String username)
      Creates a new AddRestaurantRequest instance.
      Parameters:
      address - The address of the restaurant. AddAddressRequest
      name - The name of the restaurant
      contact - The contact of the restaurant
      contact1 - The second contact of the restaurant if needed
      avatar - The profile image of the restaurant
      backgroundImage - The background image of the restaurant
      bio - The restaurants bio
      newPassword - The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.
      repeatPass - The same password typed in newPass
      username - The new username to use for your account
  • Method Details

    • builder

      public static AddRestaurantRequest.Builder builder()
    • getAddress

      public AddAddressRequest getAddress()
      The address of the restaurant. AddAddressRequest
    • getName

      public String getName()
      The name of the restaurant
    • getContact

      public String getContact()
      The contact of the restaurant
    • getContact1

      public String getContact1()
      The second contact of the restaurant if needed
    • getAvatar

      public org.springframework.web.multipart.MultipartFile getAvatar()
      The profile image of the restaurant
    • getBackgroundImage

      public org.springframework.web.multipart.MultipartFile getBackgroundImage()
      The background image of the restaurant
    • getBio

      public String getBio()
      The restaurants bio
    • getNewPassword

      public String getNewPassword()
      The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.
    • getRepeatPass

      public String getRepeatPass()
      The same password typed in newPass
    • getUsername

      public String getUsername()
      The new username to use for your account
    • setAddress

      public void setAddress(AddAddressRequest address)
      The address of the restaurant. AddAddressRequest
    • setName

      public void setName(String name)
      The name of the restaurant
    • setContact

      public void setContact(String contact)
      The contact of the restaurant
    • setContact1

      public void setContact1(String contact1)
      The second contact of the restaurant if needed
    • setAvatar

      public void setAvatar(org.springframework.web.multipart.MultipartFile avatar)
      The profile image of the restaurant
    • setBackgroundImage

      public void setBackgroundImage(org.springframework.web.multipart.MultipartFile backgroundImage)
      The background image of the restaurant
    • setNewPassword

      public void setNewPassword(String newPassword)
      The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.
    • setRepeatPass

      public void setRepeatPass(String repeatPass)
      The same password typed in newPass
    • setUsername

      public void setUsername(String username)
      The new username to use for your account