public DataSourceSyncJob withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The status of the synchronization job. When the <code>Status</code> field is set to <code>SUCCEEDED</code>, the
synchronization job is done. If the status code is <code>FAILED</code>, the <code>ErrorCode</code> and
<code>ErrorMessage</code> fields give you the reason for the failure.
</p>

@param status
       The status of the synchronization job. When the <code>Status</code> field is set to <code>SUCCEEDED</code>
       , the synchronization job is done. If the status code is <code>FAILED</code>, the <code>ErrorCode</code>
       and <code>ErrorMessage</code> fields give you the reason for the failure.
@return Returns a reference to this object so that method calls can be chained together.
@see DataSourceSyncJobStatus
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/DataSourceSyncJob.java