All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.digitalocean.kotlin.inputs.AppSpecFunctionGitlabArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.35.0.0
Show newest version
@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.AppSpecFunctionGitlabArgs.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 AppSpecFunctionGitlabArgs(
    public val branch: Output? = null,
    public val deployOnPush: Output? = null,
    public val repo: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecFunctionGitlabArgs =
        com.pulumi.digitalocean.inputs.AppSpecFunctionGitlabArgs.builder()
            .branch(branch?.applyValue({ args0 -> args0 }))
            .deployOnPush(deployOnPush?.applyValue({ args0 -> args0 }))
            .repo(repo?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecFunctionGitlabArgs].
 */
@PulumiTagMarker
public class AppSpecFunctionGitlabArgsBuilder 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("donpqqkkjfoijlcx")
    public suspend fun branch(`value`: Output) {
        this.branch = value
    }

    /**
     * @param value Whether to automatically deploy new commits made to the repo.
     */
    @JvmName("fwgfeowyjboshxgs")
    public suspend fun deployOnPush(`value`: Output) {
        this.deployOnPush = value
    }

    /**
     * @param value The name of the repo in the format `owner/repo`.
     */
    @JvmName("jdfdknskufnkmwhd")
    public suspend fun repo(`value`: Output) {
        this.repo = value
    }

    /**
     * @param value The name of the branch to use.
     */
    @JvmName("wfclxfiwoialtigo")
    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("xtrplvbxglxakrgm")
    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("efwbdgxbjmcyuong")
    public suspend fun repo(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repo = mapped
    }

    internal fun build(): AppSpecFunctionGitlabArgs = AppSpecFunctionGitlabArgs(
        branch = branch,
        deployOnPush = deployOnPush,
        repo = repo,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy