com.pulumi.digitalocean.kotlin.inputs.GetCertificatePlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetCertificatePlainArgs.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
/**
* A collection of arguments for invoking getCertificate.
* @property name The name of certificate.
*/
public data class GetCertificatePlainArgs(
public val name: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetCertificatePlainArgs =
com.pulumi.digitalocean.inputs.GetCertificatePlainArgs.builder()
.name(name.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetCertificatePlainArgs].
*/
@PulumiTagMarker
public class GetCertificatePlainArgsBuilder internal constructor() {
private var name: String? = null
/**
* @param value The name of certificate.
*/
@JvmName("dqaryhrvekhohtqj")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetCertificatePlainArgs = GetCertificatePlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
)
}