@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof DominantColor == false)
            return false;
        DominantColor other = (DominantColor) obj;
        if (other.getRed() == null ^ this.getRed() == null)
            return false;
        if (other.getRed() != null && other.getRed().equals(this.getRed()) == false)
            return false;
        if (other.getBlue() == null ^ this.getBlue() == null)
            return false;
        if (other.getBlue() != null && other.getBlue().equals(this.getBlue()) == false)
            return false;
        if (other.getGreen() == null ^ this.getGreen() == null)
            return false;
        if (other.getGreen() != null && other.getGreen().equals(this.getGreen()) == false)
            return false;
        if (other.getHexCode() == null ^ this.getHexCode() == null)
            return false;
        if (other.getHexCode() != null && other.getHexCode().equals(this.getHexCode()) == false)
            return false;
        if (other.getCSSColor() == null ^ this.getCSSColor() == null)
            return false;
        if (other.getCSSColor() != null && other.getCSSColor().equals(this.getCSSColor()) == false)
            return false;
        if (other.getSimplifiedColor() == null ^ this.getSimplifiedColor() == null)
            return false;
        if (other.getSimplifiedColor() != null && other.getSimplifiedColor().equals(this.getSimplifiedColor()) == false)
            return false;
        if (other.getPixelPercent() == null ^ this.getPixelPercent() == null)
            return false;
        if (other.getPixelPercent() != null && other.getPixelPercent().equals(this.getPixelPercent()) == false)
            return false;
        return true;
    }
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