public void setVariants(java.util.Collection<ComponentVariant> variants) {
        if (variants == null) {
            this.variants = null;
            return;
        }

        this.variants = new java.util.ArrayList<ComponentVariant>(variants);
    }
<p>
A list of the component's variants. A variant is a unique style configuration of a main component.
</p>

@param variants
       A list of the component's variants. A variant is a unique style configuration of a main component.
aws-java-sdk-amplifyuibuilder/src/main/java/com/amazonaws/services/amplifyuibuilder/model/Component.java