@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Form extends Object implements Serializable, Cloneable, StructuredPojo
Contains the configuration settings for a Form
user interface (UI) element for an Amplify app. A form is
a component you can add to your project by specifying a data source as the default configuration for the form.
Constructor and Description |
---|
Form() |
Modifier and Type | Method and Description |
---|---|
Form |
addFieldsEntry(String key,
FieldConfig value)
Add a single Fields entry
|
Form |
addSectionalElementsEntry(String key,
SectionalElement value)
Add a single SectionalElements entry
|
Form |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Form |
clearFieldsEntries()
Removes all the entries added into Fields.
|
Form |
clearSectionalElementsEntries()
Removes all the entries added into SectionalElements.
|
Form |
clearTagsEntries()
Removes all the entries added into Tags.
|
Form |
clone() |
boolean |
equals(Object obj) |
String |
getAppId()
The unique ID of the Amplify app associated with the form.
|
FormCTA |
getCta()
Stores the call to action configuration for the form.
|
FormDataTypeConfig |
getDataType()
The type of data source to use to create the form.
|
String |
getEnvironmentName()
The name of the backend environment that is a part of the Amplify app.
|
Map<String,FieldConfig> |
getFields()
Stores the information about the form's fields.
|
String |
getFormActionType()
The operation to perform on the specified form.
|
String |
getId()
The unique ID of the form.
|
String |
getLabelDecorator()
Specifies an icon or decoration to display on the form.
|
String |
getName()
The name of the form.
|
String |
getSchemaVersion()
The schema version of the form when it was imported.
|
Map<String,SectionalElement> |
getSectionalElements()
Stores the visual helper elements for the form that are not associated with any data.
|
FormStyle |
getStyle()
Stores the configuration for the form's style.
|
Map<String,String> |
getTags()
One or more key-value pairs to use when tagging the form.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppId(String appId)
The unique ID of the Amplify app associated with the form.
|
void |
setCta(FormCTA cta)
Stores the call to action configuration for the form.
|
void |
setDataType(FormDataTypeConfig dataType)
The type of data source to use to create the form.
|
void |
setEnvironmentName(String environmentName)
The name of the backend environment that is a part of the Amplify app.
|
void |
setFields(Map<String,FieldConfig> fields)
Stores the information about the form's fields.
|
void |
setFormActionType(String formActionType)
The operation to perform on the specified form.
|
void |
setId(String id)
The unique ID of the form.
|
void |
setLabelDecorator(String labelDecorator)
Specifies an icon or decoration to display on the form.
|
void |
setName(String name)
The name of the form.
|
void |
setSchemaVersion(String schemaVersion)
The schema version of the form when it was imported.
|
void |
setSectionalElements(Map<String,SectionalElement> sectionalElements)
Stores the visual helper elements for the form that are not associated with any data.
|
void |
setStyle(FormStyle style)
Stores the configuration for the form's style.
|
void |
setTags(Map<String,String> tags)
One or more key-value pairs to use when tagging the form.
|
String |
toString()
Returns a string representation of this object.
|
Form |
withAppId(String appId)
The unique ID of the Amplify app associated with the form.
|
Form |
withCta(FormCTA cta)
Stores the call to action configuration for the form.
|
Form |
withDataType(FormDataTypeConfig dataType)
The type of data source to use to create the form.
|
Form |
withEnvironmentName(String environmentName)
The name of the backend environment that is a part of the Amplify app.
|
Form |
withFields(Map<String,FieldConfig> fields)
Stores the information about the form's fields.
|
Form |
withFormActionType(FormActionType formActionType)
The operation to perform on the specified form.
|
Form |
withFormActionType(String formActionType)
The operation to perform on the specified form.
|
Form |
withId(String id)
The unique ID of the form.
|
Form |
withLabelDecorator(LabelDecorator labelDecorator)
Specifies an icon or decoration to display on the form.
|
Form |
withLabelDecorator(String labelDecorator)
Specifies an icon or decoration to display on the form.
|
Form |
withName(String name)
The name of the form.
|
Form |
withSchemaVersion(String schemaVersion)
The schema version of the form when it was imported.
|
Form |
withSectionalElements(Map<String,SectionalElement> sectionalElements)
Stores the visual helper elements for the form that are not associated with any data.
|
Form |
withStyle(FormStyle style)
Stores the configuration for the form's style.
|
Form |
withTags(Map<String,String> tags)
One or more key-value pairs to use when tagging the form.
|
public void setAppId(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.public String getAppId()
The unique ID of the Amplify app associated with the form.
public Form withAppId(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.public void setEnvironmentName(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.public String getEnvironmentName()
The name of the backend environment that is a part of the Amplify app.
public Form withEnvironmentName(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.public void setId(String id)
The unique ID of the form.
id
- The unique ID of the form.public String getId()
The unique ID of the form.
public Form withId(String id)
The unique ID of the form.
id
- The unique ID of the form.public void setName(String name)
The name of the form.
name
- The name of the form.public String getName()
The name of the form.
public Form withName(String name)
The name of the form.
name
- The name of the form.public void setFormActionType(String formActionType)
The operation to perform on the specified form.
formActionType
- The operation to perform on the specified form.FormActionType
public String getFormActionType()
The operation to perform on the specified form.
FormActionType
public Form withFormActionType(String formActionType)
The operation to perform on the specified form.
formActionType
- The operation to perform on the specified form.FormActionType
public Form withFormActionType(FormActionType formActionType)
The operation to perform on the specified form.
formActionType
- The operation to perform on the specified form.FormActionType
public void setStyle(FormStyle style)
Stores the configuration for the form's style.
style
- Stores the configuration for the form's style.public FormStyle getStyle()
Stores the configuration for the form's style.
public Form withStyle(FormStyle style)
Stores the configuration for the form's style.
style
- Stores the configuration for the form's style.public void setDataType(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.public FormDataTypeConfig getDataType()
The type of data source to use to create the form.
public Form withDataType(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.public Map<String,FieldConfig> getFields()
Stores the information about the form's fields.
public void setFields(Map<String,FieldConfig> fields)
Stores the information about the form's fields.
fields
- Stores the information about the form's fields.public Form withFields(Map<String,FieldConfig> fields)
Stores the information about the form's fields.
fields
- Stores the information about the form's fields.public Form addFieldsEntry(String key, FieldConfig value)
public Form clearFieldsEntries()
public Map<String,SectionalElement> getSectionalElements()
Stores the visual helper elements for the form that are not associated with any data.
public void setSectionalElements(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.public Form withSectionalElements(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.public Form addSectionalElementsEntry(String key, SectionalElement value)
public Form clearSectionalElementsEntries()
public void setSchemaVersion(String schemaVersion)
The schema version of the form when it was imported.
schemaVersion
- The schema version of the form when it was imported.public String getSchemaVersion()
The schema version of the form when it was imported.
public Form withSchemaVersion(String schemaVersion)
The schema version of the form when it was imported.
schemaVersion
- The schema version of the form when it was imported.public Map<String,String> getTags()
One or more key-value pairs to use when tagging the form.
public void setTags(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.public Form withTags(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.public Form clearTagsEntries()
public void setCta(FormCTA cta)
Stores the call to action configuration for the form.
cta
- Stores the call to action configuration for the form.public FormCTA getCta()
Stores the call to action configuration for the form.
public Form withCta(FormCTA cta)
Stores the call to action configuration for the form.
cta
- Stores the call to action configuration for the form.public void setLabelDecorator(String labelDecorator)
Specifies an icon or decoration to display on the form.
labelDecorator
- Specifies an icon or decoration to display on the form.LabelDecorator
public String getLabelDecorator()
Specifies an icon or decoration to display on the form.
LabelDecorator
public Form withLabelDecorator(String labelDecorator)
Specifies an icon or decoration to display on the form.
labelDecorator
- Specifies an icon or decoration to display on the form.LabelDecorator
public Form withLabelDecorator(LabelDecorator labelDecorator)
Specifies an icon or decoration to display on the form.
labelDecorator
- Specifies an icon or decoration to display on the form.LabelDecorator
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.