com.pulumi.digitalocean.kotlin.inputs.AppSpecStaticSiteGitlabArgs.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.AppSpecStaticSiteGitlabArgs.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 AppSpecStaticSiteGitlabArgs(
public val branch: Output? = null,
public val deployOnPush: Output? = null,
public val repo: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecStaticSiteGitlabArgs =
com.pulumi.digitalocean.inputs.AppSpecStaticSiteGitlabArgs.builder()
.branch(branch?.applyValue({ args0 -> args0 }))
.deployOnPush(deployOnPush?.applyValue({ args0 -> args0 }))
.repo(repo?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecStaticSiteGitlabArgs].
*/
@PulumiTagMarker
public class AppSpecStaticSiteGitlabArgsBuilder 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("eetylircmkqurorl")
public suspend fun branch(`value`: Output) {
this.branch = value
}
/**
* @param value Whether to automatically deploy new commits made to the repo.
*/
@JvmName("ujfbnbhtbutokwwm")
public suspend fun deployOnPush(`value`: Output) {
this.deployOnPush = value
}
/**
* @param value The name of the repo in the format `owner/repo`.
*/
@JvmName("gpmuyiececppgyiu")
public suspend fun repo(`value`: Output) {
this.repo = value
}
/**
* @param value The name of the branch to use.
*/
@JvmName("dskjlerpkjtwrpbh")
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("xtyisugecrexpivo")
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("qodlyjgdrtxeeecu")
public suspend fun repo(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repo = mapped
}
internal fun build(): AppSpecStaticSiteGitlabArgs = AppSpecStaticSiteGitlabArgs(
branch = branch,
deployOnPush = deployOnPush,
repo = repo,
)
}