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

com.pulumi.gcp.cloudbuild.kotlin.inputs.BitbucketServerConfigSecretsArgs.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.cloudbuild.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.BitbucketServerConfigSecretsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property adminAccessTokenVersionName The resource name for the admin access token's secret version.
 * @property readAccessTokenVersionName The resource name for the read access token's secret version.
 * @property webhookSecretVersionName Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed.
 * Changing this field will result in deleting/ recreating the resource.
 * - - -
 */
public data class BitbucketServerConfigSecretsArgs(
    public val adminAccessTokenVersionName: Output,
    public val readAccessTokenVersionName: Output,
    public val webhookSecretVersionName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.BitbucketServerConfigSecretsArgs =
        com.pulumi.gcp.cloudbuild.inputs.BitbucketServerConfigSecretsArgs.builder()
            .adminAccessTokenVersionName(adminAccessTokenVersionName.applyValue({ args0 -> args0 }))
            .readAccessTokenVersionName(readAccessTokenVersionName.applyValue({ args0 -> args0 }))
            .webhookSecretVersionName(webhookSecretVersionName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BitbucketServerConfigSecretsArgs].
 */
@PulumiTagMarker
public class BitbucketServerConfigSecretsArgsBuilder internal constructor() {
    private var adminAccessTokenVersionName: Output? = null

    private var readAccessTokenVersionName: Output? = null

    private var webhookSecretVersionName: Output? = null

    /**
     * @param value The resource name for the admin access token's secret version.
     */
    @JvmName("jpcmdwbvcndwopeh")
    public suspend fun adminAccessTokenVersionName(`value`: Output) {
        this.adminAccessTokenVersionName = value
    }

    /**
     * @param value The resource name for the read access token's secret version.
     */
    @JvmName("hekopnbrbhmqdmko")
    public suspend fun readAccessTokenVersionName(`value`: Output) {
        this.readAccessTokenVersionName = value
    }

    /**
     * @param value Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed.
     * Changing this field will result in deleting/ recreating the resource.
     * - - -
     */
    @JvmName("cfmllpmjsihhwsaq")
    public suspend fun webhookSecretVersionName(`value`: Output) {
        this.webhookSecretVersionName = value
    }

    /**
     * @param value The resource name for the admin access token's secret version.
     */
    @JvmName("xitxbjrnvqgayvsy")
    public suspend fun adminAccessTokenVersionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminAccessTokenVersionName = mapped
    }

    /**
     * @param value The resource name for the read access token's secret version.
     */
    @JvmName("aodesxeoqqlmimpy")
    public suspend fun readAccessTokenVersionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.readAccessTokenVersionName = mapped
    }

    /**
     * @param value Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed.
     * Changing this field will result in deleting/ recreating the resource.
     * - - -
     */
    @JvmName("bhuqemvebplawhpt")
    public suspend fun webhookSecretVersionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.webhookSecretVersionName = mapped
    }

    internal fun build(): BitbucketServerConfigSecretsArgs = BitbucketServerConfigSecretsArgs(
        adminAccessTokenVersionName = adminAccessTokenVersionName ?: throw
            PulumiNullFieldException("adminAccessTokenVersionName"),
        readAccessTokenVersionName = readAccessTokenVersionName ?: throw
            PulumiNullFieldException("readAccessTokenVersionName"),
        webhookSecretVersionName = webhookSecretVersionName ?: throw
            PulumiNullFieldException("webhookSecretVersionName"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy