code: public CreateReplicationGroupRequest withSnapshotArns(String... snapshotArns) {
          if (this.snapshotArns == null) {
              setSnapshotArns(new com.amazonaws.internal.SdkInternalList<String>(snapshotArns.length));
          }
          for (String ele : snapshotArns) {
              this.snapshotArns.add(ele);
          }
          return this;
      }
docs: <p>
  A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3.
  The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot
  contain any commas. The new replication group will have the number of node groups (console: shards) specified by
  the parameter <i>NumNodeGroups</i> or the number of node groups configured by <i>NodeGroupConfiguration</i>
  regardless of the number of ARNs specified here.
  </p>
  <p>
  Example of an Amazon S3 ARN: <code>arn:aws:s3:::my_bucket/snapshot1.rdb</code>
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSnapshotArns(java.util.Collection)} or {@link #withSnapshotArns(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param snapshotArns
  A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon
  S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the
  ARN cannot contain any commas. The new replication group will have the number of node groups (console:
  shards) specified by the parameter <i>NumNodeGroups</i> or the number of node groups configured by
  <i>NodeGroupConfiguration</i> regardless of the number of ARNs specified here.</p>
  <p>
  Example of an Amazon S3 ARN: <code>arn:aws:s3:::my_bucket/snapshot1.rdb</code>
  @return Returns a reference to this object so that method calls can be chained together.