public void setCardinality(String cardinality) {
    this.cardinality = cardinality;
  }
Set component cardinality requirement.

@param cardinality cardinality requirement
ambari-server/src/main/java/org/apache/ambari/server/controller/StackServiceComponentResponse.java