Interface CreateComponentData.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CreateComponentData.Builder,CreateComponentData>,SdkBuilder<CreateComponentData.Builder,CreateComponentData>,SdkPojo
- Enclosing class:
- CreateComponentData
public static interface CreateComponentData.Builder extends SdkPojo, CopyableBuilder<CreateComponentData.Builder,CreateComponentData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateComponentData.BuilderbindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)The data binding information for the component's properties.CreateComponentData.Builderchildren(Collection<ComponentChild> children)A list of child components that are instances of the main component.CreateComponentData.Builderchildren(Consumer<ComponentChild.Builder>... children)A list of child components that are instances of the main component.CreateComponentData.Builderchildren(ComponentChild... children)A list of child components that are instances of the main component.CreateComponentData.BuildercollectionProperties(Map<String,ComponentDataConfiguration> collectionProperties)The data binding configuration for customizing a component's properties.CreateComponentData.BuildercomponentType(String componentType)The component type.CreateComponentData.Builderevents(Map<String,ComponentEvent> events)The event configuration for the component.CreateComponentData.Buildername(String name)The name of the componentCreateComponentData.Builderoverrides(Map<String,? extends Map<String,String>> overrides)Describes the component properties that can be overriden to customize an instance of the component.CreateComponentData.Builderproperties(Map<String,ComponentProperty> properties)Describes the component's properties.CreateComponentData.BuilderschemaVersion(String schemaVersion)The schema version of the component when it was imported.CreateComponentData.BuildersourceId(String sourceId)The unique ID of the component in its original source system, such as Figma.CreateComponentData.Buildertags(Map<String,String> tags)One or more key-value pairs to use when tagging the component data.CreateComponentData.Buildervariants(Collection<ComponentVariant> variants)A list of the unique variants of this component.CreateComponentData.Buildervariants(Consumer<ComponentVariant.Builder>... variants)A list of the unique variants of this component.CreateComponentData.Buildervariants(ComponentVariant... variants)A list of the unique variants of this component.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
CreateComponentData.Builder name(String name)
The name of the component
- Parameters:
name- The name of the component- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceId
CreateComponentData.Builder sourceId(String sourceId)
The unique ID of the component in its original source system, such as Figma.
- Parameters:
sourceId- The unique ID of the component in its original source system, such as Figma.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
componentType
CreateComponentData.Builder componentType(String componentType)
The component type. This can be an Amplify custom UI component or another custom component.
- Parameters:
componentType- The component type. This can be an Amplify custom UI component or another custom component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
CreateComponentData.Builder properties(Map<String,ComponentProperty> properties)
Describes the component's properties.
- Parameters:
properties- Describes the component's properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
children
CreateComponentData.Builder children(Collection<ComponentChild> children)
A list of child components that are instances of the main component.
- Parameters:
children- A list of child components that are instances of the main component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
children
CreateComponentData.Builder children(ComponentChild... children)
A list of child components that are instances of the main component.
- Parameters:
children- A list of child components that are instances of the main component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
children
CreateComponentData.Builder children(Consumer<ComponentChild.Builder>... children)
A list of child components that are instances of the main component.
This is a convenience method that creates an instance of theComponentChild.Builderavoiding the need to create one manually viaComponentChild.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#children(List.) - Parameters:
children- a consumer that will call methods onComponentChild.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#children(java.util.Collection)
-
variants
CreateComponentData.Builder variants(Collection<ComponentVariant> variants)
A list of the unique variants of this component.
- Parameters:
variants- A list of the unique variants of this component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
CreateComponentData.Builder variants(ComponentVariant... variants)
A list of the unique variants of this component.
- Parameters:
variants- A list of the unique variants of this component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
CreateComponentData.Builder variants(Consumer<ComponentVariant.Builder>... variants)
A list of the unique variants of this component.
This is a convenience method that creates an instance of theComponentVariant.Builderavoiding the need to create one manually viaComponentVariant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#variants(List.) - Parameters:
variants- a consumer that will call methods onComponentVariant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#variants(java.util.Collection)
-
overrides
CreateComponentData.Builder overrides(Map<String,? extends Map<String,String>> overrides)
Describes the component properties that can be overriden to customize an instance of the component.
- Parameters:
overrides- Describes the component properties that can be overriden to customize an instance of the component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bindingProperties
CreateComponentData.Builder bindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)
The data binding information for the component's properties.
- Parameters:
bindingProperties- The data binding information for the component's properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collectionProperties
CreateComponentData.Builder collectionProperties(Map<String,ComponentDataConfiguration> collectionProperties)
The data binding configuration for customizing a component's properties. Use this for a collection component.
- Parameters:
collectionProperties- The data binding configuration for customizing a component's properties. Use this for a collection component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateComponentData.Builder tags(Map<String,String> tags)
One or more key-value pairs to use when tagging the component data.
- Parameters:
tags- One or more key-value pairs to use when tagging the component data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
CreateComponentData.Builder events(Map<String,ComponentEvent> events)
The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
- Parameters:
events- The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaVersion
CreateComponentData.Builder schemaVersion(String schemaVersion)
The schema version of the component when it was imported.
- Parameters:
schemaVersion- The schema version of the component when it was imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-