Interface Form.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Form.Builder,
,Form> SdkBuilder<Form.Builder,
,Form> SdkPojo
- Enclosing class:
Form
-
Method Summary
Modifier and TypeMethodDescriptionThe unique ID of the Amplify app associated with the form.default Form.Builder
cta
(Consumer<FormCTA.Builder> cta) Stores the call to action configuration for the form.Stores the call to action configuration for the form.default Form.Builder
dataType
(Consumer<FormDataTypeConfig.Builder> dataType) The type of data source to use to create the form.dataType
(FormDataTypeConfig dataType) The type of data source to use to create the form.environmentName
(String environmentName) The name of the backend environment that is a part of the Amplify app.fields
(Map<String, FieldConfig> fields) Stores the information about the form's fields.formActionType
(String formActionType) The operation to perform on the specified form.formActionType
(FormActionType formActionType) The operation to perform on the specified form.The unique ID of the form.labelDecorator
(String labelDecorator) Specifies an icon or decoration to display on the form.labelDecorator
(LabelDecorator labelDecorator) Specifies an icon or decoration to display on the form.The name of the form.schemaVersion
(String schemaVersion) The schema version of the form when it was imported.sectionalElements
(Map<String, SectionalElement> sectionalElements) Stores the visual helper elements for the form that are not associated with any data.default Form.Builder
style
(Consumer<FormStyle.Builder> style) Stores the configuration for the form's style.Stores the configuration for the form's style.One or more key-value pairs to use when tagging the form.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 Details
-
appId
The unique ID of the Amplify app associated with the form.
- Parameters:
appId
- The unique ID of the Amplify app associated with the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentName
The name of the backend environment that is a part of the Amplify app.
- Parameters:
environmentName
- The name of the backend environment that is a part of the Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The unique ID of the form.
- Parameters:
id
- The unique ID of the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the form.
- Parameters:
name
- The name of the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
formActionType
The operation to perform on the specified form.
- Parameters:
formActionType
- The operation to perform on the specified form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
formActionType
The operation to perform on the specified form.
- Parameters:
formActionType
- The operation to perform on the specified form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
style
Stores the configuration for the form's style.
- Parameters:
style
- Stores the configuration for the form's style.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
style
Stores the configuration for the form's style.
This is a convenience method that creates an instance of theFormStyle.Builder
avoiding the need to create one manually viaFormStyle.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostyle(FormStyle)
.- Parameters:
style
- a consumer that will call methods onFormStyle.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataType
The type of data source to use to create the form.
- Parameters:
dataType
- The type of data source to use to create the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataType
The type of data source to use to create the form.
This is a convenience method that creates an instance of theFormDataTypeConfig.Builder
avoiding the need to create one manually viaFormDataTypeConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataType(FormDataTypeConfig)
.- Parameters:
dataType
- a consumer that will call methods onFormDataTypeConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fields
Stores the information about the form's fields.
- Parameters:
fields
- Stores the information about the form's fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sectionalElements
Stores the visual helper elements for the form that are not associated with any data.
- Parameters:
sectionalElements
- Stores the visual helper elements for the form that are not associated with any data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaVersion
The schema version of the form when it was imported.
- Parameters:
schemaVersion
- The schema version of the form when it was imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
One or more key-value pairs to use when tagging the form.
- Parameters:
tags
- One or more key-value pairs to use when tagging the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cta
Stores the call to action configuration for the form.
- Parameters:
cta
- Stores the call to action configuration for the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cta
Stores the call to action configuration for the form.
This is a convenience method that creates an instance of theFormCTA.Builder
avoiding the need to create one manually viaFormCTA.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocta(FormCTA)
.- Parameters:
cta
- a consumer that will call methods onFormCTA.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
labelDecorator
Specifies an icon or decoration to display on the form.
- Parameters:
labelDecorator
- Specifies an icon or decoration to display on the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
labelDecorator
Specifies an icon or decoration to display on the form.
- Parameters:
labelDecorator
- Specifies an icon or decoration to display on the form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-