All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormFieldInputConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs

import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property defaultChecked Specifies whether a field has a default value.
 * @property defaultCountryCode The default country code for a phone number.
 * @property defaultValue The default value for the field.
 * @property descriptiveText The text to display to describe the field.
 * @property fileUploaderConfig The configuration for the file uploader field.
 * @property isArray Specifies whether to render the field as an array. This property is ignored if the `dataSourceType` for the form is a Data Store.
 * @property maxValue The maximum value to display for the field.
 * @property minValue The minimum value to display for the field.
 * @property name The name of the field.
 * @property placeholder The text to display as a placeholder for the field.
 * @property readOnly Specifies a read only field.
 * @property required Specifies a field that requires input.
 * @property step The stepping increment for a numeric value in a field.
 * @property type The input type for the field.
 * @property value The value for the field.
 * @property valueMappings The information to use to customize the input fields with data at runtime.
 */
public data class FormFieldInputConfig(
    public val defaultChecked: Boolean? = null,
    public val defaultCountryCode: String? = null,
    public val defaultValue: String? = null,
    public val descriptiveText: String? = null,
    public val fileUploaderConfig: FormFileUploaderFieldConfig? = null,
    public val isArray: Boolean? = null,
    public val maxValue: Double? = null,
    public val minValue: Double? = null,
    public val name: String? = null,
    public val placeholder: String? = null,
    public val readOnly: Boolean? = null,
    public val required: Boolean? = null,
    public val step: Double? = null,
    public val type: String,
    public val `value`: String? = null,
    public val valueMappings: FormValueMappings? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.FormFieldInputConfig): FormFieldInputConfig = FormFieldInputConfig(
            defaultChecked = javaType.defaultChecked().map({ args0 -> args0 }).orElse(null),
            defaultCountryCode = javaType.defaultCountryCode().map({ args0 -> args0 }).orElse(null),
            defaultValue = javaType.defaultValue().map({ args0 -> args0 }).orElse(null),
            descriptiveText = javaType.descriptiveText().map({ args0 -> args0 }).orElse(null),
            fileUploaderConfig = javaType.fileUploaderConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormFileUploaderFieldConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            isArray = javaType.isArray().map({ args0 -> args0 }).orElse(null),
            maxValue = javaType.maxValue().map({ args0 -> args0 }).orElse(null),
            minValue = javaType.minValue().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            placeholder = javaType.placeholder().map({ args0 -> args0 }).orElse(null),
            readOnly = javaType.readOnly().map({ args0 -> args0 }).orElse(null),
            required = javaType.required().map({ args0 -> args0 }).orElse(null),
            step = javaType.step().map({ args0 -> args0 }).orElse(null),
            type = javaType.type(),
            `value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
            valueMappings = javaType.valueMappings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormValueMappings.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy