@Generated(value="software.amazon.awssdk:codegen") public final class CreateFormData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CreateFormData.Builder,CreateFormData>
Represents all of the information that is required to create a form.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateFormData.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateFormData.Builder |
builder() |
FormCTA |
cta()
The
FormCTA object that stores the call to action configuration for the form. |
FormDataTypeConfig |
dataType()
The type of data source to use to create the form.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<String,FieldConfig> |
fields()
The configuration information for the form's fields.
|
FormActionType |
formActionType()
Specifies whether to perform a create or update action on the form.
|
String |
formActionTypeAsString()
Specifies whether to perform a create or update action on the 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.
|
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.
|
List<SdkField<?>> |
sdkFields() |
Map<String,SectionalElement> |
sectionalElements()
The configuration information for the visual helper elements for the form.
|
static Class<? extends CreateFormData.Builder> |
serializableBuilderClass() |
FormStyle |
style()
The configuration for the form's style.
|
Map<String,String> |
tags()
One or more key-value pairs to use when tagging the form data.
|
CreateFormData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the form.
public final FormDataTypeConfig dataType()
The type of data source to use to create the form.
public final FormActionType formActionType()
Specifies whether to perform a create or update action on the 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()
Specifies whether to perform a create or update action on the 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 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()
The configuration information for 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 FormStyle style()
The configuration for the form's style.
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()
The configuration information for the visual helper elements for the form. These elements 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.
public final FormCTA cta()
The FormCTA object that stores the call to action configuration for the form.
FormCTA object that stores the call to action configuration for the form.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 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 hasTags() method.
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 CreateFormData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateFormData.Builder,CreateFormData>public static CreateFormData.Builder builder()
public static Class<? extends CreateFormData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.