public FileCache withDataRepositoryAssociationIds(String... dataRepositoryAssociationIds) {
        if (this.dataRepositoryAssociationIds == null) {
            setDataRepositoryAssociationIds(new java.util.ArrayList<String>(dataRepositoryAssociationIds.length));
        }
        for (String ele : dataRepositoryAssociationIds) {
            this.dataRepositoryAssociationIds.add(ele);
        }
        return this;
    }
<p>
A list of IDs of data repository associations that are associated with this cache.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDataRepositoryAssociationIds(java.util.Collection)} or
{@link #withDataRepositoryAssociationIds(java.util.Collection)} if you want to override the existing values.
</p>

@param dataRepositoryAssociationIds
       A list of IDs of data repository associations that are associated with this cache.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/FileCache.java