public UpdateArchiveRequest withEventPattern(String eventPattern) {
        setEventPattern(eventPattern);
        return this;
    }
<p>
The event pattern to use to filter events sent to the archive.
</p>

@param eventPattern
       The event pattern to use to filter events sent to the archive.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/UpdateArchiveRequest.java