public SearchPromptsResult withPrompts(Prompt... prompts) {
        if (this.prompts == null) {
            setPrompts(new java.util.ArrayList<Prompt>(prompts.length));
        }
        for (Prompt ele : prompts) {
            this.prompts.add(ele);
        }
        return this;
    }
<p>
Information about the prompts.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPrompts(java.util.Collection)} or {@link #withPrompts(java.util.Collection)} if you want to override
the existing values.
</p>

@param prompts
       Information about the prompts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsResult.java