com.farao_community.farao.gridcapa.task_manager.api.TaskStatusUpdate Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2021, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.farao_community.farao.gridcapa.task_manager.api;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.UUID;
/**
* @author Joris Mancini {@literal }
*/
public class TaskStatusUpdate {
private final UUID id;
private final TaskStatus taskStatus;
@JsonCreator
public TaskStatusUpdate(@JsonProperty("id") UUID id,
@JsonProperty("taskStatus") TaskStatus taskStatus) {
this.id = id;
this.taskStatus = taskStatus;
}
public UUID getId() {
return id;
}
public TaskStatus getTaskStatus() {
return taskStatus;
}
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
}