
com.pulumi.azurenative.containerregistry.kotlin.inputs.TokenCertificateArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerregistry.kotlin.inputs
import com.pulumi.azurenative.containerregistry.inputs.TokenCertificateArgs.builder
import com.pulumi.azurenative.containerregistry.kotlin.enums.TokenCertificateName
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The properties of a certificate used for authenticating a token.
* @property encodedPemCertificate Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
* @property expiry The expiry datetime of the certificate.
* @property name
* @property thumbprint The thumbprint of the certificate.
*/
public data class TokenCertificateArgs(
public val encodedPemCertificate: Output? = null,
public val expiry: Output? = null,
public val name: Output>? = null,
public val thumbprint: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.TokenCertificateArgs =
com.pulumi.azurenative.containerregistry.inputs.TokenCertificateArgs.builder()
.encodedPemCertificate(encodedPemCertificate?.applyValue({ args0 -> args0 }))
.expiry(expiry?.applyValue({ args0 -> args0 }))
.name(
name?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.thumbprint(thumbprint?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TokenCertificateArgs].
*/
@PulumiTagMarker
public class TokenCertificateArgsBuilder internal constructor() {
private var encodedPemCertificate: Output? = null
private var expiry: Output? = null
private var name: Output>? = null
private var thumbprint: Output? = null
/**
* @param value Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
*/
@JvmName("ffdgsqwdcwwgdncw")
public suspend fun encodedPemCertificate(`value`: Output) {
this.encodedPemCertificate = value
}
/**
* @param value The expiry datetime of the certificate.
*/
@JvmName("dvlteeyokdqekkjd")
public suspend fun expiry(`value`: Output) {
this.expiry = value
}
/**
* @param value
*/
@JvmName("jryghcriixyeplot")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value The thumbprint of the certificate.
*/
@JvmName("wfmfxcvbstedhuxb")
public suspend fun thumbprint(`value`: Output) {
this.thumbprint = value
}
/**
* @param value Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
*/
@JvmName("mmwoaknolgwbnipy")
public suspend fun encodedPemCertificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encodedPemCertificate = mapped
}
/**
* @param value The expiry datetime of the certificate.
*/
@JvmName("ygtivouvnbhlftjh")
public suspend fun expiry(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expiry = mapped
}
/**
* @param value
*/
@JvmName("tlflnvduvyiajbqj")
public suspend fun name(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("klaorcqgcxwxlqri")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("qobciauotnnrbdyi")
public fun name(`value`: TokenCertificateName) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The thumbprint of the certificate.
*/
@JvmName("ilhyevwrhdsyppsb")
public suspend fun thumbprint(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.thumbprint = mapped
}
internal fun build(): TokenCertificateArgs = TokenCertificateArgs(
encodedPemCertificate = encodedPemCertificate,
expiry = expiry,
name = name,
thumbprint = thumbprint,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy