Class RunStatusRequest
- java.lang.Object
-
- com.treescrub.spedran.SingleResourceRequest<T>
-
- com.treescrub.spedran.ModifyResourceRequest<Run>
-
- com.treescrub.spedran.requests.builders.run.RunStatusRequest
-
public class RunStatusRequest extends ModifyResourceRequest<Run>
A request builder to reject or verify a run.
-
-
Constructor Summary
Constructors Constructor Description RunStatusRequest(Run run)RunStatusRequest(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunStatusRequestreject(String reason)Sets the status of theRuntoSubmissionStatus.REJECTEDwith the provided rejection reason.RunStatusRequestverify()Sets the status of theRuntoSubmissionStatus.VERIFIED.-
Methods inherited from class com.treescrub.spedran.ModifyResourceRequest
complete
-
-
-
-
Method Detail
-
verify
public RunStatusRequest verify()
Sets the status of theRuntoSubmissionStatus.VERIFIED.- Returns:
- this builder object
-
reject
public RunStatusRequest reject(String reason)
Sets the status of theRuntoSubmissionStatus.REJECTEDwith the provided rejection reason.- Parameters:
reason- aStringwith the reason for this run being rejected- Returns:
- this builder object
-
-