public ComplianceDrift addExpectedValueEntry(String key, DisruptionCompliance value) {
        if (null == this.expectedValue) {
            this.expectedValue = new java.util.HashMap<String, DisruptionCompliance>();
        }
        if (this.expectedValue.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.expectedValue.put(key, value);
        return this;
    }
Add a single ExpectedValue entry

@see ComplianceDrift#withExpectedValue
@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/ComplianceDrift.java