Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class GetJobChunksReadyForClientProcessingSpectraS3Request extends Abstra

private final String job;

private String jobChunk;

private int preferredNumberOfChunks;

// Constructor
Expand All @@ -43,6 +45,18 @@ public GetJobChunksReadyForClientProcessingSpectraS3Request(final String job) {
this.getQueryParams().put("job", UrlEscapers.urlFragmentEscaper().escape(job).replace("+", "%2B"));
}

public GetJobChunksReadyForClientProcessingSpectraS3Request withJobChunk(final UUID jobChunk) {
this.jobChunk = jobChunk.toString();
this.updateQueryParam("job_chunk", jobChunk);
return this;
}

public GetJobChunksReadyForClientProcessingSpectraS3Request withJobChunk(final String jobChunk) {
this.jobChunk = jobChunk;
this.updateQueryParam("job_chunk", jobChunk);
return this;
}

public GetJobChunksReadyForClientProcessingSpectraS3Request withPreferredNumberOfChunks(final int preferredNumberOfChunks) {
this.preferredNumberOfChunks = preferredNumberOfChunks;
this.updateQueryParam("preferred_number_of_chunks", preferredNumberOfChunks);
Expand All @@ -65,6 +79,11 @@ public String getJob() {
}


public String getJobChunk() {
return this.jobChunk;
}


public int getPreferredNumberOfChunks() {
return this.preferredNumberOfChunks;
}
Expand Down