com.pulumi.gcp.bigquery.kotlin.inputs.TableRangePartitioningArgs.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.TableRangePartitioningArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property field The field used to determine how to create a range-based
* partition.
* @property range Information required to partition based on ranges.
* Structure is documented below.
*/
public data class TableRangePartitioningArgs(
public val `field`: Output,
public val range: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.bigquery.inputs.TableRangePartitioningArgs =
com.pulumi.gcp.bigquery.inputs.TableRangePartitioningArgs.builder()
.`field`(`field`.applyValue({ args0 -> args0 }))
.range(range.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TableRangePartitioningArgs].
*/
@PulumiTagMarker
public class TableRangePartitioningArgsBuilder internal constructor() {
private var `field`: Output? = null
private var range: Output? = null
/**
* @param value The field used to determine how to create a range-based
* partition.
*/
@JvmName("ydcufiprabcnsqod")
public suspend fun `field`(`value`: Output) {
this.`field` = value
}
/**
* @param value Information required to partition based on ranges.
* Structure is documented below.
*/
@JvmName("dohuvreoeuvjkeyq")
public suspend fun range(`value`: Output) {
this.range = value
}
/**
* @param value The field used to determine how to create a range-based
* partition.
*/
@JvmName("sslcgawngpsrghiv")
public suspend fun `field`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`field` = mapped
}
/**
* @param value Information required to partition based on ranges.
* Structure is documented below.
*/
@JvmName("hsygwvymgccfugeh")
public suspend fun range(`value`: TableRangePartitioningRangeArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.range = mapped
}
/**
* @param argument Information required to partition based on ranges.
* Structure is documented below.
*/
@JvmName("mognixcwlikypgce")
public suspend fun range(argument: suspend TableRangePartitioningRangeArgsBuilder.() -> Unit) {
val toBeMapped = TableRangePartitioningRangeArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.range = mapped
}
internal fun build(): TableRangePartitioningArgs = TableRangePartitioningArgs(
`field` = `field` ?: throw PulumiNullFieldException("field"),
range = range ?: throw PulumiNullFieldException("range"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy