com.pulumi.awsnative.qbusiness.kotlin.outputs.IndexDocumentAttributeConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.qbusiness.kotlin.outputs
import com.pulumi.awsnative.qbusiness.kotlin.enums.IndexAttributeType
import com.pulumi.awsnative.qbusiness.kotlin.enums.QBusinessIndexStatus
import kotlin.String
import kotlin.Suppress
/**
*
* @property name The name of the document attribute.
* @property search Information about whether the document attribute can be used by an end user to search for information on their web experience.
* @property type The type of document attribute.
*/
public data class IndexDocumentAttributeConfiguration(
public val name: String? = null,
public val search: QBusinessIndexStatus? = null,
public val type: IndexAttributeType? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.qbusiness.outputs.IndexDocumentAttributeConfiguration): IndexDocumentAttributeConfiguration = IndexDocumentAttributeConfiguration(
name = javaType.name().map({ args0 -> args0 }).orElse(null),
search = javaType.search().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.qbusiness.kotlin.enums.QBusinessIndexStatus.Companion.toKotlin(args0)
})
}).orElse(null),
type = javaType.type().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.qbusiness.kotlin.enums.IndexAttributeType.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}