public SyncJobStatus withError(ErrorDetails error) {
        setError(error);
        return this;
    }
<p>
The SyncJob error.
</p>

@param error
       The SyncJob error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iottwinmaker/src/main/java/com/amazonaws/services/iottwinmaker/model/SyncJobStatus.java