![JAR search and dependency download from the Maven repository](/logo.png)
org.lockss.laaws.poller.model.RepairQueue Maven / Gradle / Ivy
package org.lockss.laaws.poller.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.lockss.laaws.poller.model.LinkDesc;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* Description of the RepairQueue.
*/
@ApiModel(description = "Description of the RepairQueue.")
@Validated
public class RepairQueue {
@JsonProperty("numPending")
private Integer numPending = null;
@JsonProperty("pendingLink")
private LinkDesc pendingLink = null;
@JsonProperty("numActive")
private Integer numActive = null;
@JsonProperty("activeLink")
private LinkDesc activeLink = null;
@JsonProperty("numCompleted")
private Integer numCompleted = null;
@JsonProperty("completedLink")
private LinkDesc completedLink = null;
public RepairQueue numPending(Integer numPending) {
this.numPending = numPending;
return this;
}
/**
* The number of pending repairs
* @return numPending
**/
@ApiModelProperty(required = true, value = "The number of pending repairs")
@NotNull
public Integer getNumPending() {
return numPending;
}
public void setNumPending(Integer numPending) {
this.numPending = numPending;
}
public RepairQueue pendingLink(LinkDesc pendingLink) {
this.pendingLink = pendingLink;
return this;
}
/**
* A link to the urls with pending repairs.
* @return pendingLink
**/
@ApiModelProperty(value = "A link to the urls with pending repairs.")
@Valid
public LinkDesc getPendingLink() {
return pendingLink;
}
public void setPendingLink(LinkDesc pendingLink) {
this.pendingLink = pendingLink;
}
public RepairQueue numActive(Integer numActive) {
this.numActive = numActive;
return this;
}
/**
* The number of active repairs
* @return numActive
**/
@ApiModelProperty(required = true, value = "The number of active repairs")
@NotNull
public Integer getNumActive() {
return numActive;
}
public void setNumActive(Integer numActive) {
this.numActive = numActive;
}
public RepairQueue activeLink(LinkDesc activeLink) {
this.activeLink = activeLink;
return this;
}
/**
* A link to the urls with active repairs.
* @return activeLink
**/
@ApiModelProperty(value = "A link to the urls with active repairs.")
@Valid
public LinkDesc getActiveLink() {
return activeLink;
}
public void setActiveLink(LinkDesc activeLink) {
this.activeLink = activeLink;
}
public RepairQueue numCompleted(Integer numCompleted) {
this.numCompleted = numCompleted;
return this;
}
/**
* The number of completed repairs
* @return numCompleted
**/
@ApiModelProperty(required = true, value = "The number of completed repairs")
@NotNull
public Integer getNumCompleted() {
return numCompleted;
}
public void setNumCompleted(Integer numCompleted) {
this.numCompleted = numCompleted;
}
public RepairQueue completedLink(LinkDesc completedLink) {
this.completedLink = completedLink;
return this;
}
/**
* A link to the urls with completed repairs.
* @return completedLink
**/
@ApiModelProperty(value = "A link to the urls with completed repairs.")
@Valid
public LinkDesc getCompletedLink() {
return completedLink;
}
public void setCompletedLink(LinkDesc completedLink) {
this.completedLink = completedLink;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RepairQueue repairQueue = (RepairQueue) o;
return Objects.equals(this.numPending, repairQueue.numPending) &&
Objects.equals(this.pendingLink, repairQueue.pendingLink) &&
Objects.equals(this.numActive, repairQueue.numActive) &&
Objects.equals(this.activeLink, repairQueue.activeLink) &&
Objects.equals(this.numCompleted, repairQueue.numCompleted) &&
Objects.equals(this.completedLink, repairQueue.completedLink);
}
@Override
public int hashCode() {
return Objects.hash(numPending, pendingLink, numActive, activeLink, numCompleted, completedLink);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RepairQueue {\n");
sb.append(" numPending: ").append(toIndentedString(numPending)).append("\n");
sb.append(" pendingLink: ").append(toIndentedString(pendingLink)).append("\n");
sb.append(" numActive: ").append(toIndentedString(numActive)).append("\n");
sb.append(" activeLink: ").append(toIndentedString(activeLink)).append("\n");
sb.append(" numCompleted: ").append(toIndentedString(numCompleted)).append("\n");
sb.append(" completedLink: ").append(toIndentedString(completedLink)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy