public DetectLabelsImageForeground withDominantColors(java.util.Collection<DominantColor> dominantColors) {
        setDominantColors(dominantColors);
        return this;
    }
<p>
The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified
color name, and PixelPercentage (the percentage of image pixels that have a particular color).
</p>

@param dominantColors
       The dominant colors found in the foreground of an image, defined with RGB values, CSS color name,
       simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DetectLabelsImageForeground.java