public static interface Component.Builder extends SdkPojo, CopyableBuilder<Component.Builder,Component>
| Modifier and Type | Method and Description |
|---|---|
Component.Builder |
appId(String appId)
The unique ID of the Amplify app associated with the component.
|
Component.Builder |
bindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)
The information to connect a component's properties to data at runtime.
|
Component.Builder |
children(Collection<ComponentChild> children)
A list of the component's
ComponentChild instances. |
Component.Builder |
children(ComponentChild... children)
A list of the component's
ComponentChild instances. |
Component.Builder |
children(Consumer<ComponentChild.Builder>... children)
A list of the component's
ComponentChild instances. |
Component.Builder |
collectionProperties(Map<String,ComponentDataConfiguration> collectionProperties)
The data binding configuration for the component's properties.
|
Component.Builder |
componentType(String componentType)
The type of the component.
|
Component.Builder |
createdAt(Instant createdAt)
The time that the component was created.
|
Component.Builder |
environmentName(String environmentName)
The name of the backend environment that is a part of the Amplify app.
|
Component.Builder |
events(Map<String,ComponentEvent> events)
Describes the events that can be raised on the component.
|
Component.Builder |
id(String id)
The unique ID of the component.
|
Component.Builder |
modifiedAt(Instant modifiedAt)
The time that the component was modified.
|
Component.Builder |
name(String name)
The name of the component.
|
Component.Builder |
overrides(Map<String,? extends Map<String,String>> overrides)
Describes the component's properties that can be overriden in a customized instance of the component.
|
Component.Builder |
properties(Map<String,ComponentProperty> properties)
Describes the component's properties.
|
Component.Builder |
schemaVersion(String schemaVersion)
The schema version of the component when it was imported.
|
Component.Builder |
sourceId(String sourceId)
The unique ID of the component in its original source system, such as Figma.
|
Component.Builder |
tags(Map<String,String> tags)
One or more key-value pairs to use when tagging the component.
|
Component.Builder |
variants(Collection<ComponentVariant> variants)
A list of the component's variants.
|
Component.Builder |
variants(ComponentVariant... variants)
A list of the component's variants.
|
Component.Builder |
variants(Consumer<ComponentVariant.Builder>... variants)
A list of the component's variants.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildComponent.Builder appId(String appId)
The unique ID of the Amplify app associated with the component.
appId - The unique ID of the Amplify app associated with the component.Component.Builder environmentName(String environmentName)
The name of the backend environment that is a part of the Amplify app.
environmentName - The name of the backend environment that is a part of the Amplify app.Component.Builder sourceId(String sourceId)
The unique ID of the component in its original source system, such as Figma.
sourceId - The unique ID of the component in its original source system, such as Figma.Component.Builder id(String id)
The unique ID of the component.
id - The unique ID of the component.Component.Builder name(String name)
The name of the component.
name - The name of the component.Component.Builder componentType(String componentType)
The type of the component. This can be an Amplify custom UI component or another custom component.
componentType - The type of the component. This can be an Amplify custom UI component or another custom component.Component.Builder properties(Map<String,ComponentProperty> properties)
Describes the component's properties. You can't specify tags as a valid property for
properties.
properties - Describes the component's properties. You can't specify tags as a valid property for
properties.Component.Builder children(Collection<ComponentChild> children)
A list of the component's ComponentChild instances.
children - A list of the component's ComponentChild instances.Component.Builder children(ComponentChild... children)
A list of the component's ComponentChild instances.
children - A list of the component's ComponentChild instances.Component.Builder children(Consumer<ComponentChild.Builder>... children)
A list of the component's ComponentChild instances.
ComponentChild.Builder avoiding the need to
create one manually via
ComponentChild.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #children(List.
children - a consumer that will call methods on
ComponentChild.Builder#children(java.util.Collection) Component.Builder variants(Collection<ComponentVariant> variants)
A list of the component's variants. A variant is a unique style configuration of a main component.
variants - A list of the component's variants. A variant is a unique style configuration of a main component.Component.Builder variants(ComponentVariant... variants)
A list of the component's variants. A variant is a unique style configuration of a main component.
variants - A list of the component's variants. A variant is a unique style configuration of a main component.Component.Builder variants(Consumer<ComponentVariant.Builder>... variants)
A list of the component's variants. A variant is a unique style configuration of a main component.
This is a convenience method that creates an instance of theComponentVariant.Builder avoiding the need to
create one manually via
ComponentVariant.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #variants(List.
variants - a consumer that will call methods on
ComponentVariant.Builder#variants(java.util.Collection) Component.Builder overrides(Map<String,? extends Map<String,String>> overrides)
Describes the component's properties that can be overriden in a customized instance of the component. You
can't specify tags as a valid property for overrides.
overrides - Describes the component's properties that can be overriden in a customized instance of the component.
You can't specify tags as a valid property for overrides.Component.Builder bindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)
The information to connect a component's properties to data at runtime. You can't specify tags
as a valid property for bindingProperties.
bindingProperties - The information to connect a component's properties to data at runtime. You can't specify
tags as a valid property for bindingProperties.
Component.Builder collectionProperties(Map<String,ComponentDataConfiguration> 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.
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.Component.Builder createdAt(Instant createdAt)
The time that the component was created.
createdAt - The time that the component was created.Component.Builder modifiedAt(Instant modifiedAt)
The time that the component was modified.
modifiedAt - The time that the component was modified.Component.Builder tags(Map<String,String> tags)
One or more key-value pairs to use when tagging the component.
tags - One or more key-value pairs to use when tagging the component.Component.Builder events(Map<String,ComponentEvent> 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.
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.Component.Builder schemaVersion(String schemaVersion)
The schema version of the component when it was imported.
schemaVersion - The schema version of the component when it was imported.Copyright © 2023. All rights reserved.