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

com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetFormResult.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 com.pulumi.awsnative.amplifyuibuilder.kotlin.enums.FormActionType
import com.pulumi.awsnative.amplifyuibuilder.kotlin.enums.FormLabelDecorator
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property cta The `FormCTA` object that stores the call to action configuration for the form.
 * @property dataType The type of data source to use to create the form.
 * @property fields The configuration information for the form's fields.
 * @property formActionType Specifies whether to perform a create or update action on the form.
 * @property id The ID for the form.
 * @property labelDecorator Specifies an icon or decoration to display on the form.
 * @property name The name of the form.
 * @property schemaVersion The schema version of the form.
 * @property sectionalElements The configuration information for the visual helper elements for the form. These elements are not associated with any data.
 * @property style The configuration for the form's style.
 * @property tags One or more key-value pairs to use when tagging the form data.
 */
public data class GetFormResult(
    public val cta: FormCta? = null,
    public val dataType: FormDataTypeConfig? = null,
    public val fields: Map? = null,
    public val formActionType: FormActionType? = null,
    public val id: String? = null,
    public val labelDecorator: FormLabelDecorator? = null,
    public val name: String? = null,
    public val schemaVersion: String? = null,
    public val sectionalElements: Map? = null,
    public val style: FormStyle? = null,
    public val tags: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.GetFormResult): GetFormResult = GetFormResult(
            cta = javaType.cta().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormCta.Companion.toKotlin(args0)
                })
            }).orElse(null),
            dataType = javaType.dataType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormDataTypeConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            fields = javaType.fields().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormFieldConfig.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            formActionType = javaType.formActionType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.enums.FormActionType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            labelDecorator = javaType.labelDecorator().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.enums.FormLabelDecorator.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            schemaVersion = javaType.schemaVersion().map({ args0 -> args0 }).orElse(null),
            sectionalElements = javaType.sectionalElements().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormSectionalElement.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            style = javaType.style().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.FormStyle.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy