@Generated(value="software.amazon.awssdk:codegen") public final class Form extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Form.Builder,Form>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Form.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
appId()
The unique ID of the Amplify app associated with the form.
|
static Form.Builder |
builder() |
FormCTA |
cta()
Stores the call to action configuration for the form.
|
FormDataTypeConfig |
dataType()
The type of data source to use to create the form.
|
String |
environmentName()
The name of the backend environment that is a part of the Amplify app.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<String,FieldConfig> |
fields()
Stores the information about the form's fields.
|
FormActionType |
formActionType()
The operation to perform on the specified form.
|
String |
formActionTypeAsString()
The operation to perform on the specified form.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFields()
For responses, this returns true if the service returned a value for the Fields property.
|
int |
hashCode() |
boolean |
hasSectionalElements()
For responses, this returns true if the service returned a value for the SectionalElements property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
id()
The unique ID of the form.
|
LabelDecorator |
labelDecorator()
Specifies an icon or decoration to display on the form.
|
String |
labelDecoratorAsString()
Specifies an icon or decoration to display on the form.
|
String |
name()
The name of the form.
|
String |
schemaVersion()
The schema version of the form when it was imported.
|
List<SdkField<?>> |
sdkFields() |
Map<String,SectionalElement> |
sectionalElements()
Stores the visual helper elements for the form that are not associated with any data.
|
static Class<? extends Form.Builder> |
serializableBuilderClass() |
FormStyle |
style()
Stores the configuration for the form's style.
|
Map<String,String> |
tags()
One or more key-value pairs to use when tagging the form.
|
Form.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String appId()
The unique ID of the Amplify app associated with the form.
public final String environmentName()
The name of the backend environment that is a part of the Amplify app.
public final String id()
The unique ID of the form.
public final String name()
The name of the form.
public final FormActionType formActionType()
The operation to perform on the specified form.
If the service returns an enum value that is not available in the current SDK version, formActionType
will return FormActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from formActionTypeAsString().
FormActionTypepublic final String formActionTypeAsString()
The operation to perform on the specified form.
If the service returns an enum value that is not available in the current SDK version, formActionType
will return FormActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from formActionTypeAsString().
FormActionTypepublic final FormStyle style()
Stores the configuration for the form's style.
public final FormDataTypeConfig dataType()
The type of data source to use to create the form.
public final boolean hasFields()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,FieldConfig> fields()
Stores the information about the form's fields.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFields() method.
public final boolean hasSectionalElements()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,SectionalElement> sectionalElements()
Stores the visual helper elements for the form that are not associated with any data.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSectionalElements() method.
public final String schemaVersion()
The schema version of the form when it was imported.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
One or more key-value pairs to use when tagging the form.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final FormCTA cta()
Stores the call to action configuration for the form.
public final LabelDecorator labelDecorator()
Specifies an icon or decoration to display on the form.
If the service returns an enum value that is not available in the current SDK version, labelDecorator
will return LabelDecorator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from labelDecoratorAsString().
LabelDecoratorpublic final String labelDecoratorAsString()
Specifies an icon or decoration to display on the form.
If the service returns an enum value that is not available in the current SDK version, labelDecorator
will return LabelDecorator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from labelDecoratorAsString().
LabelDecoratorpublic Form.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Form.Builder,Form>public static Form.Builder builder()
public static Class<? extends Form.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.