public static interface ComponentChild.Builder extends SdkPojo, CopyableBuilder<ComponentChild.Builder,ComponentChild>
| Modifier and Type | Method and Description |
|---|---|
ComponentChild.Builder |
children(Collection<ComponentChild> children)
The list of
ComponentChild instances for this component. |
ComponentChild.Builder |
children(ComponentChild... children)
The list of
ComponentChild instances for this component. |
ComponentChild.Builder |
children(Consumer<ComponentChild.Builder>... children)
The list of
ComponentChild instances for this component. |
ComponentChild.Builder |
componentType(String componentType)
The type of the child component.
|
ComponentChild.Builder |
events(Map<String,ComponentEvent> events)
Describes the events that can be raised on the child component.
|
ComponentChild.Builder |
name(String name)
The name of the child component.
|
ComponentChild.Builder |
properties(Map<String,ComponentProperty> properties)
Describes the properties of the child component.
|
ComponentChild.Builder |
sourceId(String sourceId)
The unique ID of the child component in its original source system, such as Figma.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildComponentChild.Builder componentType(String componentType)
The type of the child component.
componentType - The type of the child component.ComponentChild.Builder name(String name)
The name of the child component.
name - The name of the child component.ComponentChild.Builder properties(Map<String,ComponentProperty> properties)
Describes the properties of the child component. You can't specify tags as a valid property for
properties.
properties - Describes the properties of the child component. You can't specify tags as a valid
property for properties.ComponentChild.Builder children(Collection<ComponentChild> children)
The list of ComponentChild instances for this component.
children - The list of ComponentChild instances for this component.ComponentChild.Builder children(ComponentChild... children)
The list of ComponentChild instances for this component.
children - The list of ComponentChild instances for this component.ComponentChild.Builder children(Consumer<ComponentChild.Builder>... children)
The list of ComponentChild instances for this component.
ComponentChild.Builder avoiding the need to
create one manually via
ComponentChild.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #children(List.
children - a consumer that will call methods on
ComponentChild.Builder#children(java.util.Collection) ComponentChild.Builder events(Map<String,ComponentEvent> events)
Describes the events that can be raised on the child component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
events - Describes the events that can be raised on the child component. Use for the workflow feature in
Amplify Studio that allows you to bind events and actions to components.ComponentChild.Builder sourceId(String sourceId)
The unique ID of the child component in its original source system, such as Figma.
sourceId - The unique ID of the child component in its original source system, such as Figma.Copyright © 2023. All rights reserved.