public TestMetricFilterRequest withLogEventMessages(String... logEventMessages) {
        if (this.logEventMessages == null) {
            setLogEventMessages(new com.amazonaws.internal.SdkInternalList<String>(logEventMessages.length));
        }
        for (String ele : logEventMessages) {
            this.logEventMessages.add(ele);
        }
        return this;
    }
<p>
The log event messages to test.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLogEventMessages(java.util.Collection)} or {@link #withLogEventMessages(java.util.Collection)} if you
want to override the existing values.
</p>

@param logEventMessages
       The log event messages to test.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/TestMetricFilterRequest.java