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

com.pulumi.azurenative.hybriddata.kotlin.inputs.CustomerSecretArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.hybriddata.kotlin.inputs

import com.pulumi.azurenative.hybriddata.inputs.CustomerSecretArgs.builder
import com.pulumi.azurenative.hybriddata.kotlin.enums.SupportedAlgorithm
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The pair of customer secret.
 * @property algorithm The encryption algorithm used to encrypt data.
 * @property keyIdentifier The identifier to the data service input object which this secret corresponds to.
 * @property keyValue It contains the encrypted customer secret.
 */
public data class CustomerSecretArgs(
    public val algorithm: Output,
    public val keyIdentifier: Output,
    public val keyValue: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hybriddata.inputs.CustomerSecretArgs =
        com.pulumi.azurenative.hybriddata.inputs.CustomerSecretArgs.builder()
            .algorithm(algorithm.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyIdentifier(keyIdentifier.applyValue({ args0 -> args0 }))
            .keyValue(keyValue.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CustomerSecretArgs].
 */
@PulumiTagMarker
public class CustomerSecretArgsBuilder internal constructor() {
    private var algorithm: Output? = null

    private var keyIdentifier: Output? = null

    private var keyValue: Output? = null

    /**
     * @param value The encryption algorithm used to encrypt data.
     */
    @JvmName("nknhxldfyoeulwrw")
    public suspend fun algorithm(`value`: Output) {
        this.algorithm = value
    }

    /**
     * @param value The identifier to the data service input object which this secret corresponds to.
     */
    @JvmName("dqtduwfdgaqqqvro")
    public suspend fun keyIdentifier(`value`: Output) {
        this.keyIdentifier = value
    }

    /**
     * @param value It contains the encrypted customer secret.
     */
    @JvmName("ukkdfqkeysqfagos")
    public suspend fun keyValue(`value`: Output) {
        this.keyValue = value
    }

    /**
     * @param value The encryption algorithm used to encrypt data.
     */
    @JvmName("ydpcrathruiulfxa")
    public suspend fun algorithm(`value`: SupportedAlgorithm) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.algorithm = mapped
    }

    /**
     * @param value The identifier to the data service input object which this secret corresponds to.
     */
    @JvmName("wfuavgqipiddyldp")
    public suspend fun keyIdentifier(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyIdentifier = mapped
    }

    /**
     * @param value It contains the encrypted customer secret.
     */
    @JvmName("cfoyfnoclatpqdmo")
    public suspend fun keyValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyValue = mapped
    }

    internal fun build(): CustomerSecretArgs = CustomerSecretArgs(
        algorithm = algorithm ?: throw PulumiNullFieldException("algorithm"),
        keyIdentifier = keyIdentifier ?: throw PulumiNullFieldException("keyIdentifier"),
        keyValue = keyValue ?: throw PulumiNullFieldException("keyValue"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy