forked from osopromadze/Spring-Boot-Blog-REST-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhotoRequest.java
More file actions
55 lines (41 loc) · 1014 Bytes
/
PhotoRequest.java
File metadata and controls
55 lines (41 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.sopromadze.blogapi.payload;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class PhotoRequest {
@NotBlank
@Size(min = 3)
private String title;
@NotBlank
@Size(min = 10)
private String url;
@NotBlank
@Size(min = 10)
private String thumbnailUrl;
@NotNull
private Long albumId;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getThumbnailUrl() {
return thumbnailUrl;
}
public void setThumbnailUrl(String thumbnailUrl) {
this.thumbnailUrl = thumbnailUrl;
}
public Long getAlbumId() {
return albumId;
}
public void setAlbumId(Long albumId) {
this.albumId = albumId;
}
}