content: package com.activecourses.upwork.dto.authentication.login;
  
  import jakarta.validation.constraints.Email;
  import jakarta.validation.constraints.NotEmpty;
  import jakarta.validation.constraints.NotNull;
  import jakarta.validation.constraints.Size;
  import lombok.Builder;
  import lombok.Data;
  
  @Data
  @Builder
  public class LoginRequestDto {
      @Email(message = "Email is not valid")
      @NotEmpty(message = "Email is required")
      @NotNull(message = "Email is required")
      private String email;
  
      @NotEmpty(message = "Password is required")
      @NotNull(message = "Password is required")
      @Size(min = 6, message = "Password must be at least 6 characters long")
      private String password;
  
      public LoginRequestDto(@Email(message = "Email is not valid")
                             @NotEmpty(message = "Email is required")
                             @NotNull(message = "Email is required") String email,
                             @NotEmpty(message = "Password is required")
                             @NotNull(message = "Password is required")
                             @Size(min = 6, message = "Password must be at least 6 characters long") String password) {
          this.email = email;
          this.password = password;
      }
  }
  