public Cluster withShardCount(Integer shardCount) {
        setShardCount(shardCount);
        return this;
    }
<p>
The number of shards assigned to the elastic cluster. Maximum is 32.
</p>

@param shardCount
       The number of shards assigned to the elastic cluster. Maximum is 32.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdbelastic/src/main/java/com/amazonaws/services/docdbelastic/model/Cluster.java