com.capitalone.dashboard.request.CollectorItemRequest Maven / Gradle / Ivy
package com.capitalone.dashboard.request;
import com.capitalone.dashboard.model.CollectorItem;
import org.bson.types.ObjectId;
import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.Map;
public class CollectorItemRequest {
@NotNull
private ObjectId collectorId;
private String description;
private Map options = new HashMap<>();
public ObjectId getCollectorId() {
return collectorId;
}
public void setCollectorId(ObjectId collectorId) {
this.collectorId = collectorId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Map getOptions() {
return options;
}
public void setOptions(Map options) {
this.options = options;
}
public CollectorItem toCollectorItem() {
CollectorItem item = new CollectorItem();
item.setCollectorId(collectorId);
item.setEnabled(true);
item.getOptions().putAll(options);
return item;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy