public CopyPackageVersionsResult addSuccessfulVersionsEntry(String key, SuccessfulPackageVersionInfo value) {
        if (null == this.successfulVersions) {
            this.successfulVersions = new java.util.HashMap<String, SuccessfulPackageVersionInfo>();
        }
        if (this.successfulVersions.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.successfulVersions.put(key, value);
        return this;
    }
Add a single SuccessfulVersions entry

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