com.pulumi.digitalocean.kotlin.inputs.AppSpecFunctionGitArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecFunctionGitArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property branch The name of the branch to use.
* @property repoCloneUrl The clone URL of the repo.
*/
public data class AppSpecFunctionGitArgs(
public val branch: Output? = null,
public val repoCloneUrl: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecFunctionGitArgs =
com.pulumi.digitalocean.inputs.AppSpecFunctionGitArgs.builder()
.branch(branch?.applyValue({ args0 -> args0 }))
.repoCloneUrl(repoCloneUrl?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecFunctionGitArgs].
*/
@PulumiTagMarker
public class AppSpecFunctionGitArgsBuilder internal constructor() {
private var branch: Output? = null
private var repoCloneUrl: Output? = null
/**
* @param value The name of the branch to use.
*/
@JvmName("lbvmbrbmnyvvmqbg")
public suspend fun branch(`value`: Output) {
this.branch = value
}
/**
* @param value The clone URL of the repo.
*/
@JvmName("bqmkxjxapvdavbbn")
public suspend fun repoCloneUrl(`value`: Output) {
this.repoCloneUrl = value
}
/**
* @param value The name of the branch to use.
*/
@JvmName("hglcxsvogyuywdoo")
public suspend fun branch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.branch = mapped
}
/**
* @param value The clone URL of the repo.
*/
@JvmName("mhriemslnsanuiif")
public suspend fun repoCloneUrl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repoCloneUrl = mapped
}
internal fun build(): AppSpecFunctionGitArgs = AppSpecFunctionGitArgs(
branch = branch,
repoCloneUrl = repoCloneUrl,
)
}