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

com.pulumi.azurenative.securityinsights.kotlin.inputs.RepositoryResourceInfoArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.azurenative.securityinsights.inputs.RepositoryResourceInfoArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resources created in user's repository for the source-control.
 * @property azureDevOpsResourceInfo Resources created in Azure DevOps for this source-control.
 * @property gitHubResourceInfo Resources created in GitHub for this source-control.
 * @property webhook The webhook object created for the source-control.
 */
public data class RepositoryResourceInfoArgs(
    public val azureDevOpsResourceInfo: Output? = null,
    public val gitHubResourceInfo: Output? = null,
    public val webhook: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.RepositoryResourceInfoArgs =
        com.pulumi.azurenative.securityinsights.inputs.RepositoryResourceInfoArgs.builder()
            .azureDevOpsResourceInfo(
                azureDevOpsResourceInfo?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .gitHubResourceInfo(
                gitHubResourceInfo?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .webhook(webhook?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RepositoryResourceInfoArgs].
 */
@PulumiTagMarker
public class RepositoryResourceInfoArgsBuilder internal constructor() {
    private var azureDevOpsResourceInfo: Output? = null

    private var gitHubResourceInfo: Output? = null

    private var webhook: Output? = null

    /**
     * @param value Resources created in Azure DevOps for this source-control.
     */
    @JvmName("jjqsrlctefqvregu")
    public suspend fun azureDevOpsResourceInfo(`value`: Output) {
        this.azureDevOpsResourceInfo = value
    }

    /**
     * @param value Resources created in GitHub for this source-control.
     */
    @JvmName("rrnmtgyekfpcalmk")
    public suspend fun gitHubResourceInfo(`value`: Output) {
        this.gitHubResourceInfo = value
    }

    /**
     * @param value The webhook object created for the source-control.
     */
    @JvmName("xjnjodjxqapfbwib")
    public suspend fun webhook(`value`: Output) {
        this.webhook = value
    }

    /**
     * @param value Resources created in Azure DevOps for this source-control.
     */
    @JvmName("uvilriwasjnfihjn")
    public suspend fun azureDevOpsResourceInfo(`value`: AzureDevOpsResourceInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureDevOpsResourceInfo = mapped
    }

    /**
     * @param argument Resources created in Azure DevOps for this source-control.
     */
    @JvmName("lvtirqkvaumsjkqg")
    public suspend fun azureDevOpsResourceInfo(argument: suspend AzureDevOpsResourceInfoArgsBuilder.() -> Unit) {
        val toBeMapped = AzureDevOpsResourceInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.azureDevOpsResourceInfo = mapped
    }

    /**
     * @param value Resources created in GitHub for this source-control.
     */
    @JvmName("legkmmihrnnkyxmj")
    public suspend fun gitHubResourceInfo(`value`: GitHubResourceInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gitHubResourceInfo = mapped
    }

    /**
     * @param argument Resources created in GitHub for this source-control.
     */
    @JvmName("hxhyqjiuypjccmdh")
    public suspend fun gitHubResourceInfo(argument: suspend GitHubResourceInfoArgsBuilder.() -> Unit) {
        val toBeMapped = GitHubResourceInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.gitHubResourceInfo = mapped
    }

    /**
     * @param value The webhook object created for the source-control.
     */
    @JvmName("uucbketdhmvllkim")
    public suspend fun webhook(`value`: WebhookArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhook = mapped
    }

    /**
     * @param argument The webhook object created for the source-control.
     */
    @JvmName("gutdskopgxhqknnj")
    public suspend fun webhook(argument: suspend WebhookArgsBuilder.() -> Unit) {
        val toBeMapped = WebhookArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.webhook = mapped
    }

    internal fun build(): RepositoryResourceInfoArgs = RepositoryResourceInfoArgs(
        azureDevOpsResourceInfo = azureDevOpsResourceInfo,
        gitHubResourceInfo = gitHubResourceInfo,
        webhook = webhook,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy