public ResourceDataSyncItem withLastStatus(LastResourceDataSyncStatus lastStatus) {
        this.lastStatus = lastStatus.toString();
        return this;
    }
<p>
The status reported by the last sync.
</p>

@param lastStatus
       The status reported by the last sync.
@return Returns a reference to this object so that method calls can be chained together.
@see LastResourceDataSyncStatus
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ResourceDataSyncItem.java