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

com.pulumi.azurenative.synapse.kotlin.inputs.SecureStringArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.synapse.kotlin.inputs

import com.pulumi.azurenative.synapse.inputs.SecureStringArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Azure Synapse secure string definition. The string value will be masked with asterisks '*' during Get or List API calls.
 * @property type Type of the secret.
 * Expected value is 'SecureString'.
 * @property value Value of secure string.
 */
public data class SecureStringArgs(
    public val type: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.synapse.inputs.SecureStringArgs =
        com.pulumi.azurenative.synapse.inputs.SecureStringArgs.builder()
            .type(type.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecureStringArgs].
 */
@PulumiTagMarker
public class SecureStringArgsBuilder internal constructor() {
    private var type: Output? = null

    private var `value`: Output? = null

    /**
     * @param value Type of the secret.
     * Expected value is 'SecureString'.
     */
    @JvmName("hcwjcuweysdwqurf")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Value of secure string.
     */
    @JvmName("rmieniqxgmbhttnl")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Type of the secret.
     * Expected value is 'SecureString'.
     */
    @JvmName("hwxakuprhysohlrv")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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

    internal fun build(): SecureStringArgs = SecureStringArgs(
        type = type ?: throw PulumiNullFieldException("type"),
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy