public HierarchicalChunkingConfiguration withLevelConfigurations(HierarchicalChunkingLevelConfiguration... levelConfigurations) {
        if (this.levelConfigurations == null) {
            setLevelConfigurations(new java.util.ArrayList<HierarchicalChunkingLevelConfiguration>(levelConfigurations.length));
        }
        for (HierarchicalChunkingLevelConfiguration ele : levelConfigurations) {
            this.levelConfigurations.add(ele);
        }
        return this;
    }
<p>
Token settings for each layer.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLevelConfigurations(java.util.Collection)} or {@link #withLevelConfigurations(java.util.Collection)}
if you want to override the existing values.
</p>

@param levelConfigurations
       Token settings for each layer.
@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/HierarchicalChunkingConfiguration.java