com.pulumi.gcp.bigquery.kotlin.inputs.TableExternalDataConfigurationAvroOptionsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.bigquery.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.TableExternalDataConfigurationAvroOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property useAvroLogicalTypes If is set to true, indicates whether
* to interpret logical types as the corresponding BigQuery data type
* (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
*/
public data class TableExternalDataConfigurationAvroOptionsArgs(
public val useAvroLogicalTypes: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.bigquery.inputs.TableExternalDataConfigurationAvroOptionsArgs =
com.pulumi.gcp.bigquery.inputs.TableExternalDataConfigurationAvroOptionsArgs.builder()
.useAvroLogicalTypes(useAvroLogicalTypes.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TableExternalDataConfigurationAvroOptionsArgs].
*/
@PulumiTagMarker
public class TableExternalDataConfigurationAvroOptionsArgsBuilder internal constructor() {
private var useAvroLogicalTypes: Output? = null
/**
* @param value If is set to true, indicates whether
* to interpret logical types as the corresponding BigQuery data type
* (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
*/
@JvmName("yfmardrxkbtgwsnh")
public suspend fun useAvroLogicalTypes(`value`: Output) {
this.useAvroLogicalTypes = value
}
/**
* @param value If is set to true, indicates whether
* to interpret logical types as the corresponding BigQuery data type
* (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
*/
@JvmName("dmghwrbxmrueuwjx")
public suspend fun useAvroLogicalTypes(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.useAvroLogicalTypes = mapped
}
internal fun build(): TableExternalDataConfigurationAvroOptionsArgs =
TableExternalDataConfigurationAvroOptionsArgs(
useAvroLogicalTypes = useAvroLogicalTypes ?: throw PulumiNullFieldException("useAvroLogicalTypes"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy