public ReplicationDetails withReplicationAccounts(String... replicationAccounts) {
        if (this.replicationAccounts == null) {
            setReplicationAccounts(new java.util.ArrayList<String>(replicationAccounts.length));
        }
        for (String ele : replicationAccounts) {
            this.replicationAccounts.add(ele);
        }
        return this;
    }
<p>
An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket that the
bucket is configured to replicate one or more objects to.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReplicationAccounts(java.util.Collection)} or {@link #withReplicationAccounts(java.util.Collection)}
if you want to override the existing values.
</p>

@param replicationAccounts
       An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket
       that the bucket is configured to replicate one or more objects to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/ReplicationDetails.java