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.period.common.transfer; 018 019import com.echothree.model.control.workflow.common.transfer.WorkflowEntityStatusTransfer; 020import com.echothree.util.common.transfer.BaseTransfer; 021 022public class PeriodTransfer 023 extends BaseTransfer { 024 025 private PeriodKindTransfer periodKind; 026 private String periodName; 027 private PeriodTransfer parentPeriod; 028 private PeriodTypeTransfer periodType; 029 private Long unformattedStartTime; 030 private String startTime; 031 private Long unformattedEndTime; 032 private String endTime; 033 private String description; 034 private WorkflowEntityStatusTransfer status; 035 036 /** Creates a new instance of PeriodTransfer */ 037 public PeriodTransfer(PeriodKindTransfer periodKind, String periodName, PeriodTransfer parentPeriod, PeriodTypeTransfer periodType, Long unformattedStartTime, 038 String startTime, Long unformattedEndTime, String endTime, String description, WorkflowEntityStatusTransfer status) { 039 this.periodKind = periodKind; 040 this.periodName = periodName; 041 this.periodType = periodType; 042 this.parentPeriod = parentPeriod; 043 this.unformattedStartTime = unformattedStartTime; 044 this.startTime = startTime; 045 this.unformattedEndTime = unformattedEndTime; 046 this.endTime = endTime; 047 this.description = description; 048 this.status = status; 049 } 050 051 /** 052 * Returns the periodKind. 053 * @return the periodKind 054 */ 055 public PeriodKindTransfer getPeriodKind() { 056 return periodKind; 057 } 058 059 /** 060 * Sets the periodKind. 061 * @param periodKind the periodKind to set 062 */ 063 public void setPeriodKind(PeriodKindTransfer periodKind) { 064 this.periodKind = periodKind; 065 } 066 067 /** 068 * Returns the periodName. 069 * @return the periodName 070 */ 071 public String getPeriodName() { 072 return periodName; 073 } 074 075 /** 076 * Sets the periodName. 077 * @param periodName the periodName to set 078 */ 079 public void setPeriodName(String periodName) { 080 this.periodName = periodName; 081 } 082 083 /** 084 * Returns the parentPeriod. 085 * @return the parentPeriod 086 */ 087 public PeriodTransfer getParentPeriod() { 088 return parentPeriod; 089 } 090 091 /** 092 * Sets the parentPeriod. 093 * @param parentPeriod the parentPeriod to set 094 */ 095 public void setParentPeriod(PeriodTransfer parentPeriod) { 096 this.parentPeriod = parentPeriod; 097 } 098 099 /** 100 * Returns the periodType. 101 * @return the periodType 102 */ 103 public PeriodTypeTransfer getPeriodType() { 104 return periodType; 105 } 106 107 /** 108 * Sets the periodType. 109 * @param periodType the periodType to set 110 */ 111 public void setPeriodType(PeriodTypeTransfer periodType) { 112 this.periodType = periodType; 113 } 114 115 /** 116 * Returns the unformattedStartTime. 117 * @return the unformattedStartTime 118 */ 119 public Long getUnformattedStartTime() { 120 return unformattedStartTime; 121 } 122 123 /** 124 * Sets the unformattedStartTime. 125 * @param unformattedStartTime the unformattedStartTime to set 126 */ 127 public void setUnformattedStartTime(Long unformattedStartTime) { 128 this.unformattedStartTime = unformattedStartTime; 129 } 130 131 /** 132 * Returns the startTime. 133 * @return the startTime 134 */ 135 public String getStartTime() { 136 return startTime; 137 } 138 139 /** 140 * Sets the startTime. 141 * @param startTime the startTime to set 142 */ 143 public void setStartTime(String startTime) { 144 this.startTime = startTime; 145 } 146 147 /** 148 * Returns the unformattedEndTime. 149 * @return the unformattedEndTime 150 */ 151 public Long getUnformattedEndTime() { 152 return unformattedEndTime; 153 } 154 155 /** 156 * Sets the unformattedEndTime. 157 * @param unformattedEndTime the unformattedEndTime to set 158 */ 159 public void setUnformattedEndTime(Long unformattedEndTime) { 160 this.unformattedEndTime = unformattedEndTime; 161 } 162 163 /** 164 * Returns the endTime. 165 * @return the endTime 166 */ 167 public String getEndTime() { 168 return endTime; 169 } 170 171 /** 172 * Sets the endTime. 173 * @param endTime the endTime to set 174 */ 175 public void setEndTime(String endTime) { 176 this.endTime = endTime; 177 } 178 179 /** 180 * Returns the description. 181 * @return the description 182 */ 183 public String getDescription() { 184 return description; 185 } 186 187 /** 188 * Sets the description. 189 * @param description the description to set 190 */ 191 public void setDescription(String description) { 192 this.description = description; 193 } 194 195 /** 196 * Returns the status. 197 * @return the status 198 */ 199 public WorkflowEntityStatusTransfer getStatus() { 200 return status; 201 } 202 203 /** 204 * Sets the status. 205 * @param status the status to set 206 */ 207 public void setStatus(WorkflowEntityStatusTransfer status) { 208 this.status = status; 209 } 210 211}