public Cluster withMode(String mode) {
        setMode(mode);
        return this;
    }
<p>
The mode of the cluster.
</p>

@param mode
       The mode of the cluster.
@return Returns a reference to this object so that method calls can be chained together.
@see ClusterMode
aws-java-sdk-cloudhsmv2/src/main/java/com/amazonaws/services/cloudhsmv2/model/Cluster.java