@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getQueryId() != null)
            sb.append("QueryId: ").append(getQueryId()).append(",");
        if (getResultItems() != null)
            sb.append("ResultItems: ").append(getResultItems()).append(",");
        if (getFacetResults() != null)
            sb.append("FacetResults: ").append(getFacetResults()).append(",");
        if (getTotalNumberOfResults() != null)
            sb.append("TotalNumberOfResults: ").append(getTotalNumberOfResults()).append(",");
        if (getWarnings() != null)
            sb.append("Warnings: ").append(getWarnings()).append(",");
        if (getSpellCorrectedQueries() != null)
            sb.append("SpellCorrectedQueries: ").append(getSpellCorrectedQueries()).append(",");
        if (getFeaturedResultsItems() != null)
            sb.append("FeaturedResultsItems: ").append(getFeaturedResultsItems());
        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-kendra/src/main/java/com/amazonaws/services/kendra/model/QueryResult.java