public void setHsms(java.util.Collection<Hsm> hsms) {
        if (hsms == null) {
            this.hsms = null;
            return;
        }

        this.hsms = new java.util.ArrayList<Hsm>(hsms);
    }
<p>
Contains information about the HSMs in the cluster.
</p>

@param hsms
       Contains information about the HSMs in the cluster.
aws-java-sdk-cloudhsmv2/src/main/java/com/amazonaws/services/cloudhsmv2/model/Cluster.java