public static interface Form.Builder extends SdkPojo, CopyableBuilder<Form.Builder,Form>
| Modifier and Type | Method and Description |
|---|---|
Form.Builder |
appId(String appId)
The 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.
|
Form.Builder |
cta(FormCTA cta)
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.
|
Form.Builder |
dataType(FormDataTypeConfig dataType)
The type of data source to use to create the form.
|
Form.Builder |
environmentName(String environmentName)
The name of the backend environment that is a part of the Amplify app.
|
Form.Builder |
fields(Map<String,FieldConfig> fields)
Stores the information about the form's fields.
|
Form.Builder |
formActionType(FormActionType formActionType)
The operation to perform on the specified form.
|
Form.Builder |
formActionType(String formActionType)
The operation to perform on the specified form.
|
Form.Builder |
id(String id)
The unique ID of the form.
|
Form.Builder |
name(String name)
The name of the form.
|
Form.Builder |
schemaVersion(String schemaVersion)
The schema version of the form when it was imported.
|
Form.Builder |
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.
|
Form.Builder |
style(FormStyle style)
Stores the configuration for the form's style.
|
Form.Builder |
tags(Map<String,String> tags)
One or more key-value pairs to use when tagging the form.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildForm.Builder appId(String appId)
The unique ID of the Amplify app associated with the form.
appId - The unique ID of the Amplify app associated with the form.Form.Builder cta(FormCTA cta)
Stores the call to action configuration for the form.
cta - Stores the call to action configuration for the form.default Form.Builder cta(Consumer<FormCTA.Builder> 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 via FormCTA.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to cta(FormCTA).
cta - a consumer that will call methods on FormCTA.Buildercta(FormCTA)Form.Builder dataType(FormDataTypeConfig dataType)
The type of data source to use to create the form.
dataType - The type of data source to use to create the form.default Form.Builder dataType(Consumer<FormDataTypeConfig.Builder> 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 via FormDataTypeConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to dataType(FormDataTypeConfig).
dataType - a consumer that will call methods on FormDataTypeConfig.BuilderdataType(FormDataTypeConfig)Form.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.Form.Builder fields(Map<String,FieldConfig> fields)
Stores the information about the form's fields.
fields - Stores the information about the form's fields.Form.Builder formActionType(String formActionType)
The operation to perform on the specified form.
formActionType - The operation to perform on the specified form.FormActionType,
FormActionTypeForm.Builder formActionType(FormActionType formActionType)
The operation to perform on the specified form.
formActionType - The operation to perform on the specified form.FormActionType,
FormActionTypeForm.Builder id(String id)
The unique ID of the form.
id - The unique ID of the form.Form.Builder name(String name)
The name of the form.
name - The name of the form.Form.Builder schemaVersion(String schemaVersion)
The schema version of the form when it was imported.
schemaVersion - The schema version of the form when it was imported.Form.Builder sectionalElements(Map<String,SectionalElement> sectionalElements)
Stores the visual helper elements for the form that are not associated with any data.
sectionalElements - Stores the visual helper elements for the form that are not associated with any data.Form.Builder style(FormStyle style)
Stores the configuration for the form's style.
style - Stores the configuration for the form's style.default Form.Builder style(Consumer<FormStyle.Builder> 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 via FormStyle.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to style(FormStyle).
style - a consumer that will call methods on FormStyle.Builderstyle(FormStyle)Form.Builder tags(Map<String,String> tags)
One or more key-value pairs to use when tagging the form.
tags - One or more key-value pairs to use when tagging the form.Copyright © 2022. All rights reserved.