Skip to content

Commit 3344037

Browse files
committed
Merge pull request #217 from RachelTucker/3_2_redline_jason_update
Updated commands based on new contract
2 parents 8f123cd + d030d18 commit 3344037

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunksReadyForClientProcessingSpectraS3Request.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public class GetJobChunksReadyForClientProcessingSpectraS3Request extends Abstra
2727

2828
private final String job;
2929

30+
private String jobChunk;
31+
3032
private int preferredNumberOfChunks;
3133

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

48+
public GetJobChunksReadyForClientProcessingSpectraS3Request withJobChunk(final UUID jobChunk) {
49+
this.jobChunk = jobChunk.toString();
50+
this.updateQueryParam("job_chunk", jobChunk);
51+
return this;
52+
}
53+
54+
public GetJobChunksReadyForClientProcessingSpectraS3Request withJobChunk(final String jobChunk) {
55+
this.jobChunk = jobChunk;
56+
this.updateQueryParam("job_chunk", jobChunk);
57+
return this;
58+
}
59+
4660
public GetJobChunksReadyForClientProcessingSpectraS3Request withPreferredNumberOfChunks(final int preferredNumberOfChunks) {
4761
this.preferredNumberOfChunks = preferredNumberOfChunks;
4862
this.updateQueryParam("preferred_number_of_chunks", preferredNumberOfChunks);
@@ -65,6 +79,11 @@ public String getJob() {
6579
}
6680

6781

82+
public String getJobChunk() {
83+
return this.jobChunk;
84+
}
85+
86+
6887
public int getPreferredNumberOfChunks() {
6988
return this.preferredNumberOfChunks;
7089
}

0 commit comments

Comments
 (0)