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

com.pulumi.digitalocean.kotlin.inputs.AppSpecWorkerGithubArgs.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.AppSpecWorkerGithubArgs.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 AppSpecWorkerGithubArgs(
    public val branch: Output? = null,
    public val deployOnPush: Output? = null,
    public val repo: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecWorkerGithubArgs =
        com.pulumi.digitalocean.inputs.AppSpecWorkerGithubArgs.builder()
            .branch(branch?.applyValue({ args0 -> args0 }))
            .deployOnPush(deployOnPush?.applyValue({ args0 -> args0 }))
            .repo(repo?.applyValue({ args0 -> args0 })).build()
}

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy