com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateConfigX509ConfigAdditionalExtensionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.certificateauthority.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.certificateauthority.inputs.CertificateConfigX509ConfigAdditionalExtensionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property critical Indicates whether or not this extension is critical (i.e., if the client does not know how to
* handle this extension, the client should consider this to be an error).
* @property objectId Describes values that are relevant in a CA certificate.
* Structure is documented below.
* @property value The value of this X.509 extension. A base64-encoded string.
*/
public data class CertificateConfigX509ConfigAdditionalExtensionArgs(
public val critical: Output,
public val objectId: Output,
public val `value`: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateConfigX509ConfigAdditionalExtensionArgs =
com.pulumi.gcp.certificateauthority.inputs.CertificateConfigX509ConfigAdditionalExtensionArgs.builder()
.critical(critical.applyValue({ args0 -> args0 }))
.objectId(objectId.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CertificateConfigX509ConfigAdditionalExtensionArgs].
*/
@PulumiTagMarker
public class CertificateConfigX509ConfigAdditionalExtensionArgsBuilder internal constructor() {
private var critical: Output? = null
private var objectId: Output? = null
private var `value`: Output? = null
/**
* @param value Indicates whether or not this extension is critical (i.e., if the client does not know how to
* handle this extension, the client should consider this to be an error).
*/
@JvmName("glhcdveyxryxuuwk")
public suspend fun critical(`value`: Output) {
this.critical = value
}
/**
* @param value Describes values that are relevant in a CA certificate.
* Structure is documented below.
*/
@JvmName("xgjnfcffsfgofcln")
public suspend fun objectId(`value`: Output) {
this.objectId = value
}
/**
* @param value The value of this X.509 extension. A base64-encoded string.
*/
@JvmName("lqjigrkenjfqwsnv")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Indicates whether or not this extension is critical (i.e., if the client does not know how to
* handle this extension, the client should consider this to be an error).
*/
@JvmName("njfebvkxspgyvdhl")
public suspend fun critical(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.critical = mapped
}
/**
* @param value Describes values that are relevant in a CA certificate.
* Structure is documented below.
*/
@JvmName("mksbsvduphpprpyf")
public suspend fun objectId(`value`: CertificateConfigX509ConfigAdditionalExtensionObjectIdArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.objectId = mapped
}
/**
* @param argument Describes values that are relevant in a CA certificate.
* Structure is documented below.
*/
@JvmName("exfdbofeiemrjgwh")
public suspend fun objectId(argument: suspend CertificateConfigX509ConfigAdditionalExtensionObjectIdArgsBuilder.() -> Unit) {
val toBeMapped =
CertificateConfigX509ConfigAdditionalExtensionObjectIdArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.objectId = mapped
}
/**
* @param value The value of this X.509 extension. A base64-encoded string.
*/
@JvmName("qholxsbutskfehap")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): CertificateConfigX509ConfigAdditionalExtensionArgs =
CertificateConfigX509ConfigAdditionalExtensionArgs(
critical = critical ?: throw PulumiNullFieldException("critical"),
objectId = objectId ?: throw PulumiNullFieldException("objectId"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy