public CreateFeatureRequest withVariations(VariationConfig... variations) {
        if (this.variations == null) {
            setVariations(new java.util.ArrayList<VariationConfig>(variations.length));
        }
        for (VariationConfig ele : variations) {
            this.variations.add(ele);
        }
        return this;
    }
<p>
An array of structures that contain the configuration of the feature's different variations.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVariations(java.util.Collection)} or {@link #withVariations(java.util.Collection)} if you want to
override the existing values.
</p>

@param variations
       An array of structures that contain the configuration of the feature's different variations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatchevidently/src/main/java/com/amazonaws/services/cloudwatchevidently/model/CreateFeatureRequest.java