com.pulumi.digitalocean.kotlin.inputs.AppSpecStaticSiteGithubArgs.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.AppSpecStaticSiteGithubArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property branch The name of the branch to use.
* @property deployOnPush Whether to automatically deploy new commits made to the repo.
* @property repo The name of the repo in the format `owner/repo`.
*/
public data class AppSpecStaticSiteGithubArgs(
public val branch: Output? = null,
public val deployOnPush: Output? = null,
public val repo: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecStaticSiteGithubArgs =
com.pulumi.digitalocean.inputs.AppSpecStaticSiteGithubArgs.builder()
.branch(branch?.applyValue({ args0 -> args0 }))
.deployOnPush(deployOnPush?.applyValue({ args0 -> args0 }))
.repo(repo?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecStaticSiteGithubArgs].
*/
@PulumiTagMarker
public class AppSpecStaticSiteGithubArgsBuilder internal constructor() {
private var branch: Output? = null
private var deployOnPush: Output? = null
private var repo: Output? = null
/**
* @param value The name of the branch to use.
*/
@JvmName("pgfgoxwtgvnftddr")
public suspend fun branch(`value`: Output) {
this.branch = value
}
/**
* @param value Whether to automatically deploy new commits made to the repo.
*/
@JvmName("vqsrslcdgsalmbhv")
public suspend fun deployOnPush(`value`: Output) {
this.deployOnPush = value
}
/**
* @param value The name of the repo in the format `owner/repo`.
*/
@JvmName("cgtxnsqhgmowwfgk")
public suspend fun repo(`value`: Output) {
this.repo = value
}
/**
* @param value The name of the branch to use.
*/
@JvmName("ftrfvdwprhlkicqi")
public suspend fun branch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.branch = mapped
}
/**
* @param value Whether to automatically deploy new commits made to the repo.
*/
@JvmName("leqdievmrvslotwv")
public suspend fun deployOnPush(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deployOnPush = mapped
}
/**
* @param value The name of the repo in the format `owner/repo`.
*/
@JvmName("mpyerknhkxtuhgbq")
public suspend fun repo(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repo = mapped
}
internal fun build(): AppSpecStaticSiteGithubArgs = AppSpecStaticSiteGithubArgs(
branch = branch,
deployOnPush = deployOnPush,
repo = repo,
)
}