Class CfnComponentPropsMixin.ComponentChildProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.amplifyuibuilder.CfnComponentPropsMixin.ComponentChildProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentPropsMixin.ComponentChildProperty>
- Enclosing interface:
CfnComponentPropsMixin.ComponentChildProperty
@Stability(Stable)
public static final class CfnComponentPropsMixin.ComponentChildProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentPropsMixin.ComponentChildProperty>
A builder for
CfnComponentPropsMixin.ComponentChildProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getChildren()children(IResolvable children) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getChildren()componentType(String componentType) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getComponentType()Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getEvents()events(IResolvable events) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getEvents()Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getName()properties(Map<String, ? extends Object> properties) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getProperties()properties(IResolvable properties) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getProperties()Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getSourceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
children
@Stability(Stable) public CfnComponentPropsMixin.ComponentChildProperty.Builder children(IResolvable children) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getChildren()- Parameters:
children- The list ofComponentChildinstances for this component.- Returns:
this
-
children
@Stability(Stable) public CfnComponentPropsMixin.ComponentChildProperty.Builder children(List<? extends Object> children) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getChildren()- Parameters:
children- The list ofComponentChildinstances for this component.- Returns:
this
-
componentType
@Stability(Stable) public CfnComponentPropsMixin.ComponentChildProperty.Builder componentType(String componentType) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getComponentType()- Parameters:
componentType- The type of the child component.- Returns:
this
-
events
@Stability(Stable) public CfnComponentPropsMixin.ComponentChildProperty.Builder events(IResolvable events) Sets the value ofCfnComponentPropsMixin.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 CfnComponentPropsMixin.ComponentChildProperty.Builder events(Map<String, ? extends Object> events) Sets the value ofCfnComponentPropsMixin.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
-
name
Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getName()- Parameters:
name- The name of the child component.- Returns:
this
-
properties
@Stability(Stable) public CfnComponentPropsMixin.ComponentChildProperty.Builder properties(IResolvable properties) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getProperties()- Parameters:
properties- Describes the properties of the child component. You can't specifytagsas a valid property forproperties.- Returns:
this
-
properties
@Stability(Stable) public CfnComponentPropsMixin.ComponentChildProperty.Builder properties(Map<String, ? extends Object> properties) Sets the value ofCfnComponentPropsMixin.ComponentChildProperty.getProperties()- Parameters:
properties- Describes the properties of the child component. You can't specifytagsas a valid property forproperties.- Returns:
this
-
sourceId
@Stability(Stable) public CfnComponentPropsMixin.ComponentChildProperty.Builder sourceId(String sourceId) Sets the value ofCfnComponentPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnComponentPropsMixin.ComponentChildProperty>- Returns:
- a new instance of
CfnComponentPropsMixin.ComponentChildProperty - Throws:
NullPointerException- if any required attribute was not provided
-