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

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

/**
 * Builder for [AppSpecServiceGitArgs].
 */
@PulumiTagMarker
public class AppSpecServiceGitArgsBuilder internal constructor() {
    private var branch: Output? = null

    private var repoCloneUrl: Output? = null

    /**
     * @param value The name of the branch to use.
     */
    @JvmName("erpwrhjngmdkbmtt")
    public suspend fun branch(`value`: Output) {
        this.branch = value
    }

    /**
     * @param value The clone URL of the repo.
     */
    @JvmName("rnbpyylrqflkcfry")
    public suspend fun repoCloneUrl(`value`: Output) {
        this.repoCloneUrl = value
    }

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

    internal fun build(): AppSpecServiceGitArgs = AppSpecServiceGitArgs(
        branch = branch,
        repoCloneUrl = repoCloneUrl,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy