public void setProductCodes(java.util.Collection<ProductCode> productCodes) {
        if (productCodes == null) {
            this.productCodes = null;
            return;
        }

        this.productCodes = new java.util.ArrayList<ProductCode>(productCodes);
    }
<p>
The product code of the EC2 instance.
</p>

@param productCodes
       The product code of the EC2 instance.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/InstanceDetails.java