public void setReplicationAccounts(java.util.Collection<String> replicationAccounts) {
        if (replicationAccounts == null) {
            this.replicationAccounts = null;
            return;
        }

        this.replicationAccounts = new java.util.ArrayList<String>(replicationAccounts);
    }
<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>

@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.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/ReplicationDetails.java