public Component withEvents(java.util.Map<String, ComponentEvent> events) {
        setEvents(events);
        return this;
    }
<p>
Describes the events that can be raised on the component. Use for the workflow feature in Amplify Studio that
allows you to bind events and actions to components.
</p>

@param events
       Describes the events that can be raised on the component. Use for the workflow feature in Amplify Studio
       that allows you to bind events and actions to components.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplifyuibuilder/src/main/java/com/amazonaws/services/amplifyuibuilder/model/Component.java