38 lines
726 B
Java
38 lines
726 B
Java
|
package org.gcube.portal.socialnetworking.model.input;
|
||
|
|
||
|
import javax.validation.constraints.NotNull;
|
||
|
import javax.validation.constraints.Size;
|
||
|
|
||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Application id object
|
||
|
* @author Costantino Perciante at ISTI-CNR
|
||
|
*/
|
||
|
public class ApplicationId {
|
||
|
|
||
|
@JsonProperty("app_id")
|
||
|
@NotNull(message="app_id cannot be null")
|
||
|
@Size(message="app_id cannot be empty", min=1)
|
||
|
private String appId;
|
||
|
|
||
|
public ApplicationId(String appId) {
|
||
|
super();
|
||
|
this.appId = appId;
|
||
|
}
|
||
|
|
||
|
public String getAppId() {
|
||
|
return appId;
|
||
|
}
|
||
|
|
||
|
public void setAppId(String appId) {
|
||
|
this.appId = appId;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString() {
|
||
|
return "ApplicationId [appId=" + appId + "]";
|
||
|
}
|
||
|
}
|