public BatchGetPreparedStatementRequest withPreparedStatementNames(String... preparedStatementNames) {
        if (this.preparedStatementNames == null) {
            setPreparedStatementNames(new java.util.ArrayList<String>(preparedStatementNames.length));
        }
        for (String ele : preparedStatementNames) {
            this.preparedStatementNames.add(ele);
        }
        return this;
    }
<p>
A list of prepared statement names to return.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPreparedStatementNames(java.util.Collection)} or
{@link #withPreparedStatementNames(java.util.Collection)} if you want to override the existing values.
</p>

@param preparedStatementNames
       A list of prepared statement names to return.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-athena/src/main/java/com/amazonaws/services/athena/model/BatchGetPreparedStatementRequest.java