code: public DescribeSharedDirectoriesResult withSharedDirectories(SharedDirectory... sharedDirectories) {
          if (this.sharedDirectories == null) {
              setSharedDirectories(new com.amazonaws.internal.SdkInternalList<SharedDirectory>(sharedDirectories.length));
          }
          for (SharedDirectory ele : sharedDirectories) {
              this.sharedDirectories.add(ele);
          }
          return this;
      }
docs: <p>
  A list of all shared directories in your account.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSharedDirectories(java.util.Collection)} or {@link #withSharedDirectories(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param sharedDirectories
  A list of all shared directories in your account.
  @return Returns a reference to this object so that method calls can be chained together.