public CreateClusterRequest withNumShards(Integer numShards) {
        setNumShards(numShards);
        return this;
    }
<p>
The number of shards the cluster will contain. The default value is 1.
</p>

@param numShards
       The number of shards the cluster will contain. The default value is 1.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/CreateClusterRequest.java