public LensMetric addRiskCountsEntry(String key, Integer value) {
        if (null == this.riskCounts) {
            this.riskCounts = new java.util.HashMap<String, Integer>();
        }
        if (this.riskCounts.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.riskCounts.put(key, value);
        return this;
    }
Add a single RiskCounts entry

@see LensMetric#withRiskCounts
@returns a reference to this object so that method calls can be chained together.
aws-java-sdk-wellarchitected/src/main/java/com/amazonaws/services/wellarchitected/model/LensMetric.java