public ContainerRecipe withComponents(ComponentConfiguration... components) {
        if (this.components == null) {
            setComponents(new java.util.ArrayList<ComponentConfiguration>(components.length));
        }
        for (ComponentConfiguration ele : components) {
            this.components.add(ele);
        }
        return this;
    }
<p>
Build and test components that are included in the container recipe. Recipes require a minimum of one build
component, and can have a maximum of 20 build and test components in any combination.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setComponents(java.util.Collection)} or {@link #withComponents(java.util.Collection)} if you want to
override the existing values.
</p>

@param components
       Build and test components that are included in the container recipe. Recipes require a minimum of one
       build component, and can have a maximum of 20 build and test components in any combination.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/ContainerRecipe.java