@end_time.setter
def end_time(self, value):
    self.end_time_ = value
    if (self.task_type == TaskType.swap_in):
        self.time = self.end_time_
@end_time.setter
def end_time(self, value):
    self.end_time_ = value
    if (self.task_type == TaskType.swap_in):
        self.time = self.end_time_