public CreateProjectRequest withSecondarySourceVersions(ProjectSourceVersion... secondarySourceVersions) {
        if (this.secondarySourceVersions == null) {
            setSecondarySourceVersions(new java.util.ArrayList<ProjectSourceVersion>(secondarySourceVersions.length));
        }
        for (ProjectSourceVersion ele : secondarySourceVersions) {
            this.secondarySourceVersions.add(ele);
        }
        return this;
    }
<p>
An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at
the build level, then they take precedence over these <code>secondarySourceVersions</code> (at the project
level).
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSecondarySourceVersions(java.util.Collection)} or
{@link #withSecondarySourceVersions(java.util.Collection)} if you want to override the existing values.
</p>

@param secondarySourceVersions
       An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is
       specified at the build level, then they take precedence over these <code>secondarySourceVersions</code>
       (at the project level).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/CreateProjectRequest.java