rapture.common.dp.StepRecord 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 com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class StepRecord implements RaptureTransferObject, Debugable {
/*
* Start of field 'stepURI' (String)
*/
private String stepURI;
@JsonProperty("stepURI")
public String getStepURI() {
return stepURI;
}
@JsonProperty("stepURI")
public void setStepURI(String stepURI) {
this.stepURI = new RaptureURI(stepURI, Scheme.WORKFLOW).toString() /* TODO remove toString */ ;
}
/*
* end of field 'stepURI' (String)
*/
/*
* Start of field 'name' (String)
*/
private String name;
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name ;
}
/*
* end of field 'name' (String)
*/
/*
* Start of field 'startTime' (Long)
*/
private Long startTime;
@JsonProperty("startTime")
public Long getStartTime() {
return startTime;
}
@JsonProperty("startTime")
public void setStartTime(Long startTime) {
this.startTime = startTime ;
}
/*
* end of field 'startTime' (Long)
*/
/*
* Start of field 'endTime' (Long)
*/
private Long endTime;
@JsonProperty("endTime")
public Long getEndTime() {
return endTime;
}
@JsonProperty("endTime")
public void setEndTime(Long endTime) {
this.endTime = endTime ;
}
/*
* end of field 'endTime' (Long)
*/
/*
* Start of field 'retVal' (String)
*/
private String retVal;
@JsonProperty("retVal")
public String getRetVal() {
return retVal;
}
@JsonProperty("retVal")
public void setRetVal(String retVal) {
this.retVal = retVal ;
}
/*
* end of field 'retVal' (String)
*/
/*
* Start of field 'hostname' (String)
*/
private String hostname;
@JsonProperty("hostname")
public String getHostname() {
return hostname;
}
@JsonProperty("hostname")
public void setHostname(String hostname) {
this.hostname = hostname ;
}
/*
* end of field 'hostname' (String)
*/
/*
* Start of field 'status' (WorkOrderExecutionState)
*/
private WorkOrderExecutionState status;
@JsonProperty("status")
public WorkOrderExecutionState getStatus() {
return status;
}
@JsonProperty("status")
public void setStatus(WorkOrderExecutionState status) {
this.status = status ;
}
/*
* end of field 'status' (WorkOrderExecutionState)
*/
/*
* Start of field 'exceptionInfo' (ErrorWrapper)
*/
private ErrorWrapper exceptionInfo;
@JsonProperty("exceptionInfo")
public ErrorWrapper getExceptionInfo() {
return exceptionInfo;
}
@JsonProperty("exceptionInfo")
public void setExceptionInfo(ErrorWrapper exceptionInfo) {
this.exceptionInfo = exceptionInfo ;
}
/*
* end of field 'exceptionInfo' (ErrorWrapper)
*/
/*
* Start of field 'activityId' (String)
*/
private String activityId;
@JsonProperty("activityId")
public String getActivityId() {
return activityId;
}
@JsonProperty("activityId")
public void setActivityId(String activityId) {
this.activityId = activityId ;
}
/*
* end of field 'activityId' (String)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((activityId == null) ? 0 : activityId.hashCode());
result = prime * result + ((stepURI == null) ? 0 : stepURI.hashCode());
result = prime * result + ((hostname == null) ? 0 : hostname.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
result = prime * result + ((retVal == null) ? 0 : retVal.hashCode());
result = prime * result + ((exceptionInfo == null) ? 0 : exceptionInfo.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;
StepRecord other = (StepRecord) obj;
if (activityId == null) {
if (other.activityId != null) {
return false;
}
} else if (!activityId.equals(other.activityId)) {
return false;
}
if (stepURI == null) {
if (other.stepURI != null) {
return false;
}
} else if (!stepURI.equals(other.stepURI)) {
return false;
}
if (hostname == null) {
if (other.hostname != null) {
return false;
}
} else if (!hostname.equals(other.hostname)) {
return false;
}
if (name == null) {
if (other.name != null) {
return false;
}
} else if (!name.equals(other.name)) {
return false;
}
if (startTime == null) {
if (other.startTime != null) {
return false;
}
} else if (!startTime.equals(other.startTime)) {
return false;
}
if (endTime == null) {
if (other.endTime != null) {
return false;
}
} else if (!endTime.equals(other.endTime)) {
return false;
}
if (retVal == null) {
if (other.retVal != null) {
return false;
}
} else if (!retVal.equals(other.retVal)) {
return false;
}
if (exceptionInfo == null) {
if (other.exceptionInfo != null) {
return false;
}
} else if (!exceptionInfo.equals(other.exceptionInfo)) {
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(" activityId= ");
Object o = activityId;
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(" stepURI= ");
Object o = stepURI;
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(" hostname= ");
Object o = hostname;
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(" name= ");
Object o = name;
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(" startTime= ");
Object o = startTime;
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(" endTime= ");
Object o = endTime;
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(" retVal= ");
Object o = retVal;
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(" exceptionInfo= ");
Object o = exceptionInfo;
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