code: public ListDirectoriesResult withDirectories(Directory... directories) {
          if (this.directories == null) {
              setDirectories(new java.util.ArrayList<Directory>(directories.length));
          }
          for (Directory ele : directories) {
              this.directories.add(ele);
          }
          return this;
      }
docs: <p>
  Lists all directories that are associated with your account in pagination fashion.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDirectories(java.util.Collection)} or {@link #withDirectories(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param directories
  Lists all directories that are associated with your account in pagination fashion.
  @return Returns a reference to this object so that method calls can be chained together.