public Cluster withHsmType(String hsmType) {
        setHsmType(hsmType);
        return this;
    }
<p>
The type of HSM that the cluster contains.
</p>

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