public ReplicationDetails withReplicationAccounts(java.util.Collection<String> replicationAccounts) {
        setReplicationAccounts(replicationAccounts);
        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>

@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