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

@see CopyPackageVersionsResult#withFailedVersions
@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