Class CfnComponentProps.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnComponentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentProps>
- Enclosing interface:
CfnComponentProps
@Stability(Stable)
public static final class CfnComponentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentProps>
A builder for
CfnComponentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnComponentProps.getAppId()
bindingProperties
(Map<String, ? extends Object> bindingProperties) Sets the value ofCfnComponentProps.getBindingProperties()
bindingProperties
(IResolvable bindingProperties) Sets the value ofCfnComponentProps.getBindingProperties()
build()
Builds the configured instance.Sets the value ofCfnComponentProps.getChildren()
children
(IResolvable children) Sets the value ofCfnComponentProps.getChildren()
collectionProperties
(Map<String, ? extends Object> collectionProperties) Sets the value ofCfnComponentProps.getCollectionProperties()
collectionProperties
(IResolvable collectionProperties) Sets the value ofCfnComponentProps.getCollectionProperties()
componentType
(String componentType) Sets the value ofCfnComponentProps.getComponentType()
environmentName
(String environmentName) Sets the value ofCfnComponentProps.getEnvironmentName()
Sets the value ofCfnComponentProps.getEvents()
events
(IResolvable events) Sets the value ofCfnComponentProps.getEvents()
Sets the value ofCfnComponentProps.getName()
Sets the value ofCfnComponentProps.getOverrides()
properties
(Map<String, ? extends Object> properties) Sets the value ofCfnComponentProps.getProperties()
properties
(IResolvable properties) Sets the value ofCfnComponentProps.getProperties()
schemaVersion
(String schemaVersion) Sets the value ofCfnComponentProps.getSchemaVersion()
Sets the value ofCfnComponentProps.getSourceId()
Sets the value ofCfnComponentProps.getTags()
Sets the value ofCfnComponentProps.getVariants()
variants
(IResolvable variants) Sets the value ofCfnComponentProps.getVariants()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appId
Sets the value ofCfnComponentProps.getAppId()
- Parameters:
appId
- The unique ID of the Amplify app associated with the component.- Returns:
this
-
bindingProperties
@Stability(Stable) public CfnComponentProps.Builder bindingProperties(IResolvable bindingProperties) Sets the value ofCfnComponentProps.getBindingProperties()
- Parameters:
bindingProperties
- The information to connect a component's properties to data at runtime. You can't specifytags
as a valid property forbindingProperties
.- Returns:
this
-
bindingProperties
@Stability(Stable) public CfnComponentProps.Builder bindingProperties(Map<String, ? extends Object> bindingProperties) Sets the value ofCfnComponentProps.getBindingProperties()
- Parameters:
bindingProperties
- The information to connect a component's properties to data at runtime. You can't specifytags
as a valid property forbindingProperties
.- Returns:
this
-
children
Sets the value ofCfnComponentProps.getChildren()
- Parameters:
children
- A list of the component'sComponentChild
instances.- Returns:
this
-
children
Sets the value ofCfnComponentProps.getChildren()
- Parameters:
children
- A list of the component'sComponentChild
instances.- Returns:
this
-
collectionProperties
@Stability(Stable) public CfnComponentProps.Builder collectionProperties(IResolvable collectionProperties) Sets the value ofCfnComponentProps.getCollectionProperties()
- Parameters:
collectionProperties
- The data binding configuration for the component's properties. Use this for a collection component. You can't specifytags
as a valid property forcollectionProperties
.- Returns:
this
-
collectionProperties
@Stability(Stable) public CfnComponentProps.Builder collectionProperties(Map<String, ? extends Object> collectionProperties) Sets the value ofCfnComponentProps.getCollectionProperties()
- Parameters:
collectionProperties
- The data binding configuration for the component's properties. Use this for a collection component. You can't specifytags
as a valid property forcollectionProperties
.- Returns:
this
-
componentType
Sets the value ofCfnComponentProps.getComponentType()
- Parameters:
componentType
- The type of the component. This can be an Amplify custom UI component or another custom component.- Returns:
this
-
environmentName
Sets the value ofCfnComponentProps.getEnvironmentName()
- Parameters:
environmentName
- The name of the backend environment that is a part of the Amplify app.- Returns:
this
-
events
Sets the value ofCfnComponentProps.getEvents()
- Parameters:
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.- Returns:
this
-
events
Sets the value ofCfnComponentProps.getEvents()
- Parameters:
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.- Returns:
this
-
name
Sets the value ofCfnComponentProps.getName()
- Parameters:
name
- The name of the component.- Returns:
this
-
overrides
Sets the value ofCfnComponentProps.getOverrides()
- Parameters:
overrides
- Describes the component's properties that can be overriden in a customized instance of the component. You can't specifytags
as a valid property foroverrides
.- Returns:
this
-
properties
Sets the value ofCfnComponentProps.getProperties()
- Parameters:
properties
- Describes the component's properties. You can't specifytags
as a valid property forproperties
.- Returns:
this
-
properties
@Stability(Stable) public CfnComponentProps.Builder properties(Map<String, ? extends Object> properties) Sets the value ofCfnComponentProps.getProperties()
- Parameters:
properties
- Describes the component's properties. You can't specifytags
as a valid property forproperties
.- Returns:
this
-
schemaVersion
Sets the value ofCfnComponentProps.getSchemaVersion()
- Parameters:
schemaVersion
- The schema version of the component when it was imported.- Returns:
this
-
sourceId
Sets the value ofCfnComponentProps.getSourceId()
- Parameters:
sourceId
- The unique ID of the component in its original source system, such as Figma.- Returns:
this
-
tags
Sets the value ofCfnComponentProps.getTags()
- Parameters:
tags
- One or more key-value pairs to use when tagging the component.- Returns:
this
-
variants
Sets the value ofCfnComponentProps.getVariants()
- Parameters:
variants
- A list of the component's variants. A variant is a unique style configuration of a main component.- Returns:
this
-
variants
Sets the value ofCfnComponentProps.getVariants()
- Parameters:
variants
- A list of the component's variants. A variant is a unique style configuration of a main component.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponentProps>
- Returns:
- a new instance of
CfnComponentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-