public CreateClusterResult withCluster(Cluster cluster) {
        setCluster(cluster);
        return this;
    }
<p>
The newly-created cluster.
</p>

@param cluster
       The newly-created cluster.
@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/CreateClusterResult.java