package com.capitalone.dashboard.model;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.HashSet;
import java.util.Set;
/**
* A product or service offered by an Application.
*/
@Document(collection="services")
public class Service extends BaseModel {
private String name;
private String applicationName;
private ObjectId dashboardId;
private ServiceStatus status;
private String message;
private long lastUpdated;
private Set<ObjectId> dependedBy = new HashSet<>();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getApplicationName() {
return applicationName;
}
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
public ObjectId getDashboardId() {
return dashboardId;
}
public void setDashboardId(ObjectId dashboardId) {
this.dashboardId = dashboardId;
}
public ServiceStatus getStatus() {
return status;
}
public void setStatus(ServiceStatus status) {
this.status = status;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public long getLastUpdated() {
return lastUpdated;
}
public void setLastUpdated(long lastUpdated) {
this.lastUpdated = lastUpdated;
}
public Set<ObjectId> getDependedBy() {
return dependedBy;
}
}