68 lines
1.2 KiB
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 productUrl;
|
|
|
|
@JsonProperty("error")
|
|
private String error; // in case of error
|
|
|
|
public ResponseCreationBean() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* @param id
|
|
* @param productUrl
|
|
* @param error
|
|
*/
|
|
public ResponseCreationBean(String id, String productUrl, String error) {
|
|
super();
|
|
this.id = id;
|
|
this.productUrl = productUrl;
|
|
this.error = error;
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getProducttUrl() {
|
|
return productUrl;
|
|
}
|
|
|
|
public void setProductUrl(String productUrl) {
|
|
this.productUrl = productUrl;
|
|
}
|
|
|
|
public String getError() {
|
|
return error;
|
|
}
|
|
|
|
public void setError(String error) {
|
|
this.error = error;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ResponseCreationBean [id=" + id + ", productUrl=" + productUrl
|
|
+ ", error=" + error + "]";
|
|
}
|
|
|
|
}
|