code: public CreateMembersRequest withAccountDetails(AccountDetail... accountDetails) {
          if (this.accountDetails == null) {
              setAccountDetails(new java.util.ArrayList<AccountDetail>(accountDetails.length));
          }
          for (AccountDetail ele : accountDetails) {
              this.accountDetails.add(ele);
          }
          return this;
      }
docs: A list of account ID and email address pairs of the accounts that you want to associate with the master GuardDuty
  account.
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAccountDetails(java.util.Collection)} or {@link #withAccountDetails(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param accountDetails
  A list of account ID and email address pairs of the accounts that you want to associate with the master
  GuardDuty account.
  @return Returns a reference to this object so that method calls can be chained together.