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

com.pulumi.googlenative.cloudkms.v1.kotlin.inputs.GetCryptoKeyVersionPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.cloudkms.v1.kotlin.inputs

import com.pulumi.googlenative.cloudkms.v1.inputs.GetCryptoKeyVersionPlainArgs.builder
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

/**
 *
 * @property cryptoKeyId
 * @property cryptoKeyVersionId
 * @property keyRingId
 * @property location
 * @property project
 */
public data class GetCryptoKeyVersionPlainArgs(
    public val cryptoKeyId: String,
    public val cryptoKeyVersionId: String,
    public val keyRingId: String,
    public val location: String,
    public val project: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.cloudkms.v1.inputs.GetCryptoKeyVersionPlainArgs =
        com.pulumi.googlenative.cloudkms.v1.inputs.GetCryptoKeyVersionPlainArgs.builder()
            .cryptoKeyId(cryptoKeyId.let({ args0 -> args0 }))
            .cryptoKeyVersionId(cryptoKeyVersionId.let({ args0 -> args0 }))
            .keyRingId(keyRingId.let({ args0 -> args0 }))
            .location(location.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetCryptoKeyVersionPlainArgs].
 */
@PulumiTagMarker
public class GetCryptoKeyVersionPlainArgsBuilder internal constructor() {
    private var cryptoKeyId: String? = null

    private var cryptoKeyVersionId: String? = null

    private var keyRingId: String? = null

    private var location: String? = null

    private var project: String? = null

    /**
     * @param value
     */
    @JvmName("pwnwnfmjaqjugcdq")
    public suspend fun cryptoKeyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.cryptoKeyId = mapped
    }

    /**
     * @param value
     */
    @JvmName("exsmqlqbijixldgo")
    public suspend fun cryptoKeyVersionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.cryptoKeyVersionId = mapped
    }

    /**
     * @param value
     */
    @JvmName("yfoeuwrucqxuibvr")
    public suspend fun keyRingId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.keyRingId = mapped
    }

    /**
     * @param value
     */
    @JvmName("nhficdaqmacfhfrt")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.location = mapped
    }

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

    internal fun build(): GetCryptoKeyVersionPlainArgs = GetCryptoKeyVersionPlainArgs(
        cryptoKeyId = cryptoKeyId ?: throw PulumiNullFieldException("cryptoKeyId"),
        cryptoKeyVersionId = cryptoKeyVersionId ?: throw PulumiNullFieldException("cryptoKeyVersionId"),
        keyRingId = keyRingId ?: throw PulumiNullFieldException("keyRingId"),
        location = location ?: throw PulumiNullFieldException("location"),
        project = project,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy