Class AddAdministrationRequest

java.lang.Object
com.dzidzi.dto.administration.AddAdministrationRequest

public class AddAdministrationRequest extends Object
AddAdministrationRequest represents the DTO request containing the objects used to create a new admin user.
  • Constructor Details

    • AddAdministrationRequest

      public AddAdministrationRequest()
    • AddAdministrationRequest

      @ConstructorProperties({"firstName","lastName","newPassword","repeatPass","username"}) public AddAdministrationRequest(String firstName, String lastName, String newPassword, String repeatPass, String username)
      Creates a new AddAdministrationRequest instance.
      Parameters:
      firstName - The first name of the admin
      lastName - The last name of the admin
      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 newPassword
      username - The new username to use for your account
  • Method Details

    • builder

      public static AddAdministrationRequest.Builder builder()
    • getFirstName

      public String getFirstName()
      The first name of the admin
    • getLastName

      public String getLastName()
      The last name of the admin
    • 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 newPassword
    • getUsername

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