All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy