com.pulumi.gcp.datastream.kotlin.inputs.StreamDestinationConfigArgs.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.datastream.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.datastream.inputs.StreamDestinationConfigArgs.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 bigqueryDestinationConfig A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
* @property destinationConnectionProfile Destination connection profile resource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}
* @property gcsDestinationConfig A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
*/
public data class StreamDestinationConfigArgs(
public val bigqueryDestinationConfig: Output? = null,
public val destinationConnectionProfile: Output,
public val gcsDestinationConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamDestinationConfigArgs =
com.pulumi.gcp.datastream.inputs.StreamDestinationConfigArgs.builder()
.bigqueryDestinationConfig(
bigqueryDestinationConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.destinationConnectionProfile(destinationConnectionProfile.applyValue({ args0 -> args0 }))
.gcsDestinationConfig(
gcsDestinationConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [StreamDestinationConfigArgs].
*/
@PulumiTagMarker
public class StreamDestinationConfigArgsBuilder internal constructor() {
private var bigqueryDestinationConfig:
Output? = null
private var destinationConnectionProfile: Output? = null
private var gcsDestinationConfig: Output? = null
/**
* @param value A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
*/
@JvmName("wlodkqcejnurxgrn")
public suspend fun bigqueryDestinationConfig(`value`: Output) {
this.bigqueryDestinationConfig = value
}
/**
* @param value Destination connection profile resource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}
*/
@JvmName("alvwfbsceqsnpoiy")
public suspend fun destinationConnectionProfile(`value`: Output) {
this.destinationConnectionProfile = value
}
/**
* @param value A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
*/
@JvmName("osokjxffvimetwuo")
public suspend fun gcsDestinationConfig(`value`: Output) {
this.gcsDestinationConfig = value
}
/**
* @param value A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
*/
@JvmName("omscdufxrmhqwhar")
public suspend fun bigqueryDestinationConfig(`value`: StreamDestinationConfigBigqueryDestinationConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bigqueryDestinationConfig = mapped
}
/**
* @param argument A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
*/
@JvmName("mpbyicamxnhrhmqp")
public suspend fun bigqueryDestinationConfig(argument: suspend StreamDestinationConfigBigqueryDestinationConfigArgsBuilder.() -> Unit) {
val toBeMapped = StreamDestinationConfigBigqueryDestinationConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.bigqueryDestinationConfig = mapped
}
/**
* @param value Destination connection profile resource. Format: projects/{project}/locations/{location}/connectionProfiles/{name}
*/
@JvmName("kcgoaasimggjphcm")
public suspend fun destinationConnectionProfile(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destinationConnectionProfile = mapped
}
/**
* @param value A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
*/
@JvmName("luqmdsjvfssgvicx")
public suspend fun gcsDestinationConfig(`value`: StreamDestinationConfigGcsDestinationConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gcsDestinationConfig = mapped
}
/**
* @param argument A configuration for how data should be loaded to Cloud Storage.
* Structure is documented below.
*/
@JvmName("xcokbfocmaaixjmx")
public suspend fun gcsDestinationConfig(argument: suspend StreamDestinationConfigGcsDestinationConfigArgsBuilder.() -> Unit) {
val toBeMapped = StreamDestinationConfigGcsDestinationConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.gcsDestinationConfig = mapped
}
internal fun build(): StreamDestinationConfigArgs = StreamDestinationConfigArgs(
bigqueryDestinationConfig = bigqueryDestinationConfig,
destinationConnectionProfile = destinationConnectionProfile ?: throw
PulumiNullFieldException("destinationConnectionProfile"),
gcsDestinationConfig = gcsDestinationConfig,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy