public Channel withEventPublishers(String... eventPublishers) {
        if (this.eventPublishers == null) {
            setEventPublishers(new java.util.ArrayList<String>(eventPublishers.length));
        }
        for (String ele : eventPublishers) {
            this.eventPublishers.add(ele);
        }
        return this;
    }
<p>
List of publishers for different type of events that may be detected in an application from the profile. Anomaly
detection is the only event publisher in Profiler.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEventPublishers(java.util.Collection)} or {@link #withEventPublishers(java.util.Collection)} if you
want to override the existing values.
</p>

@param eventPublishers
       List of publishers for different type of events that may be detected in an application from the profile.
       Anomaly detection is the only event publisher in Profiler.
@return Returns a reference to this object so that method calls can be chained together.
@see EventPublisher
aws-java-sdk-codeguruprofiler/src/main/java/com/amazonaws/services/codeguruprofiler/model/Channel.java