com.gooddata.warehouse.WarehouseTask Maven / Gradle / Ivy
package com.gooddata.warehouse;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.Map;
/**
* Async task for warehouse. Deserialization only.
*/
@JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = JsonTypeInfo.Id.NAME)
@JsonTypeName("asyncTask")
@JsonIgnoreProperties(ignoreUnknown = true)
class WarehouseTask {
private static final String POLL_LINK = "poll";
private static final String WAREHOUSE_LINK = "instance";
private static final String WAREHOUSE_USER_LINK = "user";
private final Map links;
@JsonCreator
private WarehouseTask(@JsonProperty("links") Map links) {
this.links = links;
}
String getPollLink() {
return links.get(POLL_LINK);
}
String getWarehouseLink() {
return links.get(WAREHOUSE_LINK);
}
String getWarehouseUserLink() {
return links.get(WAREHOUSE_USER_LINK);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy