public ManagedRuleSet addPublishedVersionsEntry(String key, ManagedRuleSetVersion value) {
        if (null == this.publishedVersions) {
            this.publishedVersions = new java.util.HashMap<String, ManagedRuleSetVersion>();
        }
        if (this.publishedVersions.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.publishedVersions.put(key, value);
        return this;
    }
Add a single PublishedVersions entry

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