Class CfnFormMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.amplifyuibuilder.mixins.CfnFormMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFormMixinProps>
- Enclosing interface:
CfnFormMixinProps
@Stability(Stable)
public static final class CfnFormMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFormMixinProps>
A builder for
CfnFormMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFormMixinProps.getAppId()build()Builds the configured instance.cta(IResolvable cta) Sets the value ofCfnFormMixinProps.getCta()Sets the value ofCfnFormMixinProps.getCta()dataType(IResolvable dataType) Sets the value ofCfnFormMixinProps.getDataType()Sets the value ofCfnFormMixinProps.getDataType()environmentName(String environmentName) Sets the value ofCfnFormMixinProps.getEnvironmentName()Sets the value ofCfnFormMixinProps.getFields()fields(IResolvable fields) Sets the value ofCfnFormMixinProps.getFields()formActionType(String formActionType) Sets the value ofCfnFormMixinProps.getFormActionType()labelDecorator(String labelDecorator) Sets the value ofCfnFormMixinProps.getLabelDecorator()Sets the value ofCfnFormMixinProps.getName()schemaVersion(String schemaVersion) Sets the value ofCfnFormMixinProps.getSchemaVersion()sectionalElements(Map<String, ? extends Object> sectionalElements) Sets the value ofCfnFormMixinProps.getSectionalElements()sectionalElements(IResolvable sectionalElements) Sets the value ofCfnFormMixinProps.getSectionalElements()style(IResolvable style) Sets the value ofCfnFormMixinProps.getStyle()Sets the value ofCfnFormMixinProps.getStyle()Sets the value ofCfnFormMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appId
Sets the value ofCfnFormMixinProps.getAppId()- Parameters:
appId- The unique ID of the Amplify app associated with the form.- Returns:
this
-
cta
Sets the value ofCfnFormMixinProps.getCta()- Parameters:
cta- TheFormCTAobject that stores the call to action configuration for the form.- Returns:
this
-
cta
Sets the value ofCfnFormMixinProps.getCta()- Parameters:
cta- TheFormCTAobject that stores the call to action configuration for the form.- Returns:
this
-
dataType
Sets the value ofCfnFormMixinProps.getDataType()- Parameters:
dataType- The type of data source to use to create the form.- Returns:
this
-
dataType
@Stability(Stable) public CfnFormMixinProps.Builder dataType(CfnFormPropsMixin.FormDataTypeConfigProperty dataType) Sets the value ofCfnFormMixinProps.getDataType()- Parameters:
dataType- The type of data source to use to create the form.- Returns:
this
-
environmentName
Sets the value ofCfnFormMixinProps.getEnvironmentName()- Parameters:
environmentName- The name of the backend environment that is a part of the Amplify app.- Returns:
this
-
fields
Sets the value ofCfnFormMixinProps.getFields()- Parameters:
fields- The configuration information for the form's fields.- Returns:
this
-
fields
Sets the value ofCfnFormMixinProps.getFields()- Parameters:
fields- The configuration information for the form's fields.- Returns:
this
-
formActionType
Sets the value ofCfnFormMixinProps.getFormActionType()- Parameters:
formActionType- Specifies whether to perform a create or update action on the form.- Returns:
this
-
labelDecorator
Sets the value ofCfnFormMixinProps.getLabelDecorator()- Parameters:
labelDecorator- Specifies an icon or decoration to display on the form.- Returns:
this
-
name
Sets the value ofCfnFormMixinProps.getName()- Parameters:
name- The name of the form.- Returns:
this
-
schemaVersion
Sets the value ofCfnFormMixinProps.getSchemaVersion()- Parameters:
schemaVersion- The schema version of the form.- Returns:
this
-
sectionalElements
@Stability(Stable) public CfnFormMixinProps.Builder sectionalElements(IResolvable sectionalElements) Sets the value ofCfnFormMixinProps.getSectionalElements()- Parameters:
sectionalElements- The configuration information for the visual helper elements for the form. These elements are not associated with any data.- Returns:
this
-
sectionalElements
@Stability(Stable) public CfnFormMixinProps.Builder sectionalElements(Map<String, ? extends Object> sectionalElements) Sets the value ofCfnFormMixinProps.getSectionalElements()- Parameters:
sectionalElements- The configuration information for the visual helper elements for the form. These elements are not associated with any data.- Returns:
this
-
style
Sets the value ofCfnFormMixinProps.getStyle()- Parameters:
style- The configuration for the form's style.- Returns:
this
-
style
@Stability(Stable) public CfnFormMixinProps.Builder style(CfnFormPropsMixin.FormStyleProperty style) Sets the value ofCfnFormMixinProps.getStyle()- Parameters:
style- The configuration for the form's style.- Returns:
this
-
tags
Sets the value ofCfnFormMixinProps.getTags()- Parameters:
tags- One or more key-value pairs to use when tagging the form data.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFormMixinProps>- Returns:
- a new instance of
CfnFormMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-