public ListRepositorySyncDefinitionsResult withRepositorySyncDefinitions(RepositorySyncDefinition... repositorySyncDefinitions) {
        if (this.repositorySyncDefinitions == null) {
            setRepositorySyncDefinitions(new java.util.ArrayList<RepositorySyncDefinition>(repositorySyncDefinitions.length));
        }
        for (RepositorySyncDefinition ele : repositorySyncDefinitions) {
            this.repositorySyncDefinitions.add(ele);
        }
        return this;
    }
<p>
The list of repository sync definitions returned by the request. A <code>RepositorySyncDefinition</code> is a
mapping from a repository branch to all the Amazon Web Services resources that are being synced from that branch.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRepositorySyncDefinitions(java.util.Collection)} or
{@link #withRepositorySyncDefinitions(java.util.Collection)} if you want to override the existing values.
</p>

@param repositorySyncDefinitions
       The list of repository sync definitions returned by the request. A <code>RepositorySyncDefinition</code>
       is a mapping from a repository branch to all the Amazon Web Services resources that are being synced from
       that branch.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codestarconnections/src/main/java/com/amazonaws/services/codestarconnections/model/ListRepositorySyncDefinitionsResult.java