code: 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;
      }
docs: <p>
  A list of the AWS customer 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 AWS customer 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.