Created
February 6, 2021 04:01
-
-
Save KalpaD/18e577b5faf34fcdc772ad1be14ea894 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.kds.reactive.model; | |
| import javax.validation.constraints.NotBlank; | |
| import javax.validation.constraints.NotNull; | |
| import javax.validation.constraints.Size; | |
| public class FormatNameRequest { | |
| @NotNull(message = "Title cannot be null") | |
| private String title; | |
| @NotNull | |
| @Size(message = "First name must be between 2 and 25 characters", min = 2, max = 25) | |
| private String firstName; | |
| private String middleName; | |
| @NotBlank(message = "Last name cannot be empty") | |
| private String lastName; | |
| public String getTitle() { | |
| return title; | |
| } | |
| public String getFirstName() { | |
| return firstName; | |
| } | |
| public String getMiddleName() { | |
| return middleName; | |
| } | |
| public String getLastName() { | |
| return lastName; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment