dev.sixpack.api.data.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK to develop generators part of the Sixpack solution
The newest version!
package dev.sixpack.api.data;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.Instant;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {
private ResultStatus resultStatus;
private String message;
private JMap contextMap;
private Instant nextIterationDate;
private Configuration output;
private Instant date;
public static Result failed(String message, JMap contextMap) {
return new Result(
ResultStatus.ERROR,
message,
contextMap,
null,
null,
Instant.now());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy