com.pulumi.gcp.dataplex.kotlin.inputs.DatascanExecutionSpecArgs.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.dataplex.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecArgs.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 unnested field (of type Date or Timestamp) that contains values which monotonically increase over time. If not specified, a data scan will run for all data in the table.
* @property trigger Spec related to how often and when a scan should be triggered.
* Structure is documented below.
*/
public data class DatascanExecutionSpecArgs(
public val `field`: Output? = null,
public val trigger: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecArgs =
com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecArgs.builder()
.`field`(`field`?.applyValue({ args0 -> args0 }))
.trigger(trigger.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DatascanExecutionSpecArgs].
*/
@PulumiTagMarker
public class DatascanExecutionSpecArgsBuilder internal constructor() {
private var `field`: Output? = null
private var trigger: Output? = null
/**
* @param value The unnested field (of type Date or Timestamp) that contains values which monotonically increase over time. If not specified, a data scan will run for all data in the table.
*/
@JvmName("jybdomdfhgtdwcdd")
public suspend fun `field`(`value`: Output) {
this.`field` = value
}
/**
* @param value Spec related to how often and when a scan should be triggered.
* Structure is documented below.
*/
@JvmName("wwfjyulwquvufxec")
public suspend fun trigger(`value`: Output) {
this.trigger = value
}
/**
* @param value The unnested field (of type Date or Timestamp) that contains values which monotonically increase over time. If not specified, a data scan will run for all data in the table.
*/
@JvmName("nfjwoihqgtwwffis")
public suspend fun `field`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`field` = mapped
}
/**
* @param value Spec related to how often and when a scan should be triggered.
* Structure is documented below.
*/
@JvmName("wviqhxomwnwwvxse")
public suspend fun trigger(`value`: DatascanExecutionSpecTriggerArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.trigger = mapped
}
/**
* @param argument Spec related to how often and when a scan should be triggered.
* Structure is documented below.
*/
@JvmName("jyxrryyfahbfeeoa")
public suspend fun trigger(argument: suspend DatascanExecutionSpecTriggerArgsBuilder.() -> Unit) {
val toBeMapped = DatascanExecutionSpecTriggerArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.trigger = mapped
}
internal fun build(): DatascanExecutionSpecArgs = DatascanExecutionSpecArgs(
`field` = `field`,
trigger = trigger ?: throw PulumiNullFieldException("trigger"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy