grsf-publisher-ws/src/main/java/org/gcube/data_catalogue/grsf_publish_ws/json/output/ResponseCreationBean.java

68 lines
1.2 KiB
Java

package org.gcube.data_catalogue.grsf_publish_ws.json.output;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A bean used to reply to a product creation method.
* @author Costantino Perciante at ISTI-CNR
*/
public class ResponseCreationBean {
@JsonProperty("id")
private String id;
@JsonProperty("product_url")
String datasetUrl;
@JsonProperty("error")
private String error; // in case of error
public ResponseCreationBean() {
super();
}
/**
* @param id
* @param datasetUrl
* @param error
*/
public ResponseCreationBean(String id, String datasetUrl, String error) {
super();
this.id = id;
this.datasetUrl = datasetUrl;
this.error = error;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getDatasetUrl() {
return datasetUrl;
}
public void setDatasetUrl(String datasetUrl) {
this.datasetUrl = datasetUrl;
}
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
@Override
public String toString() {
return "ResponseCreationBean [id=" + id + ", datasetUrl=" + datasetUrl
+ ", error=" + error + "]";
}
}