
com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormFieldConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property excluded Specifies whether to hide a field.
* @property inputType Describes the configuration for the default input value to display for a field.
* @property label The label for the field.
* @property position Specifies the field position.
* @property validations The validations to perform on the value in the field.
*/
public data class FormFieldConfig(
public val excluded: Boolean? = null,
public val inputType: FormFieldInputConfig? = null,
public val label: String? = null,
public val position: Any? = null,
public val validations: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.FormFieldConfig): FormFieldConfig = FormFieldConfig(
excluded = javaType.excluded().map({ args0 -> args0 }).orElse(null),
inputType = javaType.inputType().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormFieldInputConfig.Companion.toKotlin(args0)
})
}).orElse(null),
label = javaType.label().map({ args0 -> args0 }).orElse(null),
position = javaType.position().map({ args0 -> args0 }).orElse(null),
validations = javaType.validations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormFieldValidationConfiguration.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy