com.capitalone.dashboard.request.CodeQualityRequest Maven / Gradle / Ivy
package com.capitalone.dashboard.request;
import com.capitalone.dashboard.model.CodeQualityType;
import org.bson.types.ObjectId;
import javax.validation.constraints.NotNull;
public class CodeQualityRequest {
@NotNull
private ObjectId componentId;
private Integer max;
private Integer numberOfDays;
private Long dateBegins;
private Long dateEnds;
private CodeQualityType type;
public ObjectId getComponentId() {
return componentId;
}
public void setComponentId(ObjectId componentId) {
this.componentId = componentId;
}
public Integer getMax() {
return max;
}
public void setMax(Integer max) {
this.max = max;
}
public Integer getNumberOfDays() {
return numberOfDays;
}
public void setNumberOfDays(Integer numberOfDays) {
this.numberOfDays = numberOfDays;
}
public Long getDateBegins() {
return dateBegins;
}
public void setDateBegins(Long dateBegins) {
this.dateBegins = dateBegins;
}
public Long getDateEnds() {
return dateEnds;
}
public void setDateEnds(Long dateEnds) {
this.dateEnds = dateEnds;
}
public CodeQualityType getType() {
return type;
}
public void setType(CodeQualityType type) {
this.type = type;
}
public boolean validDateRange() {
return dateBegins != null || dateEnds != null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy