All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rapture.common.WorkflowJobExecDetails 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;

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.Map;
import java.util.HashMap;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* 
**/
@SuppressWarnings("all")
public class WorkflowJobExecDetails  implements RaptureTransferObject, Debugable  {
    /*
    *  Start of field 'jobURI' (String) 
    */
    private String jobURI;

    @JsonProperty("jobURI")
    public String getJobURI() {
       return jobURI;
    }

    @JsonProperty("jobURI")
    public void setJobURI(String jobURI) {
       this.jobURI =  new RaptureURI(jobURI, Scheme.JOB).toString() /* TODO remove toString */  ;
    }
    /*
    *  end of field 'jobURI' (String) 
    */


    /*
    *  Start of field 'parameters' (Map) 
    */
    private Map parameters;

    @JsonProperty("parameters")
    public Map getParameters() {
       return parameters;
    }

    @JsonProperty("parameters")
    public void setParameters(Map parameters) {
       this.parameters =  parameters ;
    }
    /*
    *  end of field 'parameters' (Map) 
    */


    /*
    *  Start of field 'passedParams' (Map) 
    */
    private Map passedParams = new HashMap();

    @JsonProperty("passedParams")
    public Map getPassedParams() {
       return passedParams;
    }

    @JsonProperty("passedParams")
    public void setPassedParams(Map passedParams) {
       this.passedParams =  passedParams ;
    }
    /*
    *  end of field 'passedParams' (Map) 
    */


    /*
    *  Start of field 'workflowURI' (String) 
    */
    private String workflowURI;

    @JsonProperty("workflowURI")
    public String getWorkflowURI() {
       return workflowURI;
    }

    @JsonProperty("workflowURI")
    public void setWorkflowURI(String workflowURI) {
       this.workflowURI =  new RaptureURI(workflowURI, Scheme.WORKFLOW).toString() /* TODO remove toString */  ;
    }
    /*
    *  end of field 'workflowURI' (String) 
    */


    /*
    *  Start of field 'workOrderURI' (String) 
    */
    private String workOrderURI;

    @JsonProperty("workOrderURI")
    public String getWorkOrderURI() {
       return workOrderURI;
    }

    @JsonProperty("workOrderURI")
    public void setWorkOrderURI(String workOrderURI) {
       this.workOrderURI =  new RaptureURI(workOrderURI, Scheme.WORKORDER).toString() /* TODO remove toString */  ;
    }
    /*
    *  end of field 'workOrderURI' (String) 
    */


    /*
    *  Start of field 'workOrderID' (String) 
    */
    private String workOrderID;

    @JsonProperty("workOrderID")
    public String getWorkOrderID() {
       return workOrderID;
    }

    @JsonProperty("workOrderID")
    public void setWorkOrderID(String workOrderID) {
       this.workOrderID =  workOrderID ;
    }
    /*
    *  end of field 'workOrderID' (String) 
    */


    /*
    *  Start of field 'startDate' (Long) 
    */
    private Long startDate;

    @JsonProperty("startDate")
    public Long getStartDate() {
       return startDate;
    }

    @JsonProperty("startDate")
    public void setStartDate(Long startDate) {
       this.startDate =  startDate ;
    }
    /*
    *  end of field 'startDate' (Long) 
    */


    /*
    *  Start of field 'lastUpdated' (Long) 
    */
    private Long lastUpdated;

    @JsonProperty("lastUpdated")
    public Long getLastUpdated() {
       return lastUpdated;
    }

    @JsonProperty("lastUpdated")
    public void setLastUpdated(Long lastUpdated) {
       this.lastUpdated =  lastUpdated ;
    }
    /*
    *  end of field 'lastUpdated' (Long) 
    */


    /*
    *  Start of field 'workOrderStatus' (WorkOrderExecutionState) 
    */
    private WorkOrderExecutionState workOrderStatus;

    @JsonProperty("workOrderStatus")
    public WorkOrderExecutionState getWorkOrderStatus() {
       return workOrderStatus;
    }

    @JsonProperty("workOrderStatus")
    public void setWorkOrderStatus(WorkOrderExecutionState workOrderStatus) {
       this.workOrderStatus =  workOrderStatus ;
    }
    /*
    *  end of field 'workOrderStatus' (WorkOrderExecutionState) 
    */


    /*
    *  Start of field 'jobStatus' (JobExecStatus) 
    */
    private JobExecStatus jobStatus;

    @JsonProperty("jobStatus")
    public JobExecStatus getJobStatus() {
       return jobStatus;
    }

    @JsonProperty("jobStatus")
    public void setJobStatus(JobExecStatus jobStatus) {
       this.jobStatus =  jobStatus ;
    }
    /*
    *  end of field 'jobStatus' (JobExecStatus) 
    */


    /*
    *  Start of field 'prettyStatus' (String) 
    */
    private String prettyStatus;

    @JsonProperty("prettyStatus")
    public String getPrettyStatus() {
       return prettyStatus;
    }

    @JsonProperty("prettyStatus")
    public void setPrettyStatus(String prettyStatus) {
       this.prettyStatus =  prettyStatus ;
    }
    /*
    *  end of field 'prettyStatus' (String) 
    */


    /*
    *  Start of field 'overrunMillis' (Long) 
    */
    private Long overrunMillis = 0L;

    @JsonProperty("overrunMillis")
    public Long getOverrunMillis() {
       return overrunMillis;
    }

    @JsonProperty("overrunMillis")
    public void setOverrunMillis(Long overrunMillis) {
       this.overrunMillis =  overrunMillis ;
    }
    /*
    *  end of field 'overrunMillis' (Long) 
    */


    /*
    *  Start of field 'maxRuntimeMinutes' (Integer) 
    */
    private Integer maxRuntimeMinutes = -1;

    @JsonProperty("maxRuntimeMinutes")
    public Integer getMaxRuntimeMinutes() {
       return maxRuntimeMinutes;
    }

    @JsonProperty("maxRuntimeMinutes")
    public void setMaxRuntimeMinutes(Integer maxRuntimeMinutes) {
       this.maxRuntimeMinutes =  maxRuntimeMinutes ;
    }
    /*
    *  end of field 'maxRuntimeMinutes' (Integer) 
    */


    /*
    *  Start of field 'notes' (String) 
    */
    private String notes;

    @JsonProperty("notes")
    public String getNotes() {
       return notes;
    }

    @JsonProperty("notes")
    public void setNotes(String notes) {
       this.notes =  notes ;
    }
    /*
    *  end of field 'notes' (String) 
    */


    /*
    *  Start of field 'errorAck' (JobErrorAck) 
    */
    private JobErrorAck errorAck;

    @JsonProperty("errorAck")
    public JobErrorAck getErrorAck() {
       return errorAck;
    }

    @JsonProperty("errorAck")
    public void setErrorAck(JobErrorAck errorAck) {
       this.errorAck =  errorAck ;
    }
    /*
    *  end of field 'errorAck' (JobErrorAck) 
    */


   

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((jobStatus == null) ? 0 : jobStatus.hashCode());
        result = prime * result + ((notes == null) ? 0 : notes.hashCode());
        result = prime * result + ((jobURI == null) ? 0 : jobURI.hashCode());
        result = prime * result + ((passedParams == null) ? 0 : passedParams.hashCode());
        result = prime * result + ((maxRuntimeMinutes == null) ? 0 : maxRuntimeMinutes.hashCode());
        result = prime * result + ((overrunMillis == null) ? 0 : overrunMillis.hashCode());
        result = prime * result + ((prettyStatus == null) ? 0 : prettyStatus.hashCode());
        result = prime * result + ((lastUpdated == null) ? 0 : lastUpdated.hashCode());
        result = prime * result + ((workflowURI == null) ? 0 : workflowURI.hashCode());
        result = prime * result + ((workOrderURI == null) ? 0 : workOrderURI.hashCode());
        result = prime * result + ((errorAck == null) ? 0 : errorAck.hashCode());
        result = prime * result + ((workOrderID == null) ? 0 : workOrderID.hashCode());
        result = prime * result + ((workOrderStatus == null) ? 0 : workOrderStatus.hashCode());
        result = prime * result + ((parameters == null) ? 0 : parameters.hashCode());
        result = prime * result + ((startDate == null) ? 0 : startDate.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;
        
        WorkflowJobExecDetails other = (WorkflowJobExecDetails) obj;

        if (jobStatus == null) {
            if (other.jobStatus != null) {
                return false;
            }
        } else if (!jobStatus.equals(other.jobStatus)) {
            return false;
        }

        if (notes == null) {
            if (other.notes != null) {
                return false;
            }
        } else if (!notes.equals(other.notes)) {
            return false;
        }

        if (jobURI == null) {
            if (other.jobURI != null) {
                return false;
            }
        } else if (!jobURI.equals(other.jobURI)) {
            return false;
        }

        if (passedParams == null) {
            if (other.passedParams != null) {
                return false;
            }
        } else if (!passedParams.equals(other.passedParams)) {
            return false;
        }

        if (maxRuntimeMinutes == null) {
            if (other.maxRuntimeMinutes != null) {
                return false;
            }
        } else if (!maxRuntimeMinutes.equals(other.maxRuntimeMinutes)) {
            return false;
        }

        if (overrunMillis == null) {
            if (other.overrunMillis != null) {
                return false;
            }
        } else if (!overrunMillis.equals(other.overrunMillis)) {
            return false;
        }

        if (prettyStatus == null) {
            if (other.prettyStatus != null) {
                return false;
            }
        } else if (!prettyStatus.equals(other.prettyStatus)) {
            return false;
        }

        if (lastUpdated == null) {
            if (other.lastUpdated != null) {
                return false;
            }
        } else if (!lastUpdated.equals(other.lastUpdated)) {
            return false;
        }

        if (workflowURI == null) {
            if (other.workflowURI != null) {
                return false;
            }
        } else if (!workflowURI.equals(other.workflowURI)) {
            return false;
        }

        if (workOrderURI == null) {
            if (other.workOrderURI != null) {
                return false;
            }
        } else if (!workOrderURI.equals(other.workOrderURI)) {
            return false;
        }

        if (errorAck == null) {
            if (other.errorAck != null) {
                return false;
            }
        } else if (!errorAck.equals(other.errorAck)) {
            return false;
        }

        if (workOrderID == null) {
            if (other.workOrderID != null) {
                return false;
            }
        } else if (!workOrderID.equals(other.workOrderID)) {
            return false;
        }

        if (workOrderStatus == null) {
            if (other.workOrderStatus != null) {
                return false;
            }
        } else if (!workOrderStatus.equals(other.workOrderStatus)) {
            return false;
        }

        if (parameters == null) {
            if (other.parameters != null) {
                return false;
            }
        } else if (!parameters.equals(other.parameters)) {
            return false;
        }

        if (startDate == null) {
            if (other.startDate != null) {
                return false;
            }
        } else if (!startDate.equals(other.startDate)) {
            return false;
        }

           
        return true;
    }


    /**/
    public String debug() {
        StringBuilder sb = new StringBuilder();
            {
                sb.append(" jobStatus= ");
                Object o = jobStatus;
                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(" notes= ");
                Object o = notes;
                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(" jobURI= ");
                Object o = jobURI;
                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(" passedParams= ");
                Object o = passedParams;
                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(" maxRuntimeMinutes= ");
                Object o = maxRuntimeMinutes;
                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(" overrunMillis= ");
                Object o = overrunMillis;
                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(" prettyStatus= ");
                Object o = prettyStatus;
                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(" lastUpdated= ");
                Object o = lastUpdated;
                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(" workflowURI= ");
                Object o = workflowURI;
                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(" workOrderURI= ");
                Object o = workOrderURI;
                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(" errorAck= ");
                Object o = errorAck;
                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(" workOrderID= ");
                Object o = workOrderID;
                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(" workOrderStatus= ");
                Object o = workOrderStatus;
                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(" parameters= ");
                Object o = parameters;
                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(" startDate= ");
                Object o = startDate;
                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