public static final class CfnComponentProps.Builder
extends java.lang.Object
CfnComponentProps
Constructor and Description |
---|
Builder() |
public CfnComponentProps.Builder bindingProperties(java.util.Map<java.lang.String,? extends java.lang.Object> bindingProperties)
CfnComponentProps.getBindingProperties()
bindingProperties
- The information to connect a component's properties to data at runtime. This parameter is required.
You can't specify tags
as a valid property for bindingProperties
.this
public CfnComponentProps.Builder bindingProperties(IResolvable bindingProperties)
CfnComponentProps.getBindingProperties()
bindingProperties
- The information to connect a component's properties to data at runtime. This parameter is required.
You can't specify tags
as a valid property for bindingProperties
.this
public CfnComponentProps.Builder componentType(java.lang.String componentType)
CfnComponentProps.getComponentType()
componentType
- The type of the component. This parameter is required.
This can be an Amplify custom UI component or another custom component.this
public CfnComponentProps.Builder name(java.lang.String name)
CfnComponentProps.getName()
name
- The name of the component. This parameter is required.this
public CfnComponentProps.Builder overrides(IResolvable overrides)
CfnComponentProps.getOverrides()
overrides
- Describes the component's properties that can be overriden in a customized instance of the component. This parameter is required.
You can't specify tags
as a valid property for overrides
.this
public CfnComponentProps.Builder overrides(java.util.Map<java.lang.String,? extends java.lang.Object> overrides)
CfnComponentProps.getOverrides()
overrides
- Describes the component's properties that can be overriden in a customized instance of the component. This parameter is required.
You can't specify tags
as a valid property for overrides
.this
public CfnComponentProps.Builder properties(IResolvable properties)
CfnComponentProps.getProperties()
properties
- Describes the component's properties. This parameter is required.
You can't specify tags
as a valid property for properties
.this
public CfnComponentProps.Builder properties(java.util.Map<java.lang.String,? extends java.lang.Object> properties)
CfnComponentProps.getProperties()
properties
- Describes the component's properties. This parameter is required.
You can't specify tags
as a valid property for properties
.this
public CfnComponentProps.Builder variants(IResolvable variants)
CfnComponentProps.getVariants()
variants
- A list of the component's variants. This parameter is required.
A variant is a unique style configuration of a main component.this
public CfnComponentProps.Builder variants(java.util.List<? extends java.lang.Object> variants)
CfnComponentProps.getVariants()
variants
- A list of the component's variants. This parameter is required.
A variant is a unique style configuration of a main component.this
public CfnComponentProps.Builder children(IResolvable children)
CfnComponentProps.getChildren()
children
- A list of the component's `ComponentChild` instances.this
public CfnComponentProps.Builder children(java.util.List<? extends java.lang.Object> children)
CfnComponentProps.getChildren()
children
- A list of the component's `ComponentChild` instances.this
public CfnComponentProps.Builder collectionProperties(IResolvable collectionProperties)
CfnComponentProps.getCollectionProperties()
collectionProperties
- The data binding configuration for the component's properties.
Use this for a collection component. You can't specify tags
as a valid property for collectionProperties
.this
public CfnComponentProps.Builder collectionProperties(java.util.Map<java.lang.String,? extends java.lang.Object> collectionProperties)
CfnComponentProps.getCollectionProperties()
collectionProperties
- The data binding configuration for the component's properties.
Use this for a collection component. You can't specify tags
as a valid property for collectionProperties
.this
public CfnComponentProps.Builder events(IResolvable events)
CfnComponentProps.getEvents()
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.this
public CfnComponentProps.Builder events(java.util.Map<java.lang.String,? extends java.lang.Object> events)
CfnComponentProps.getEvents()
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.this
public CfnComponentProps.Builder schemaVersion(java.lang.String schemaVersion)
CfnComponentProps.getSchemaVersion()
schemaVersion
- The schema version of the component when it was imported.this
public CfnComponentProps.Builder sourceId(java.lang.String sourceId)
CfnComponentProps.getSourceId()
sourceId
- The unique ID of the component in its original source system, such as Figma.this
public CfnComponentProps.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
CfnComponentProps.getTags()
tags
- One or more key-value pairs to use when tagging the component.this
public CfnComponentProps build()
CfnComponentProps
java.lang.NullPointerException
- if any required attribute was not provided