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

com.pulumi.awsnative.amplify.kotlin.inputs.BranchBasicAuthConfigArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.amplify.kotlin.inputs

import com.pulumi.awsnative.amplify.inputs.BranchBasicAuthConfigArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enableBasicAuth Enables basic authorization for the branch.
 * @property password The password for basic authorization.
 * @property username
 */
public data class BranchBasicAuthConfigArgs(
    public val enableBasicAuth: Output? = null,
    public val password: Output,
    public val username: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplify.inputs.BranchBasicAuthConfigArgs =
        com.pulumi.awsnative.amplify.inputs.BranchBasicAuthConfigArgs.builder()
            .enableBasicAuth(enableBasicAuth?.applyValue({ args0 -> args0 }))
            .password(password.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BranchBasicAuthConfigArgs].
 */
@PulumiTagMarker
public class BranchBasicAuthConfigArgsBuilder internal constructor() {
    private var enableBasicAuth: Output? = null

    private var password: Output? = null

    private var username: Output? = null

    /**
     * @param value Enables basic authorization for the branch.
     */
    @JvmName("mdefsauckcisqpsy")
    public suspend fun enableBasicAuth(`value`: Output) {
        this.enableBasicAuth = value
    }

    /**
     * @param value The password for basic authorization.
     */
    @JvmName("qjubjigdntfafxgv")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value
     */
    @JvmName("nyoentxqdylqmeyu")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Enables basic authorization for the branch.
     */
    @JvmName("sfeyndgxixbhysik")
    public suspend fun enableBasicAuth(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableBasicAuth = mapped
    }

    /**
     * @param value The password for basic authorization.
     */
    @JvmName("rvbniwosfrlijhtw")
    public suspend fun password(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.password = mapped
    }

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

    internal fun build(): BranchBasicAuthConfigArgs = BranchBasicAuthConfigArgs(
        enableBasicAuth = enableBasicAuth,
        password = password ?: throw PulumiNullFieldException("password"),
        username = username ?: throw PulumiNullFieldException("username"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy