public GetSensitiveDataOccurrencesResult addSensitiveDataOccurrencesEntry(String key, java.util.List<DetectedDataDetails> value) {
        if (null == this.sensitiveDataOccurrences) {
            this.sensitiveDataOccurrences = new java.util.HashMap<String, java.util.List<DetectedDataDetails>>();
        }
        if (this.sensitiveDataOccurrences.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.sensitiveDataOccurrences.put(key, value);
        return this;
    }
Add a single SensitiveDataOccurrences entry

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