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

com.pulumi.vault.transform.kotlin.inputs.GetEncodePlainArgs.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: 6.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.transform.kotlin.inputs

import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.transform.inputs.GetEncodePlainArgs.builder
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getEncode.
 * @property batchInputs Specifies a list of items to be encoded in a single batch. If this parameter is set, the parameters 'value', 'transformation' and 'tweak' will be ignored. Each batch item within the list can specify these parameters instead.
 * @property batchResults The result of encoding a batch.
 * @property encodedValue The result of encoding a value.
 * @property namespace The namespace of the target resource.
 * The value should not contain leading or trailing forward slashes.
 * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
 * *Available only for Vault Enterprise*.
 * @property path Path to where the back-end is mounted within Vault.
 * @property roleName The name of the role.
 * @property transformation The transformation to perform. If no value is provided and the role contains a single transformation, this value will be inferred from the role.
 * @property tweak The tweak value to use. Only applicable for FPE transformations
 * @property value The value in which to encode.
 */
public data class GetEncodePlainArgs(
    public val batchInputs: List>? = null,
    public val batchResults: List>? = null,
    public val encodedValue: String? = null,
    public val namespace: String? = null,
    public val path: String,
    public val roleName: String,
    public val transformation: String? = null,
    public val tweak: String? = null,
    public val `value`: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.transform.inputs.GetEncodePlainArgs =
        com.pulumi.vault.transform.inputs.GetEncodePlainArgs.builder()
            .batchInputs(
                batchInputs?.let({ args0 ->
                    args0.map({ args0 ->
                        args0.map({ args0 ->
                            args0.key.to(args0.value)
                        }).toMap()
                    })
                }),
            )
            .batchResults(
                batchResults?.let({ args0 ->
                    args0.map({ args0 ->
                        args0.map({ args0 ->
                            args0.key.to(args0.value)
                        }).toMap()
                    })
                }),
            )
            .encodedValue(encodedValue?.let({ args0 -> args0 }))
            .namespace(namespace?.let({ args0 -> args0 }))
            .path(path.let({ args0 -> args0 }))
            .roleName(roleName.let({ args0 -> args0 }))
            .transformation(transformation?.let({ args0 -> args0 }))
            .tweak(tweak?.let({ args0 -> args0 }))
            .`value`(`value`?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetEncodePlainArgs].
 */
@PulumiTagMarker
public class GetEncodePlainArgsBuilder internal constructor() {
    private var batchInputs: List>? = null

    private var batchResults: List>? = null

    private var encodedValue: String? = null

    private var namespace: String? = null

    private var path: String? = null

    private var roleName: String? = null

    private var transformation: String? = null

    private var tweak: String? = null

    private var `value`: String? = null

    /**
     * @param value Specifies a list of items to be encoded in a single batch. If this parameter is set, the parameters 'value', 'transformation' and 'tweak' will be ignored. Each batch item within the list can specify these parameters instead.
     */
    @JvmName("egtamoudrrcmktce")
    public suspend fun batchInputs(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.batchInputs = mapped
    }

    /**
     * @param values Specifies a list of items to be encoded in a single batch. If this parameter is set, the parameters 'value', 'transformation' and 'tweak' will be ignored. Each batch item within the list can specify these parameters instead.
     */
    @JvmName("xtjwdtrqjerljkpd")
    public suspend fun batchInputs(vararg values: Map) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.batchInputs = mapped
    }

    /**
     * @param value The result of encoding a batch.
     */
    @JvmName("gsdqnnrcaetsdwqi")
    public suspend fun batchResults(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.batchResults = mapped
    }

    /**
     * @param values The result of encoding a batch.
     */
    @JvmName("egsundufqmtuokbv")
    public suspend fun batchResults(vararg values: Map) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.batchResults = mapped
    }

    /**
     * @param value The result of encoding a value.
     */
    @JvmName("fverdnoidyhxrdhw")
    public suspend fun encodedValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.encodedValue = mapped
    }

    /**
     * @param value The namespace of the target resource.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     */
    @JvmName("wmrshpbvxeecvkly")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.namespace = mapped
    }

    /**
     * @param value Path to where the back-end is mounted within Vault.
     */
    @JvmName("hcyuwcodtjqdffpo")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.path = mapped
    }

    /**
     * @param value The name of the role.
     */
    @JvmName("abswrneqnquxqrau")
    public suspend fun roleName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.roleName = mapped
    }

    /**
     * @param value The transformation to perform. If no value is provided and the role contains a single transformation, this value will be inferred from the role.
     */
    @JvmName("hujbxkbtwypiksar")
    public suspend fun transformation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.transformation = mapped
    }

    /**
     * @param value The tweak value to use. Only applicable for FPE transformations
     */
    @JvmName("shgbkwedwpqcxjwl")
    public suspend fun tweak(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tweak = mapped
    }

    /**
     * @param value The value in which to encode.
     */
    @JvmName("sjfwmlvoosglcbim")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.`value` = mapped
    }

    internal fun build(): GetEncodePlainArgs = GetEncodePlainArgs(
        batchInputs = batchInputs,
        batchResults = batchResults,
        encodedValue = encodedValue,
        namespace = namespace,
        path = path ?: throw PulumiNullFieldException("path"),
        roleName = roleName ?: throw PulumiNullFieldException("roleName"),
        transformation = transformation,
        tweak = tweak,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy