public Snapshot withAccountsWithRestoreAccess(AccountWithRestoreAccess... accountsWithRestoreAccess) {
        if (this.accountsWithRestoreAccess == null) {
            setAccountsWithRestoreAccess(new com.amazonaws.internal.SdkInternalList<AccountWithRestoreAccess>(accountsWithRestoreAccess.length));
        }
        for (AccountWithRestoreAccess ele : accountsWithRestoreAccess) {
            this.accountsWithRestoreAccess.add(ele);
        }
        return this;
    }
<p>
A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns <code>null</code> if no
accounts are authorized. Visible only to the snapshot owner.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAccountsWithRestoreAccess(java.util.Collection)} or
{@link #withAccountsWithRestoreAccess(java.util.Collection)} if you want to override the existing values.
</p>

@param accountsWithRestoreAccess
       A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns <code>null</code>
       if no accounts are authorized. Visible only to the snapshot owner.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/Snapshot.java