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

com.pulumi.awsnative.qbusiness.kotlin.outputs.IndexDocumentAttributeConfiguration.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.11.0.0
Show newest version
@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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy