Class CfnComponent.ComponentChildProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentChildProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent.ComponentChildProperty>
- Enclosing interface:
CfnComponent.ComponentChildProperty
@Stability(Stable)
public static final class CfnComponent.ComponentChildProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponent.ComponentChildProperty>
A builder for
CfnComponent.ComponentChildProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnComponent.ComponentChildProperty.getChildren()
children
(IResolvable children) Sets the value ofCfnComponent.ComponentChildProperty.getChildren()
componentType
(String componentType) Sets the value ofCfnComponent.ComponentChildProperty.getComponentType()
Sets the value ofCfnComponent.ComponentChildProperty.getEvents()
events
(IResolvable events) Sets the value ofCfnComponent.ComponentChildProperty.getEvents()
Sets the value ofCfnComponent.ComponentChildProperty.getName()
properties
(Map<String, ? extends Object> properties) Sets the value ofCfnComponent.ComponentChildProperty.getProperties()
properties
(IResolvable properties) Sets the value ofCfnComponent.ComponentChildProperty.getProperties()
Sets the value ofCfnComponent.ComponentChildProperty.getSourceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentType
@Stability(Stable) public CfnComponent.ComponentChildProperty.Builder componentType(String componentType) Sets the value ofCfnComponent.ComponentChildProperty.getComponentType()
- Parameters:
componentType
- The type of the child component. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnComponent.ComponentChildProperty.getName()
- Parameters:
name
- The name of the child component. This parameter is required.- Returns:
this
-
properties
@Stability(Stable) public CfnComponent.ComponentChildProperty.Builder properties(IResolvable properties) Sets the value ofCfnComponent.ComponentChildProperty.getProperties()
- Parameters:
properties
- Describes the properties of the child component. This parameter is required. You can't specifytags
as a valid property forproperties
.- Returns:
this
-
properties
@Stability(Stable) public CfnComponent.ComponentChildProperty.Builder properties(Map<String, ? extends Object> properties) Sets the value ofCfnComponent.ComponentChildProperty.getProperties()
- Parameters:
properties
- Describes the properties of the child component. This parameter is required. You can't specifytags
as a valid property forproperties
.- Returns:
this
-
children
@Stability(Stable) public CfnComponent.ComponentChildProperty.Builder children(IResolvable children) Sets the value ofCfnComponent.ComponentChildProperty.getChildren()
- Parameters:
children
- The list ofComponentChild
instances for this component.- Returns:
this
-
children
@Stability(Stable) public CfnComponent.ComponentChildProperty.Builder children(List<? extends Object> children) Sets the value ofCfnComponent.ComponentChildProperty.getChildren()
- Parameters:
children
- The list ofComponentChild
instances for this component.- Returns:
this
-
events
Sets the value ofCfnComponent.ComponentChildProperty.getEvents()
- Parameters:
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.- Returns:
this
-
events
@Stability(Stable) public CfnComponent.ComponentChildProperty.Builder events(Map<String, ? extends Object> events) Sets the value ofCfnComponent.ComponentChildProperty.getEvents()
- Parameters:
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.- Returns:
this
-
sourceId
Sets the value ofCfnComponent.ComponentChildProperty.getSourceId()
- Parameters:
sourceId
- The unique ID of the child component in its original source system, such as Figma.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponent.ComponentChildProperty>
- Returns:
- a new instance of
CfnComponent.ComponentChildProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-