public PutFileRequest withBranchName(String branchName) {
        setBranchName(branchName);
        return this;
    }
<p>
The name of the branch where you want to add or update the file. If this is an empty repository, this branch is
created.
</p>

@param branchName
       The name of the branch where you want to add or update the file. If this is an empty repository, this
       branch is created.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/PutFileRequest.java