rapture.common.dp.WorkOrderSearch Maven / Gradle / Ivy
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This file is autogenerated and any changes will be overwritten.
*/
package rapture.common.dp;
import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class WorkOrderSearch implements RaptureTransferObject, Debugable {
/*
* Start of field 'status' (WorkerExecutionState)
*/
private WorkerExecutionState status;
@JsonProperty("status")
public WorkerExecutionState getStatus() {
return status;
}
@JsonProperty("status")
public void setStatus(WorkerExecutionState status) {
this.status = status ;
}
/*
* end of field 'status' (WorkerExecutionState)
*/
/*
* Start of field 'workOrderURIs' (List)
*/
private List workOrderURIs;
@JsonProperty("workOrderURIs")
public List getWorkOrderURIs() {
return workOrderURIs;
}
@JsonProperty("workOrderURIs")
public void setWorkOrderURIs(List workOrderURIs) {
this.workOrderURIs = workOrderURIs ;
}
/*
* end of field 'workOrderURIs' (List)
*/
/*
* Start of field 'startTimeBegin' (Long)
*/
private Long startTimeBegin;
@JsonProperty("startTimeBegin")
public Long getStartTimeBegin() {
return startTimeBegin;
}
@JsonProperty("startTimeBegin")
public void setStartTimeBegin(Long startTimeBegin) {
this.startTimeBegin = startTimeBegin ;
}
/*
* end of field 'startTimeBegin' (Long)
*/
/*
* Start of field 'startTimeEnd' (Long)
*/
private Long startTimeEnd;
@JsonProperty("startTimeEnd")
public Long getStartTimeEnd() {
return startTimeEnd;
}
@JsonProperty("startTimeEnd")
public void setStartTimeEnd(Long startTimeEnd) {
this.startTimeEnd = startTimeEnd ;
}
/*
* end of field 'startTimeEnd' (Long)
*/
/*
* Start of field 'endTimeBegin' (Long)
*/
private Long endTimeBegin;
@JsonProperty("endTimeBegin")
public Long getEndTimeBegin() {
return endTimeBegin;
}
@JsonProperty("endTimeBegin")
public void setEndTimeBegin(Long endTimeBegin) {
this.endTimeBegin = endTimeBegin ;
}
/*
* end of field 'endTimeBegin' (Long)
*/
/*
* Start of field 'endTimeEnd' (Long)
*/
private Long endTimeEnd;
@JsonProperty("endTimeEnd")
public Long getEndTimeEnd() {
return endTimeEnd;
}
@JsonProperty("endTimeEnd")
public void setEndTimeEnd(Long endTimeEnd) {
this.endTimeEnd = endTimeEnd ;
}
/*
* end of field 'endTimeEnd' (Long)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((workOrderURIs == null) ? 0 : workOrderURIs.hashCode());
result = prime * result + ((startTimeEnd == null) ? 0 : startTimeEnd.hashCode());
result = prime * result + ((startTimeBegin == null) ? 0 : startTimeBegin.hashCode());
result = prime * result + ((endTimeBegin == null) ? 0 : endTimeBegin.hashCode());
result = prime * result + ((endTimeEnd == null) ? 0 : endTimeEnd.hashCode());
result = prime * result + ((status == null) ? 0 : status.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
WorkOrderSearch other = (WorkOrderSearch) obj;
if (workOrderURIs == null) {
if (other.workOrderURIs != null) {
return false;
}
} else if (!workOrderURIs.equals(other.workOrderURIs)) {
return false;
}
if (startTimeEnd == null) {
if (other.startTimeEnd != null) {
return false;
}
} else if (!startTimeEnd.equals(other.startTimeEnd)) {
return false;
}
if (startTimeBegin == null) {
if (other.startTimeBegin != null) {
return false;
}
} else if (!startTimeBegin.equals(other.startTimeBegin)) {
return false;
}
if (endTimeBegin == null) {
if (other.endTimeBegin != null) {
return false;
}
} else if (!endTimeBegin.equals(other.endTimeBegin)) {
return false;
}
if (endTimeEnd == null) {
if (other.endTimeEnd != null) {
return false;
}
} else if (!endTimeEnd.equals(other.endTimeEnd)) {
return false;
}
if (status == null) {
if (other.status != null) {
return false;
}
} else if (!status.equals(other.status)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" workOrderURIs= ");
Object o = workOrderURIs;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" startTimeEnd= ");
Object o = startTimeEnd;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" startTimeBegin= ");
Object o = startTimeBegin;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" endTimeBegin= ");
Object o = endTimeBegin;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" endTimeEnd= ");
Object o = endTimeEnd;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" status= ");
Object o = status;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
return sb.append("\n").toString();
}
@Override
public String toString() {
return JacksonUtil.jsonFromObject(this);
}
private ApiVersion _raptureVersion;
@JsonProperty("_raptureVersion")
public ApiVersion get_raptureVersion() {
return _raptureVersion;
}
@JsonProperty("_raptureVersion")
public void set_raptureVersion(ApiVersion _raptureVersion) {
this._raptureVersion = _raptureVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy