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

com.pulumi.azure.appservice.kotlin.inputs.AppServiceSourceControlArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.AppServiceSourceControlArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 branch of the remote repository to use. Defaults to 'master'.
 * @property manualIntegration Limits to manual integration. Defaults to `false` if not specified.
 * @property repoUrl The URL of the source code repository.
 * @property rollbackEnabled Enable roll-back for the repository. Defaults to `false` if not specified.
 * @property useMercurial Use Mercurial if `true`, otherwise uses Git.
 */
public data class AppServiceSourceControlArgs(
    public val branch: Output? = null,
    public val manualIntegration: Output? = null,
    public val repoUrl: Output? = null,
    public val rollbackEnabled: Output? = null,
    public val useMercurial: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.AppServiceSourceControlArgs =
        com.pulumi.azure.appservice.inputs.AppServiceSourceControlArgs.builder()
            .branch(branch?.applyValue({ args0 -> args0 }))
            .manualIntegration(manualIntegration?.applyValue({ args0 -> args0 }))
            .repoUrl(repoUrl?.applyValue({ args0 -> args0 }))
            .rollbackEnabled(rollbackEnabled?.applyValue({ args0 -> args0 }))
            .useMercurial(useMercurial?.applyValue({ args0 -> args0 })).build()
}

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

    private var manualIntegration: Output? = null

    private var repoUrl: Output? = null

    private var rollbackEnabled: Output? = null

    private var useMercurial: Output? = null

    /**
     * @param value The branch of the remote repository to use. Defaults to 'master'.
     */
    @JvmName("jmmnaunasarcynea")
    public suspend fun branch(`value`: Output) {
        this.branch = value
    }

    /**
     * @param value Limits to manual integration. Defaults to `false` if not specified.
     */
    @JvmName("cochjmuopuermjtp")
    public suspend fun manualIntegration(`value`: Output) {
        this.manualIntegration = value
    }

    /**
     * @param value The URL of the source code repository.
     */
    @JvmName("cnxbpqsocksruxgq")
    public suspend fun repoUrl(`value`: Output) {
        this.repoUrl = value
    }

    /**
     * @param value Enable roll-back for the repository. Defaults to `false` if not specified.
     */
    @JvmName("gngodindlxxbrlph")
    public suspend fun rollbackEnabled(`value`: Output) {
        this.rollbackEnabled = value
    }

    /**
     * @param value Use Mercurial if `true`, otherwise uses Git.
     */
    @JvmName("nchroojbwmwbpsum")
    public suspend fun useMercurial(`value`: Output) {
        this.useMercurial = value
    }

    /**
     * @param value The branch of the remote repository to use. Defaults to 'master'.
     */
    @JvmName("vfexjtypydjaktow")
    public suspend fun branch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.branch = mapped
    }

    /**
     * @param value Limits to manual integration. Defaults to `false` if not specified.
     */
    @JvmName("dmofutkutnpoppda")
    public suspend fun manualIntegration(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualIntegration = mapped
    }

    /**
     * @param value The URL of the source code repository.
     */
    @JvmName("jryrkxinpuifrosn")
    public suspend fun repoUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repoUrl = mapped
    }

    /**
     * @param value Enable roll-back for the repository. Defaults to `false` if not specified.
     */
    @JvmName("bpblcqioeoolfbym")
    public suspend fun rollbackEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rollbackEnabled = mapped
    }

    /**
     * @param value Use Mercurial if `true`, otherwise uses Git.
     */
    @JvmName("grhvumlargsgywch")
    public suspend fun useMercurial(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useMercurial = mapped
    }

    internal fun build(): AppServiceSourceControlArgs = AppServiceSourceControlArgs(
        branch = branch,
        manualIntegration = manualIntegration,
        repoUrl = repoUrl,
        rollbackEnabled = rollbackEnabled,
        useMercurial = useMercurial,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy