public Cluster withHsms(java.util.Collection<Hsm> hsms) {
        setHsms(hsms);
        return this;
    }
<p>
Contains information about the HSMs in the cluster.
</p>

@param hsms
       Contains information about the HSMs in the cluster.
@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