public void setPattern(String pattern) {
        this.pattern = pattern;
    }
<p>
The regular expression pattern to configure for the guardrail.
</p>

@param pattern
       The regular expression pattern to configure for the guardrail.
aws-java-sdk-bedrock/src/main/java/com/amazonaws/services/bedrock/model/GuardrailRegexConfig.java