public CustomTransformationConfiguration withTransformations(Transformation... transformations) {
        if (this.transformations == null) {
            setTransformations(new java.util.ArrayList<Transformation>(transformations.length));
        }
        for (Transformation ele : transformations) {
            this.transformations.add(ele);
        }
        return this;
    }
<p>
A Lambda function that processes documents.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTransformations(java.util.Collection)} or {@link #withTransformations(java.util.Collection)} if you
want to override the existing values.
</p>

@param transformations
       A Lambda function that processes documents.
@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/CustomTransformationConfiguration.java