tech.ytsaurus.client.request.GetJobStderrResult Maven / Gradle / Ivy
The newest version!
package tech.ytsaurus.client.request;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
public class GetJobStderrResult {
@Nullable
private final byte[] stderr;
public GetJobStderrResult(List attachments) {
if (attachments.isEmpty()) {
stderr = null;
} else {
stderr = attachments.get(0);
}
}
public Optional getStderr() {
return Optional.ofNullable(stderr);
}
}