public ListShardsResult withShards(java.util.Collection<Shard> shards) {
        setShards(shards);
        return this;
    }
<p>
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's
parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending
hash keys and the starting and ending sequence numbers for the shard.
</p>

@param shards
       An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's
       parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and
       ending hash keys and the starting and ending sequence numbers for the shard.
@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/ListShardsResult.java