public LogPattern withPattern(String pattern) {
        setPattern(pattern);
        return this;
    }
<p>
A regular expression that defines the log pattern. A log pattern can contain as many as 50 characters, and it
cannot be empty. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference
constructions are not supported.
</p>

@param pattern
       A regular expression that defines the log pattern. A log pattern can contain as many as 50 characters, and
       it cannot be empty. The pattern must be DFA compatible. Patterns that utilize forward lookahead or
       backreference constructions are not supported.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/LogPattern.java