public ResiliencyScore addComponentScoreEntry(String key, ScoringComponentResiliencyScore value) {
        if (null == this.componentScore) {
            this.componentScore = new java.util.HashMap<String, ScoringComponentResiliencyScore>();
        }
        if (this.componentScore.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.componentScore.put(key, value);
        return this;
    }
Add a single ComponentScore entry

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