social-networking-library-ws/src/main/java/org/gcube/portal/social/networking/ws/inputs/PostId.java

44 lines
710 B
Java
Raw Normal View History

2023-02-09 15:09:38 +01:00
package org.gcube.portal.social.networking.ws.inputs;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
2023-02-09 15:31:11 +01:00
* Application id object
2023-02-09 15:09:38 +01:00
*/
public class PostId {
2023-02-09 15:40:56 +01:00
@JsonProperty("postid")
@NotNull(message="postid cannot be null")
@Size(message="postid cannot be empty", min=1)
2023-02-09 15:31:11 +01:00
private String postId;
2023-02-09 15:09:38 +01:00
public PostId() {
super();
}
2023-02-09 15:31:11 +01:00
public PostId(String postId) {
2023-02-09 15:09:38 +01:00
super();
2023-02-09 15:31:11 +01:00
this.postId = postId;
2023-02-09 15:09:38 +01:00
}
public String getPostId() {
2023-02-09 15:31:11 +01:00
return postId;
2023-02-09 15:09:38 +01:00
}
2023-02-09 15:31:11 +01:00
public void setPostId(String postId) {
this.postId = postId;
2023-02-09 15:09:38 +01:00
}
@Override
public String toString() {
2023-02-09 15:40:56 +01:00
return "PostId [postid=" + postId + "]";
2023-02-09 15:09:38 +01:00
}
2023-02-09 15:31:11 +01:00
2023-02-09 15:09:38 +01:00
}