public SemanticChunkingConfiguration withMaxTokens(Integer maxTokens) {
        setMaxTokens(maxTokens);
        return this;
    }
<p>
The maximum number of tokens that a chunk can contain.
</p>

@param maxTokens
       The maximum number of tokens that a chunk can contain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/SemanticChunkingConfiguration.java