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

com.pulumi.gcp.diagflow.kotlin.inputs.CxAgentGitIntegrationSettingsGithubSettingsArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.diagflow.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.diagflow.inputs.CxAgentGitIntegrationSettingsGithubSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property accessToken The access token used to authenticate the access to the GitHub repository.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property branches A list of branches configured to be used from Dialogflow.
 * @property displayName The unique repository display name for the GitHub repository.
 * @property repositoryUri The GitHub repository URI related to the agent.
 * @property trackingBranch The branch of the GitHub repository tracked for this agent.
 */
public data class CxAgentGitIntegrationSettingsGithubSettingsArgs(
    public val accessToken: Output? = null,
    public val branches: Output>? = null,
    public val displayName: Output? = null,
    public val repositoryUri: Output? = null,
    public val trackingBranch: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxAgentGitIntegrationSettingsGithubSettingsArgs =
        com.pulumi.gcp.diagflow.inputs.CxAgentGitIntegrationSettingsGithubSettingsArgs.builder()
            .accessToken(accessToken?.applyValue({ args0 -> args0 }))
            .branches(branches?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .repositoryUri(repositoryUri?.applyValue({ args0 -> args0 }))
            .trackingBranch(trackingBranch?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CxAgentGitIntegrationSettingsGithubSettingsArgs].
 */
@PulumiTagMarker
public class CxAgentGitIntegrationSettingsGithubSettingsArgsBuilder internal constructor() {
    private var accessToken: Output? = null

    private var branches: Output>? = null

    private var displayName: Output? = null

    private var repositoryUri: Output? = null

    private var trackingBranch: Output? = null

    /**
     * @param value The access token used to authenticate the access to the GitHub repository.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("gcyfarigfvsivexu")
    public suspend fun accessToken(`value`: Output) {
        this.accessToken = value
    }

    /**
     * @param value A list of branches configured to be used from Dialogflow.
     */
    @JvmName("teloivauqqnrawhn")
    public suspend fun branches(`value`: Output>) {
        this.branches = value
    }

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

    /**
     * @param values A list of branches configured to be used from Dialogflow.
     */
    @JvmName("vymwgtloaegipiwk")
    public suspend fun branches(values: List>) {
        this.branches = Output.all(values)
    }

    /**
     * @param value The unique repository display name for the GitHub repository.
     */
    @JvmName("bekyasysccmkeycb")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The GitHub repository URI related to the agent.
     */
    @JvmName("hlrsclojcuctefvl")
    public suspend fun repositoryUri(`value`: Output) {
        this.repositoryUri = value
    }

    /**
     * @param value The branch of the GitHub repository tracked for this agent.
     */
    @JvmName("jrswuslcblvlfhce")
    public suspend fun trackingBranch(`value`: Output) {
        this.trackingBranch = value
    }

    /**
     * @param value The access token used to authenticate the access to the GitHub repository.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("xgrlsjxygyxfeekq")
    public suspend fun accessToken(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessToken = mapped
    }

    /**
     * @param value A list of branches configured to be used from Dialogflow.
     */
    @JvmName("oolypdfqyencgyax")
    public suspend fun branches(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.branches = mapped
    }

    /**
     * @param values A list of branches configured to be used from Dialogflow.
     */
    @JvmName("cigbraotexlpegje")
    public suspend fun branches(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.branches = mapped
    }

    /**
     * @param value The unique repository display name for the GitHub repository.
     */
    @JvmName("eifaygjdqdrxcksc")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The GitHub repository URI related to the agent.
     */
    @JvmName("anetjmerpbjhenie")
    public suspend fun repositoryUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repositoryUri = mapped
    }

    /**
     * @param value The branch of the GitHub repository tracked for this agent.
     */
    @JvmName("pvginbqyxvgjdyjq")
    public suspend fun trackingBranch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trackingBranch = mapped
    }

    internal fun build(): CxAgentGitIntegrationSettingsGithubSettingsArgs =
        CxAgentGitIntegrationSettingsGithubSettingsArgs(
            accessToken = accessToken,
            branches = branches,
            displayName = displayName,
            repositoryUri = repositoryUri,
            trackingBranch = trackingBranch,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy