com.pulumi.gcp.bigquery.kotlin.inputs.JobLoadTimePartitioningArgs.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.JobLoadTimePartitioningArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property expirationMs Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value.
* @property field If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field.
* The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
* A wrapper is used here because an empty string is an invalid value.
* @property type The only type supported is DAY, which will generate one partition per day. Providing an empty string used to cause an error,
* but in OnePlatform the field will be treated as unset.
*/
public data class JobLoadTimePartitioningArgs(
public val expirationMs: Output? = null,
public val `field`: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.bigquery.inputs.JobLoadTimePartitioningArgs =
com.pulumi.gcp.bigquery.inputs.JobLoadTimePartitioningArgs.builder()
.expirationMs(expirationMs?.applyValue({ args0 -> args0 }))
.`field`(`field`?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobLoadTimePartitioningArgs].
*/
@PulumiTagMarker
public class JobLoadTimePartitioningArgsBuilder internal constructor() {
private var expirationMs: Output? = null
private var `field`: Output? = null
private var type: Output? = null
/**
* @param value Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value.
*/
@JvmName("ajkjxymixlidbgxu")
public suspend fun expirationMs(`value`: Output) {
this.expirationMs = value
}
/**
* @param value If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field.
* The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
* A wrapper is used here because an empty string is an invalid value.
*/
@JvmName("ndpojwrbjgavfkxy")
public suspend fun `field`(`value`: Output) {
this.`field` = value
}
/**
* @param value The only type supported is DAY, which will generate one partition per day. Providing an empty string used to cause an error,
* but in OnePlatform the field will be treated as unset.
*/
@JvmName("pnyjquubrpbqiwsw")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value.
*/
@JvmName("upbemcaobpsvhtnt")
public suspend fun expirationMs(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expirationMs = mapped
}
/**
* @param value If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field.
* The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
* A wrapper is used here because an empty string is an invalid value.
*/
@JvmName("xhkxmwkkqgtukepn")
public suspend fun `field`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`field` = mapped
}
/**
* @param value The only type supported is DAY, which will generate one partition per day. Providing an empty string used to cause an error,
* but in OnePlatform the field will be treated as unset.
*/
@JvmName("bwvlbrkocuvgvwsv")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): JobLoadTimePartitioningArgs = JobLoadTimePartitioningArgs(
expirationMs = expirationMs,
`field` = `field`,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy