code: public Snapshot withNodeSnapshots(NodeSnapshot... nodeSnapshots) {
          if (this.nodeSnapshots == null) {
              setNodeSnapshots(new com.amazonaws.internal.SdkInternalList<NodeSnapshot>(nodeSnapshots.length));
          }
          for (NodeSnapshot ele : nodeSnapshots) {
              this.nodeSnapshots.add(ele);
          }
          return this;
      }
docs: <p>
  A list of the cache nodes in the source cluster.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setNodeSnapshots(java.util.Collection)} or {@link #withNodeSnapshots(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param nodeSnapshots
  A list of the cache nodes in the source cluster.
  @return Returns a reference to this object so that method calls can be chained together.