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("knowledge_base_id") private String kbUuid; // the original uuid given by the KB @JsonProperty("product_url") String productUrl; @JsonProperty("error") private String error; // in case of error public ResponseCreationBean() { super(); } /** * @param id * @param kbUuid * @param productUrl * @param error */ public ResponseCreationBean(String id, String kbUuid, String productUrl, String error) { super(); this.id = id; this.kbUuid = kbUuid; this.productUrl = productUrl; this.error = error; } public String getId() { return id; } public void setId(String id) { this.id = id; } public void setProductUrl(String productUrl) { this.productUrl = productUrl; } public String getError() { return error; } public void setError(String error) { this.error = error; } public String getKbUuid() { return kbUuid; } public void setKbUuid(String kbUuid) { this.kbUuid = kbUuid; } public String getProductUrl() { return productUrl; } @Override public String toString() { return "ResponseCreationBean [id=" + id + ", kbUuid=" + kbUuid + ", productUrl=" + productUrl + ", error=" + error + "]"; } }