public CopyPackageVersionsResult withFailedVersions(java.util.Map<String, PackageVersionError> failedVersions) {
        setFailedVersions(failedVersions);
        return this;
    }
<p>
A map of package versions that failed to copy and their error codes. The possible error codes are in the
<code>PackageVersionError</code> data type. They are:
</p>
<ul>
<li>
<p>
<code>ALREADY_EXISTS</code>
</p>
</li>
<li>
<p>
<code>MISMATCHED_REVISION</code>
</p>
</li>
<li>
<p>
<code>MISMATCHED_STATUS</code>
</p>
</li>
<li>
<p>
<code>NOT_ALLOWED</code>
</p>
</li>
<li>
<p>
<code>NOT_FOUND</code>
</p>
</li>
<li>
<p>
<code>SKIPPED</code>
</p>
</li>
</ul>

@param failedVersions
       A map of package versions that failed to copy and their error codes. The possible error codes are in the
       <code>PackageVersionError</code> data type. They are: </p>
       <ul>
       <li>
       <p>
       <code>ALREADY_EXISTS</code>
       </p>
       </li>
       <li>
       <p>
       <code>MISMATCHED_REVISION</code>
       </p>
       </li>
       <li>
       <p>
       <code>MISMATCHED_STATUS</code>
       </p>
       </li>
       <li>
       <p>
       <code>NOT_ALLOWED</code>
       </p>
       </li>
       <li>
       <p>
       <code>NOT_FOUND</code>
       </p>
       </li>
       <li>
       <p>
       <code>SKIPPED</code>
       </p>
       </li>
@return 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