public StreamDescription withShards(Shard... shards) {
        if (this.shards == null) {
            setShards(new com.amazonaws.internal.SdkInternalList<Shard>(shards.length));
        }
        for (Shard ele : shards) {
            this.shards.add(ele);
        }
        return this;
    }
<p>
The shards that comprise the stream.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setShards(java.util.Collection)} or {@link #withShards(java.util.Collection)} if you want to override the
existing values.
</p>

@param shards
       The shards that comprise the stream.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/model/StreamDescription.java