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

com.pulumi.azurenative.migrate.kotlin.inputs.CertArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.CertArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.SecretStoreType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * WebApplication certificate.
 * @property certData Gets or sets the Certificate data.
 * @property certNeeded Gets or sets a value indicating whether certificate is needed or not.
 * @property certProvided Gets or sets a value indicating whether certificate is provided or not.
 * @property secretStore Gets or sets the type of secret store for the certificate.
 */
public data class CertArgs(
    public val certData: Output? = null,
    public val certNeeded: Output? = null,
    public val certProvided: Output? = null,
    public val secretStore: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.CertArgs =
        com.pulumi.azurenative.migrate.inputs.CertArgs.builder()
            .certData(certData?.applyValue({ args0 -> args0 }))
            .certNeeded(certNeeded?.applyValue({ args0 -> args0 }))
            .certProvided(certProvided?.applyValue({ args0 -> args0 }))
            .secretStore(
                secretStore?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [CertArgs].
 */
@PulumiTagMarker
public class CertArgsBuilder internal constructor() {
    private var certData: Output? = null

    private var certNeeded: Output? = null

    private var certProvided: Output? = null

    private var secretStore: Output>? = null

    /**
     * @param value Gets or sets the Certificate data.
     */
    @JvmName("hdukxebfhulcyakc")
    public suspend fun certData(`value`: Output) {
        this.certData = value
    }

    /**
     * @param value Gets or sets a value indicating whether certificate is needed or not.
     */
    @JvmName("qisnkacpmcexsjtf")
    public suspend fun certNeeded(`value`: Output) {
        this.certNeeded = value
    }

    /**
     * @param value Gets or sets a value indicating whether certificate is provided or not.
     */
    @JvmName("gooygdatxwuombsy")
    public suspend fun certProvided(`value`: Output) {
        this.certProvided = value
    }

    /**
     * @param value Gets or sets the type of secret store for the certificate.
     */
    @JvmName("ervvisitdkiqqfbd")
    public suspend fun secretStore(`value`: Output>) {
        this.secretStore = value
    }

    /**
     * @param value Gets or sets the Certificate data.
     */
    @JvmName("nnarvorcfjnatxio")
    public suspend fun certData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certData = mapped
    }

    /**
     * @param value Gets or sets a value indicating whether certificate is needed or not.
     */
    @JvmName("lhetfbatwcetiunb")
    public suspend fun certNeeded(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certNeeded = mapped
    }

    /**
     * @param value Gets or sets a value indicating whether certificate is provided or not.
     */
    @JvmName("gbryrpmbbuqjghll")
    public suspend fun certProvided(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certProvided = mapped
    }

    /**
     * @param value Gets or sets the type of secret store for the certificate.
     */
    @JvmName("jeoctxiwdgakbsto")
    public suspend fun secretStore(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretStore = mapped
    }

    /**
     * @param value Gets or sets the type of secret store for the certificate.
     */
    @JvmName("lmtsbjuogrjjnoek")
    public fun secretStore(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretStore = mapped
    }

    /**
     * @param value Gets or sets the type of secret store for the certificate.
     */
    @JvmName("ycsfumrperimhrbg")
    public fun secretStore(`value`: SecretStoreType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretStore = mapped
    }

    internal fun build(): CertArgs = CertArgs(
        certData = certData,
        certNeeded = certNeeded,
        certProvided = certProvided,
        secretStore = secretStore,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy