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

com.pulumi.awsnative.connect.kotlin.outputs.EvaluationFormSection.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.connect.kotlin.outputs

import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * Information about a section from an evaluation form. A section can contain sections and/or questions. Evaluation forms can only contain sections and subsections (two level nesting).
 * @property instructions The instructions of the section.
 * @property items The items of the section.
 *   *Minimum*: 1
 * @property refId The identifier of the section. An identifier must be unique within the evaluation form.
 *   *Length Constraints*: Minimum length of 1. Maximum length of 40.
 * @property title The title of the section.
 *   *Length Constraints*: Minimum length of 1. Maximum length of 128.
 * @property weight The scoring weight of the section.
 *   *Minimum*: 0
 *   *Maximum*: 100
 */
public data class EvaluationFormSection(
    public val instructions: String? = null,
    public val items: List? = null,
    public val refId: String,
    public val title: String,
    public val weight: Double? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.connect.outputs.EvaluationFormSection): EvaluationFormSection = EvaluationFormSection(
            instructions = javaType.instructions().map({ args0 -> args0 }).orElse(null),
            items = javaType.items().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.connect.kotlin.outputs.EvaluationFormItem.Companion.toKotlin(args0)
                })
            }),
            refId = javaType.refId(),
            title = javaType.title(),
            weight = javaType.weight().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy