public OptionRestrictionRegex withPattern(String pattern) {
        setPattern(pattern);
        return this;
    }
<p>
The regular expression pattern that a string configuration option value with this restriction must match.
</p>

@param pattern
       The regular expression pattern that a string configuration option value with this restriction must match.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/OptionRestrictionRegex.java