public GetResourceSyncStatusResult withLatestSync(ResourceSyncAttempt latestSync) {
        setLatestSync(latestSync);
        return this;
    }
<p>
The latest sync for the sync status with the Git repository, whether successful or not.
</p>

@param latestSync
       The latest sync for the sync status with the Git repository, whether successful or not.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeconnections/src/main/java/com/amazonaws/services/codeconnections/model/GetResourceSyncStatusResult.java