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

com.pulumi.azurenative.securityinsights.kotlin.inputs.RepositoryArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.securityinsights.kotlin.inputs

import com.pulumi.azurenative.securityinsights.inputs.RepositoryArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * metadata of a repository.
 * @property branch Branch name of repository.
 * @property deploymentLogsUrl Url to access repository action logs.
 * @property displayUrl Display url of repository.
 * @property pathMapping Dictionary of source control content type and path mapping.
 * @property url Url of repository.
 */
public data class RepositoryArgs(
    public val branch: Output? = null,
    public val deploymentLogsUrl: Output? = null,
    public val displayUrl: Output? = null,
    public val pathMapping: Output>? = null,
    public val url: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.RepositoryArgs =
        com.pulumi.azurenative.securityinsights.inputs.RepositoryArgs.builder()
            .branch(branch?.applyValue({ args0 -> args0 }))
            .deploymentLogsUrl(deploymentLogsUrl?.applyValue({ args0 -> args0 }))
            .displayUrl(displayUrl?.applyValue({ args0 -> args0 }))
            .pathMapping(
                pathMapping?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .url(url?.applyValue({ args0 -> args0 })).build()
}

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

    private var deploymentLogsUrl: Output? = null

    private var displayUrl: Output? = null

    private var pathMapping: Output>? = null

    private var url: Output? = null

    /**
     * @param value Branch name of repository.
     */
    @JvmName("mehpklewdpcdagor")
    public suspend fun branch(`value`: Output) {
        this.branch = value
    }

    /**
     * @param value Url to access repository action logs.
     */
    @JvmName("hyyetvdcnwflcphr")
    public suspend fun deploymentLogsUrl(`value`: Output) {
        this.deploymentLogsUrl = value
    }

    /**
     * @param value Display url of repository.
     */
    @JvmName("wuviqthjxcdxayai")
    public suspend fun displayUrl(`value`: Output) {
        this.displayUrl = value
    }

    /**
     * @param value Dictionary of source control content type and path mapping.
     */
    @JvmName("yijjalwrmcwtshpi")
    public suspend fun pathMapping(`value`: Output>) {
        this.pathMapping = value
    }

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

    /**
     * @param values Dictionary of source control content type and path mapping.
     */
    @JvmName("fdoxohnbwbvlquwo")
    public suspend fun pathMapping(values: List>) {
        this.pathMapping = Output.all(values)
    }

    /**
     * @param value Url of repository.
     */
    @JvmName("pgwrtusjhxwobptb")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value Branch name of repository.
     */
    @JvmName("gelclgndwjkncavh")
    public suspend fun branch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.branch = mapped
    }

    /**
     * @param value Url to access repository action logs.
     */
    @JvmName("lbdabyphlihjshrv")
    public suspend fun deploymentLogsUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deploymentLogsUrl = mapped
    }

    /**
     * @param value Display url of repository.
     */
    @JvmName("dgytirrdimbrwgdm")
    public suspend fun displayUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayUrl = mapped
    }

    /**
     * @param value Dictionary of source control content type and path mapping.
     */
    @JvmName("chyvgxbcaetsxmdv")
    public suspend fun pathMapping(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathMapping = mapped
    }

    /**
     * @param argument Dictionary of source control content type and path mapping.
     */
    @JvmName("yxnrwyouqxkyutbu")
    public suspend fun pathMapping(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ContentPathMapArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.pathMapping = mapped
    }

    /**
     * @param argument Dictionary of source control content type and path mapping.
     */
    @JvmName("bsiqmjbinosistkk")
    public suspend fun pathMapping(vararg argument: suspend ContentPathMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ContentPathMapArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.pathMapping = mapped
    }

    /**
     * @param argument Dictionary of source control content type and path mapping.
     */
    @JvmName("ccigrlbdmnntlxkm")
    public suspend fun pathMapping(argument: suspend ContentPathMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ContentPathMapArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.pathMapping = mapped
    }

    /**
     * @param values Dictionary of source control content type and path mapping.
     */
    @JvmName("sicqqprfkubfgxpt")
    public suspend fun pathMapping(vararg values: ContentPathMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pathMapping = mapped
    }

    /**
     * @param value Url of repository.
     */
    @JvmName("oqcqulykirqbncmm")
    public suspend fun url(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.url = mapped
    }

    internal fun build(): RepositoryArgs = RepositoryArgs(
        branch = branch,
        deploymentLogsUrl = deploymentLogsUrl,
        displayUrl = displayUrl,
        pathMapping = pathMapping,
        url = url,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy