public class PollForJobsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a poll for jobs action.
Modifier and Type | Field and Description |
---|---|
private java.util.List<Job> |
jobs
Information about the jobs to take action on.
|
Constructor and Description |
---|
PollForJobsResult() |
Modifier and Type | Method and Description |
---|---|
PollForJobsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Job> |
getJobs()
Information about the jobs to take action on.
|
int |
hashCode() |
void |
setJobs(java.util.Collection<Job> jobs)
Information about the jobs to take action on.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PollForJobsResult |
withJobs(java.util.Collection<Job> jobs)
Information about the jobs to take action on.
|
PollForJobsResult |
withJobs(Job... jobs)
Information about the jobs to take action on.
|
private java.util.List<Job> jobs
Information about the jobs to take action on.
public java.util.List<Job> getJobs()
Information about the jobs to take action on.
public void setJobs(java.util.Collection<Job> jobs)
Information about the jobs to take action on.
jobs
- Information about the jobs to take action on.public PollForJobsResult withJobs(Job... jobs)
Information about the jobs to take action on.
NOTE: This method appends the values to the existing list (if
any). Use setJobs(java.util.Collection)
or
withJobs(java.util.Collection)
if you want to override the
existing values.
jobs
- Information about the jobs to take action on.public PollForJobsResult withJobs(java.util.Collection<Job> jobs)
Information about the jobs to take action on.
jobs
- Information about the jobs to take action on.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PollForJobsResult clone()
clone
in class java.lang.Object