Class CfnComponent.ComponentPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent.ComponentPropertyProperty>
- Enclosing interface:
CfnComponent.ComponentPropertyProperty
@Stability(Stable)
public static final class CfnComponent.ComponentPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponent.ComponentPropertyProperty>
A builder for
CfnComponent.ComponentPropertyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbindingProperties
(IResolvable bindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getBindingProperties()
bindingProperties
(CfnComponent.ComponentPropertyBindingPropertiesProperty bindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getBindingProperties()
Sets the value ofCfnComponent.ComponentPropertyProperty.getBindings()
bindings
(IResolvable bindings) Sets the value ofCfnComponent.ComponentPropertyProperty.getBindings()
build()
Builds the configured instance.collectionBindingProperties
(IResolvable collectionBindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getCollectionBindingProperties()
collectionBindingProperties
(CfnComponent.ComponentPropertyBindingPropertiesProperty collectionBindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getCollectionBindingProperties()
componentName
(String componentName) Sets the value ofCfnComponent.ComponentPropertyProperty.getComponentName()
Sets the value ofCfnComponent.ComponentPropertyProperty.getConcat()
concat
(IResolvable concat) Sets the value ofCfnComponent.ComponentPropertyProperty.getConcat()
condition
(IResolvable condition) Sets the value ofCfnComponent.ComponentPropertyProperty.getCondition()
Sets the value ofCfnComponent.ComponentPropertyProperty.getCondition()
configured
(Boolean configured) Sets the value ofCfnComponent.ComponentPropertyProperty.getConfigured()
configured
(IResolvable configured) Sets the value ofCfnComponent.ComponentPropertyProperty.getConfigured()
defaultValue
(String defaultValue) Sets the value ofCfnComponent.ComponentPropertyProperty.getDefaultValue()
Sets the value ofCfnComponent.ComponentPropertyProperty.getEvent()
importedValue
(String importedValue) Sets the value ofCfnComponent.ComponentPropertyProperty.getImportedValue()
Sets the value ofCfnComponent.ComponentPropertyProperty.getModel()
Sets the value ofCfnComponent.ComponentPropertyProperty.getProperty()
Sets the value ofCfnComponent.ComponentPropertyProperty.getType()
userAttribute
(String userAttribute) Sets the value ofCfnComponent.ComponentPropertyProperty.getUserAttribute()
Sets the value ofCfnComponent.ComponentPropertyProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bindingProperties
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder bindingProperties(IResolvable bindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getBindingProperties()
- Parameters:
bindingProperties
- The information to bind the component property to data at runtime.- Returns:
this
-
bindingProperties
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder bindingProperties(CfnComponent.ComponentPropertyBindingPropertiesProperty bindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getBindingProperties()
- Parameters:
bindingProperties
- The information to bind the component property to data at runtime.- Returns:
this
-
bindings
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder bindings(IResolvable bindings) Sets the value ofCfnComponent.ComponentPropertyProperty.getBindings()
- Parameters:
bindings
- The information to bind the component property to form data.- Returns:
this
-
bindings
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder bindings(Map<String, ? extends Object> bindings) Sets the value ofCfnComponent.ComponentPropertyProperty.getBindings()
- Parameters:
bindings
- The information to bind the component property to form data.- Returns:
this
-
collectionBindingProperties
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder collectionBindingProperties(IResolvable collectionBindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getCollectionBindingProperties()
- Parameters:
collectionBindingProperties
- The information to bind the component property to data at runtime. Use this for collection components.- Returns:
this
-
collectionBindingProperties
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder collectionBindingProperties(CfnComponent.ComponentPropertyBindingPropertiesProperty collectionBindingProperties) Sets the value ofCfnComponent.ComponentPropertyProperty.getCollectionBindingProperties()
- Parameters:
collectionBindingProperties
- The information to bind the component property to data at runtime. Use this for collection components.- Returns:
this
-
componentName
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder componentName(String componentName) Sets the value ofCfnComponent.ComponentPropertyProperty.getComponentName()
- Parameters:
componentName
- The name of the component that is affected by an event.- Returns:
this
-
concat
Sets the value ofCfnComponent.ComponentPropertyProperty.getConcat()
- Parameters:
concat
- A list of component properties to concatenate to create the value to assign to this component property.- Returns:
this
-
concat
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder concat(List<? extends Object> concat) Sets the value ofCfnComponent.ComponentPropertyProperty.getConcat()
- Parameters:
concat
- A list of component properties to concatenate to create the value to assign to this component property.- Returns:
this
-
condition
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder condition(IResolvable condition) Sets the value ofCfnComponent.ComponentPropertyProperty.getCondition()
- Parameters:
condition
- The conditional expression to use to assign a value to the component property.- Returns:
this
-
condition
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder condition(CfnComponent.ComponentConditionPropertyProperty condition) Sets the value ofCfnComponent.ComponentPropertyProperty.getCondition()
- Parameters:
condition
- The conditional expression to use to assign a value to the component property.- Returns:
this
-
configured
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder configured(Boolean configured) Sets the value ofCfnComponent.ComponentPropertyProperty.getConfigured()
- Parameters:
configured
- Specifies whether the user configured the property in Amplify Studio after importing it.- Returns:
this
-
configured
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder configured(IResolvable configured) Sets the value ofCfnComponent.ComponentPropertyProperty.getConfigured()
- Parameters:
configured
- Specifies whether the user configured the property in Amplify Studio after importing it.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnComponent.ComponentPropertyProperty.getDefaultValue()
- Parameters:
defaultValue
- The default value to assign to the component property.- Returns:
this
-
event
Sets the value ofCfnComponent.ComponentPropertyProperty.getEvent()
- Parameters:
event
- An event that occurs in your app. Use this for workflow data binding.- Returns:
this
-
importedValue
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder importedValue(String importedValue) Sets the value ofCfnComponent.ComponentPropertyProperty.getImportedValue()
- Parameters:
importedValue
- The default value assigned to the property when the component is imported into an app.- Returns:
this
-
model
Sets the value ofCfnComponent.ComponentPropertyProperty.getModel()
- Parameters:
model
- The data model to use to assign a value to the component property.- Returns:
this
-
property
Sets the value ofCfnComponent.ComponentPropertyProperty.getProperty()
- Parameters:
property
- The name of the component's property that is affected by an event.- Returns:
this
-
type
Sets the value ofCfnComponent.ComponentPropertyProperty.getType()
- Parameters:
type
- The component type.- Returns:
this
-
userAttribute
@Stability(Stable) public CfnComponent.ComponentPropertyProperty.Builder userAttribute(String userAttribute) Sets the value ofCfnComponent.ComponentPropertyProperty.getUserAttribute()
- Parameters:
userAttribute
- An authenticated user attribute to use to assign a value to the component property.- Returns:
this
-
value
Sets the value ofCfnComponent.ComponentPropertyProperty.getValue()
- Parameters:
value
- The value to assign to the component property.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponent.ComponentPropertyProperty>
- Returns:
- a new instance of
CfnComponent.ComponentPropertyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-