public class JobAdminResult extends AdminResult
Constructor and Description |
---|
JobAdminResult()
Constructs an empty object
|
JobAdminResult(int responseCode,
java.lang.String errorMessage)
Constructs an object poulated with error code and message.
|
JobAdminResult(java.util.List<java.lang.Long> jobIdsAffected)
Constructs an object with a given list of job IDs.
|
JobAdminResult(java.lang.String jobId) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Long> |
getJobIdsAffected()
Returns the list of job IDs that the requested operation affected.
|
void |
setJobIdsAffected(java.util.List<java.lang.Long> jobIdsAffected)
Sets the list of job IDs that the requested operation affected.
|
void |
throwExceptionIfError()
Translates between the response code and corresponding exception thrown
on the client.
|
getErrorMessage, getResponseCode, setErrorMessage, setResponseCode
public JobAdminResult()
public JobAdminResult(java.util.List<java.lang.Long> jobIdsAffected)
jobIdsAffected
- A list of job IDs.public JobAdminResult(int responseCode, java.lang.String errorMessage)
responseCode
- The response code.errorMessage
- A string containing the error message.public JobAdminResult(java.lang.String jobId)
public java.util.List<java.lang.Long> getJobIdsAffected()
public void setJobIdsAffected(java.util.List<java.lang.Long> jobIdsAffected)
jobIdsAffected
- The list of job IDs.public void throwExceptionIfError() throws JobDoesNotExistException, NotAuthenticatedException, java.lang.IllegalArgumentException
JobDoesNotExistException
NotAuthenticatedException
java.lang.IllegalArgumentException