public RepositoryAnalysis withRepositoryHead(RepositoryHeadSourceCodeType repositoryHead) {
        setRepositoryHead(repositoryHead);
        return this;
    }
<p>
A <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType">SourceCodeType</a> that
specifies the tip of a branch in an associated repository.
</p>

@param repositoryHead
       A <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType">SourceCodeType</a>
       that specifies the tip of a branch in an associated repository.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codegurureviewer/src/main/java/com/amazonaws/services/codegurureviewer/model/RepositoryAnalysis.java