public ListDiscoveryJobsResult withDiscoveryJobs(DiscoveryJobListEntry... discoveryJobs) {
        if (this.discoveryJobs == null) {
            setDiscoveryJobs(new java.util.ArrayList<DiscoveryJobListEntry>(discoveryJobs.length));
        }
        for (DiscoveryJobListEntry ele : discoveryJobs) {
            this.discoveryJobs.add(ele);
        }
        return this;
    }
<p>
The discovery jobs that you've run.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDiscoveryJobs(java.util.Collection)} or {@link #withDiscoveryJobs(java.util.Collection)} if you want
to override the existing values.
</p>

@param discoveryJobs
       The discovery jobs that you've run.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/ListDiscoveryJobsResult.java