@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getRed() != null)
            sb.append("Red: ").append(getRed()).append(",");
        if (getBlue() != null)
            sb.append("Blue: ").append(getBlue()).append(",");
        if (getGreen() != null)
            sb.append("Green: ").append(getGreen()).append(",");
        if (getHexCode() != null)
            sb.append("HexCode: ").append(getHexCode()).append(",");
        if (getCSSColor() != null)
            sb.append("CSSColor: ").append(getCSSColor()).append(",");
        if (getSimplifiedColor() != null)
            sb.append("SimplifiedColor: ").append(getSimplifiedColor()).append(",");
        if (getPixelPercent() != null)
            sb.append("PixelPercent: ").append(getPixelPercent());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DominantColor.java