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

com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceConfigServerGitSettingArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appplatform.kotlin.inputs

import com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property httpBasicAuth A `http_basic_auth` block as defined below.
 * @property label The default label of the Git repository, should be the branch name, tag name, or commit-id of the repository.
 * @property repositories One or more `repository` blocks as defined below.
 * @property searchPaths An array of strings used to search subdirectories of the Git repository.
 * @property sshAuth A `ssh_auth` block as defined below.
 * @property uri The URI of the default Git repository used as the Config Server back end, should be started with `http://`, `https://`, `git@`, or `ssh://`.
 */
public data class SpringCloudServiceConfigServerGitSettingArgs(
    public val httpBasicAuth: Output? =
        null,
    public val label: Output? = null,
    public val repositories: Output>? =
        null,
    public val searchPaths: Output>? = null,
    public val sshAuth: Output? = null,
    public val uri: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingArgs =
        com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingArgs.builder()
            .httpBasicAuth(httpBasicAuth?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .label(label?.applyValue({ args0 -> args0 }))
            .repositories(
                repositories?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .searchPaths(searchPaths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sshAuth(sshAuth?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SpringCloudServiceConfigServerGitSettingArgs].
 */
@PulumiTagMarker
public class SpringCloudServiceConfigServerGitSettingArgsBuilder internal constructor() {
    private var httpBasicAuth: Output? =
        null

    private var label: Output? = null

    private var repositories: Output>? =
        null

    private var searchPaths: Output>? = null

    private var sshAuth: Output? = null

    private var uri: Output? = null

    /**
     * @param value A `http_basic_auth` block as defined below.
     */
    @JvmName("juwxmyemlpqehfjp")
    public suspend fun httpBasicAuth(`value`: Output) {
        this.httpBasicAuth = value
    }

    /**
     * @param value The default label of the Git repository, should be the branch name, tag name, or commit-id of the repository.
     */
    @JvmName("okrqlyiwldxmtjlj")
    public suspend fun label(`value`: Output) {
        this.label = value
    }

    /**
     * @param value One or more `repository` blocks as defined below.
     */
    @JvmName("bomrjkwoqroswfob")
    public suspend fun repositories(`value`: Output>) {
        this.repositories = value
    }

    @JvmName("niowxiqmamijeuyf")
    public suspend fun repositories(vararg values: Output) {
        this.repositories = Output.all(values.asList())
    }

    /**
     * @param values One or more `repository` blocks as defined below.
     */
    @JvmName("kkueluxujjwgttex")
    public suspend fun repositories(values: List>) {
        this.repositories = Output.all(values)
    }

    /**
     * @param value An array of strings used to search subdirectories of the Git repository.
     */
    @JvmName("aodhnbxrcaaxterk")
    public suspend fun searchPaths(`value`: Output>) {
        this.searchPaths = value
    }

    @JvmName("vsklpvvdovgshrat")
    public suspend fun searchPaths(vararg values: Output) {
        this.searchPaths = Output.all(values.asList())
    }

    /**
     * @param values An array of strings used to search subdirectories of the Git repository.
     */
    @JvmName("vcdsppvltmasvrth")
    public suspend fun searchPaths(values: List>) {
        this.searchPaths = Output.all(values)
    }

    /**
     * @param value A `ssh_auth` block as defined below.
     */
    @JvmName("xhnxudxpaavlchif")
    public suspend fun sshAuth(`value`: Output) {
        this.sshAuth = value
    }

    /**
     * @param value The URI of the default Git repository used as the Config Server back end, should be started with `http://`, `https://`, `git@`, or `ssh://`.
     */
    @JvmName("cwtnbsodgtjyfpbo")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value A `http_basic_auth` block as defined below.
     */
    @JvmName("myrwmggqtaekgcgh")
    public suspend fun httpBasicAuth(`value`: SpringCloudServiceConfigServerGitSettingHttpBasicAuthArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpBasicAuth = mapped
    }

    /**
     * @param argument A `http_basic_auth` block as defined below.
     */
    @JvmName("exlexenbrukwvila")
    public suspend fun httpBasicAuth(argument: suspend SpringCloudServiceConfigServerGitSettingHttpBasicAuthArgsBuilder.() -> Unit) {
        val toBeMapped =
            SpringCloudServiceConfigServerGitSettingHttpBasicAuthArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.httpBasicAuth = mapped
    }

    /**
     * @param value The default label of the Git repository, should be the branch name, tag name, or commit-id of the repository.
     */
    @JvmName("ebcfyltemyuumvpm")
    public suspend fun label(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.label = mapped
    }

    /**
     * @param value One or more `repository` blocks as defined below.
     */
    @JvmName("dmyoustxtehodwdf")
    public suspend fun repositories(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repositories = mapped
    }

    /**
     * @param argument One or more `repository` blocks as defined below.
     */
    @JvmName("axcltcffgsdrklbo")
    public suspend fun repositories(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpringCloudServiceConfigServerGitSettingRepositoryArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.repositories = mapped
    }

    /**
     * @param argument One or more `repository` blocks as defined below.
     */
    @JvmName("fnwqsioubdttgddq")
    public suspend fun repositories(vararg argument: suspend SpringCloudServiceConfigServerGitSettingRepositoryArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SpringCloudServiceConfigServerGitSettingRepositoryArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.repositories = mapped
    }

    /**
     * @param argument One or more `repository` blocks as defined below.
     */
    @JvmName("sxakojxdeaupfsda")
    public suspend fun repositories(argument: suspend SpringCloudServiceConfigServerGitSettingRepositoryArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                SpringCloudServiceConfigServerGitSettingRepositoryArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.repositories = mapped
    }

    /**
     * @param values One or more `repository` blocks as defined below.
     */
    @JvmName("hqvhxmjctmqqwvhr")
    public suspend fun repositories(vararg values: SpringCloudServiceConfigServerGitSettingRepositoryArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.repositories = mapped
    }

    /**
     * @param value An array of strings used to search subdirectories of the Git repository.
     */
    @JvmName("bnwihprhvbglrqfn")
    public suspend fun searchPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.searchPaths = mapped
    }

    /**
     * @param values An array of strings used to search subdirectories of the Git repository.
     */
    @JvmName("oxnsqvvjgppeckkh")
    public suspend fun searchPaths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.searchPaths = mapped
    }

    /**
     * @param value A `ssh_auth` block as defined below.
     */
    @JvmName("kgjjlfwncxverllf")
    public suspend fun sshAuth(`value`: SpringCloudServiceConfigServerGitSettingSshAuthArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sshAuth = mapped
    }

    /**
     * @param argument A `ssh_auth` block as defined below.
     */
    @JvmName("thaplfcdtjxyxist")
    public suspend fun sshAuth(argument: suspend SpringCloudServiceConfigServerGitSettingSshAuthArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudServiceConfigServerGitSettingSshAuthArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sshAuth = mapped
    }

    /**
     * @param value The URI of the default Git repository used as the Config Server back end, should be started with `http://`, `https://`, `git@`, or `ssh://`.
     */
    @JvmName("xehyfllktmljxdnb")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): SpringCloudServiceConfigServerGitSettingArgs =
        SpringCloudServiceConfigServerGitSettingArgs(
            httpBasicAuth = httpBasicAuth,
            label = label,
            repositories = repositories,
            searchPaths = searchPaths,
            sshAuth = sshAuth,
            uri = uri ?: throw PulumiNullFieldException("uri"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy