public CreateLogPatternRequest withPattern(String pattern) {
        setPattern(pattern);
        return this;
    }
<p>
The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference
constructions are not supported.
</p>

@param pattern
       The log pattern. 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/CreateLogPatternRequest.java