001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.model.control.job.common.transfer;
018
019import com.echothree.model.control.party.common.transfer.PartyTransfer;
020import com.echothree.model.control.workflow.common.transfer.WorkflowEntityStatusTransfer;
021import com.echothree.util.common.transfer.BaseTransfer;
022
023public class JobTransfer
024        extends BaseTransfer {
025    
026    private String jobName;
027    private PartyTransfer runAsParty;
028    private Integer sortOrder;
029    private String description;
030    private WorkflowEntityStatusTransfer jobStatus;
031    private Long unformattedLastStartTime;
032    private String lastStartTime;
033    private Long unformattedLastEndTime;
034    private String lastEndTime;
035    
036    /** Creates a new instance of JobTransfer */
037    public JobTransfer(String jobName, PartyTransfer runAsParty, Integer sortOrder, String description, WorkflowEntityStatusTransfer jobStatus,
038            Long unformattedLastStartTime, String lastStartTime, Long unformattedLastEndTime, String lastEndTime) {
039        this.jobName = jobName;
040        this.runAsParty = runAsParty;
041        this.sortOrder = sortOrder;
042        this.description = description;
043        this.jobStatus = jobStatus;
044        this.unformattedLastStartTime = unformattedLastStartTime;
045        this.lastStartTime = lastStartTime;
046        this.unformattedLastEndTime = unformattedLastEndTime;
047        this.lastEndTime = lastEndTime;
048    }
049
050    /**
051     * Returns the jobName.
052     * @return the jobName
053     */
054    public String getJobName() {
055        return jobName;
056    }
057
058    /**
059     * Sets the jobName.
060     * @param jobName the jobName to set
061     */
062    public void setJobName(String jobName) {
063        this.jobName = jobName;
064    }
065
066    /**
067     * Returns the runAsParty.
068     * @return the runAsParty
069     */
070    public PartyTransfer getRunAsParty() {
071        return runAsParty;
072    }
073
074    /**
075     * Sets the runAsParty.
076     * @param runAsParty the runAsParty to set
077     */
078    public void setRunAsParty(PartyTransfer runAsParty) {
079        this.runAsParty = runAsParty;
080    }
081
082    /**
083     * Returns the sortOrder.
084     * @return the sortOrder
085     */
086    public Integer getSortOrder() {
087        return sortOrder;
088    }
089
090    /**
091     * Sets the sortOrder.
092     * @param sortOrder the sortOrder to set
093     */
094    public void setSortOrder(Integer sortOrder) {
095        this.sortOrder = sortOrder;
096    }
097
098    /**
099     * Returns the description.
100     * @return the description
101     */
102    public String getDescription() {
103        return description;
104    }
105
106    /**
107     * Sets the description.
108     * @param description the description to set
109     */
110    public void setDescription(String description) {
111        this.description = description;
112    }
113
114    /**
115     * Returns the jobStatus.
116     * @return the jobStatus
117     */
118    public WorkflowEntityStatusTransfer getJobStatus() {
119        return jobStatus;
120    }
121
122    /**
123     * Sets the jobStatus.
124     * @param jobStatus the jobStatus to set
125     */
126    public void setJobStatus(WorkflowEntityStatusTransfer jobStatus) {
127        this.jobStatus = jobStatus;
128    }
129
130    /**
131     * Returns the unformattedLastStartTime.
132     * @return the unformattedLastStartTime
133     */
134    public Long getUnformattedLastStartTime() {
135        return unformattedLastStartTime;
136    }
137
138    /**
139     * Sets the unformattedLastStartTime.
140     * @param unformattedLastStartTime the unformattedLastStartTime to set
141     */
142    public void setUnformattedLastStartTime(Long unformattedLastStartTime) {
143        this.unformattedLastStartTime = unformattedLastStartTime;
144    }
145
146    /**
147     * Returns the lastStartTime.
148     * @return the lastStartTime
149     */
150    public String getLastStartTime() {
151        return lastStartTime;
152    }
153
154    /**
155     * Sets the lastStartTime.
156     * @param lastStartTime the lastStartTime to set
157     */
158    public void setLastStartTime(String lastStartTime) {
159        this.lastStartTime = lastStartTime;
160    }
161
162    /**
163     * Returns the unformattedLastEndTime.
164     * @return the unformattedLastEndTime
165     */
166    public Long getUnformattedLastEndTime() {
167        return unformattedLastEndTime;
168    }
169
170    /**
171     * Sets the unformattedLastEndTime.
172     * @param unformattedLastEndTime the unformattedLastEndTime to set
173     */
174    public void setUnformattedLastEndTime(Long unformattedLastEndTime) {
175        this.unformattedLastEndTime = unformattedLastEndTime;
176    }
177
178    /**
179     * Returns the lastEndTime.
180     * @return the lastEndTime
181     */
182    public String getLastEndTime() {
183        return lastEndTime;
184    }
185
186    /**
187     * Sets the lastEndTime.
188     * @param lastEndTime the lastEndTime to set
189     */
190    public void setLastEndTime(String lastEndTime) {
191        this.lastEndTime = lastEndTime;
192    }
193    
194}