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

        this.accountsWithRestoreAccess = new java.util.ArrayList<String>(accountsWithRestoreAccess);
    }
<p>
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
</p>

@param accountsWithRestoreAccess
       All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
aws-java-sdk-redshiftserverless/src/main/java/com/amazonaws/services/redshiftserverless/model/Snapshot.java