public DiscoveryJobListEntry withStatus(DiscoveryJobStatus status) {
        this.status = status.toString();
        return this;
    }
<p>
The status of a discovery job. For more information, see <a href=
"https://docs.aws.amazon.com/datasync/latest/userguide/discovery-job-statuses.html#discovery-job-statuses-table"
>Discovery job statuses</a>.
</p>

@param status
       The status of a discovery job. For more information, see <a href=
       "https://docs.aws.amazon.com/datasync/latest/userguide/discovery-job-statuses.html#discovery-job-statuses-table"
       >Discovery job statuses</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see DiscoveryJobStatus
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/DiscoveryJobListEntry.java