public ListReplacePermissionAssociationsWorkResult withReplacePermissionAssociationsWorks(
            ReplacePermissionAssociationsWork... replacePermissionAssociationsWorks) {
        if (this.replacePermissionAssociationsWorks == null) {
            setReplacePermissionAssociationsWorks(new java.util.ArrayList<ReplacePermissionAssociationsWork>(replacePermissionAssociationsWorks.length));
        }
        for (ReplacePermissionAssociationsWork ele : replacePermissionAssociationsWorks) {
            this.replacePermissionAssociationsWorks.add(ele);
        }
        return this;
    }
<p>
An array of data structures that provide details of the matching work IDs.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReplacePermissionAssociationsWorks(java.util.Collection)} or
{@link #withReplacePermissionAssociationsWorks(java.util.Collection)} if you want to override the existing
values.
</p>

@param replacePermissionAssociationsWorks
       An array of data structures that provide details of the matching work IDs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/ListReplacePermissionAssociationsWorkResult.java