public ModifyFpgaImageAttributeRequest withProductCodes(java.util.Collection<String> productCodes) {
        setProductCodes(productCodes);
        return this;
    }
<p>
The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when
modifying the <code>productCodes</code> attribute.
</p>

@param productCodes
       The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid
       only when modifying the <code>productCodes</code> attribute.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ModifyFpgaImageAttributeRequest.java