public SpellCorrectedQuery withCorrections(Correction... corrections) {
        if (this.corrections == null) {
            setCorrections(new java.util.ArrayList<Correction>(corrections.length));
        }
        for (Correction ele : corrections) {
            this.corrections.add(ele);
        }
        return this;
    }
<p>
The corrected misspelled word or words in a query.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCorrections(java.util.Collection)} or {@link #withCorrections(java.util.Collection)} if you want to
override the existing values.
</p>

@param corrections
       The corrected misspelled word or words in a query.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/SpellCorrectedQuery.java