Interface CfnForm.FieldInputConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnForm.FieldInputConfigProperty.Jsii$Proxy
- Enclosing class:
CfnForm
@Stability(Stable)
public static interface CfnForm.FieldInputConfigProperty
extends software.amazon.jsii.JsiiSerializable
The
FieldInputConfig property specifies the configuration for the default input values to display for a field.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplifyuibuilder.*;
FormInputValuePropertyProperty formInputValuePropertyProperty_;
FieldInputConfigProperty fieldInputConfigProperty = FieldInputConfigProperty.builder()
.type("type")
// the properties below are optional
.defaultChecked(false)
.defaultCountryCode("defaultCountryCode")
.defaultValue("defaultValue")
.descriptiveText("descriptiveText")
.fileUploaderConfig(FileUploaderFieldConfigProperty.builder()
.acceptedFileTypes(List.of("acceptedFileTypes"))
.accessLevel("accessLevel")
// the properties below are optional
.isResumable(false)
.maxFileCount(123)
.maxSize(123)
.showThumbnails(false)
.build())
.isArray(false)
.maxValue(123)
.minValue(123)
.name("name")
.placeholder("placeholder")
.readOnly(false)
.required(false)
.step(123)
.value("value")
.valueMappings(ValueMappingsProperty.builder()
.values(List.of(ValueMappingProperty.builder()
.value(FormInputValuePropertyProperty.builder()
.bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.concat(List.of(formInputValuePropertyProperty_))
.value("value")
.build())
// the properties below are optional
.displayValue(FormInputValuePropertyProperty.builder()
.bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.concat(List.of(formInputValuePropertyProperty_))
.value("value")
.build())
.build()))
// the properties below are optional
.bindingProperties(Map.of(
"bindingPropertiesKey", FormInputBindingPropertiesValueProperty.builder()
.bindingProperties(FormInputBindingPropertiesValuePropertiesProperty.builder()
.model("model")
.build())
.type("type")
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnForm.FieldInputConfigPropertystatic final classAn implementation forCfnForm.FieldInputConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectSpecifies whether a field has a default value.default StringThe default country code for a phone number.default StringThe default value for the field.default StringThe text to display to describe the field.default ObjectThe configuration for the file uploader field.default ObjectSpecifies whether to render the field as an array.default NumberThe maximum value to display for the field.default NumberThe minimum value to display for the field.default StringgetName()The name of the field.default StringThe text to display as a placeholder for the field.default ObjectSpecifies a read only field.default ObjectSpecifies a field that requires input.default NumbergetStep()The stepping increment for a numeric value in a field.getType()The input type for the field.default StringgetValue()The value for the field.default ObjectThe information to use to customize the input fields with data at runtime.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The input type for the field.- See Also:
-
getDefaultChecked
Specifies whether a field has a default value.Returns union: either
BooleanorIResolvable- See Also:
-
getDefaultCountryCode
The default country code for a phone number.- See Also:
-
getDefaultValue
The default value for the field.- See Also:
-
getDescriptiveText
The text to display to describe the field.- See Also:
-
getFileUploaderConfig
The configuration for the file uploader field.Returns union: either
IResolvableorCfnForm.FileUploaderFieldConfigProperty- See Also:
-
getIsArray
Specifies whether to render the field as an array.This property is ignored if the
dataSourceTypefor the form is a Data Store.Returns union: either
BooleanorIResolvable- See Also:
-
getMaxValue
The maximum value to display for the field.- See Also:
-
getMinValue
The minimum value to display for the field.- See Also:
-
getName
The name of the field.- See Also:
-
getPlaceholder
The text to display as a placeholder for the field.- See Also:
-
getReadOnly
Specifies a read only field.Returns union: either
BooleanorIResolvable- See Also:
-
getRequired
Specifies a field that requires input.Returns union: either
BooleanorIResolvable- See Also:
-
getStep
The stepping increment for a numeric value in a field.- See Also:
-
getValue
The value for the field.- See Also:
-
getValueMappings
The information to use to customize the input fields with data at runtime.Returns union: either
IResolvableorCfnForm.ValueMappingsProperty- See Also:
-
builder
-