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

com.pulumi.aws.qldb.kotlin.inputs.GetLedgerPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.qldb.kotlin.inputs

import com.pulumi.aws.qldb.inputs.GetLedgerPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getLedger.
 * @property name Friendly name of the ledger to match.
 * @property tags
 */
public data class GetLedgerPlainArgs(
    public val name: String,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.qldb.inputs.GetLedgerPlainArgs =
        com.pulumi.aws.qldb.inputs.GetLedgerPlainArgs.builder()
            .name(name.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

/**
 * Builder for [GetLedgerPlainArgs].
 */
@PulumiTagMarker
public class GetLedgerPlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var tags: Map? = null

    /**
     * @param value Friendly name of the ledger to match.
     */
    @JvmName("wotfwvmbtoaqpiwx")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("qsvlvfogtruktfda")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values
     */
    @JvmName("ndmmbfqyxswhhvox")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    internal fun build(): GetLedgerPlainArgs = GetLedgerPlainArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy