com.pulumi.gcp.cloudfunctionsv2.kotlin.inputs.FunctionBuildConfigSourceArgs.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.cloudfunctionsv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionBuildConfigSourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property repoSource If provided, get the source from this location in a Cloud Source Repository.
* Structure is documented below.
* @property storageSource If provided, get the source from this location in Google Cloud Storage.
* Structure is documented below.
*/
public data class FunctionBuildConfigSourceArgs(
public val repoSource: Output? = null,
public val storageSource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionBuildConfigSourceArgs =
com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionBuildConfigSourceArgs.builder()
.repoSource(repoSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.storageSource(storageSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [FunctionBuildConfigSourceArgs].
*/
@PulumiTagMarker
public class FunctionBuildConfigSourceArgsBuilder internal constructor() {
private var repoSource: Output? = null
private var storageSource: Output? = null
/**
* @param value If provided, get the source from this location in a Cloud Source Repository.
* Structure is documented below.
*/
@JvmName("kxyhivdkcgkpfnvb")
public suspend fun repoSource(`value`: Output) {
this.repoSource = value
}
/**
* @param value If provided, get the source from this location in Google Cloud Storage.
* Structure is documented below.
*/
@JvmName("gtmjkvfsxlfnhmft")
public suspend fun storageSource(`value`: Output) {
this.storageSource = value
}
/**
* @param value If provided, get the source from this location in a Cloud Source Repository.
* Structure is documented below.
*/
@JvmName("dfrtavaaqgifyqeh")
public suspend fun repoSource(`value`: FunctionBuildConfigSourceRepoSourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repoSource = mapped
}
/**
* @param argument If provided, get the source from this location in a Cloud Source Repository.
* Structure is documented below.
*/
@JvmName("scomdjnxdpmdbajs")
public suspend fun repoSource(argument: suspend FunctionBuildConfigSourceRepoSourceArgsBuilder.() -> Unit) {
val toBeMapped = FunctionBuildConfigSourceRepoSourceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.repoSource = mapped
}
/**
* @param value If provided, get the source from this location in Google Cloud Storage.
* Structure is documented below.
*/
@JvmName("fqnxfpfhdhhwwgks")
public suspend fun storageSource(`value`: FunctionBuildConfigSourceStorageSourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageSource = mapped
}
/**
* @param argument If provided, get the source from this location in Google Cloud Storage.
* Structure is documented below.
*/
@JvmName("pkofmhxxxanmxblf")
public suspend fun storageSource(argument: suspend FunctionBuildConfigSourceStorageSourceArgsBuilder.() -> Unit) {
val toBeMapped = FunctionBuildConfigSourceStorageSourceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.storageSource = mapped
}
internal fun build(): FunctionBuildConfigSourceArgs = FunctionBuildConfigSourceArgs(
repoSource = repoSource,
storageSource = storageSource,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy