com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateConfigSubjectConfigArgs.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.CertificateConfigSubjectConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property subject Contains distinguished name fields such as the location and organization.
* Structure is documented below.
* @property subjectAltName The subject alternative name fields.
* Structure is documented below.
*/
public data class CertificateConfigSubjectConfigArgs(
public val subject: Output,
public val subjectAltName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateConfigSubjectConfigArgs =
com.pulumi.gcp.certificateauthority.inputs.CertificateConfigSubjectConfigArgs.builder()
.subject(subject.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.subjectAltName(
subjectAltName?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [CertificateConfigSubjectConfigArgs].
*/
@PulumiTagMarker
public class CertificateConfigSubjectConfigArgsBuilder internal constructor() {
private var subject: Output? = null
private var subjectAltName: Output? = null
/**
* @param value Contains distinguished name fields such as the location and organization.
* Structure is documented below.
*/
@JvmName("qiscaitndftdftcs")
public suspend fun subject(`value`: Output) {
this.subject = value
}
/**
* @param value The subject alternative name fields.
* Structure is documented below.
*/
@JvmName("vdvauoijmemdlckl")
public suspend fun subjectAltName(`value`: Output) {
this.subjectAltName = value
}
/**
* @param value Contains distinguished name fields such as the location and organization.
* Structure is documented below.
*/
@JvmName("bbtoqfkhvjximrym")
public suspend fun subject(`value`: CertificateConfigSubjectConfigSubjectArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.subject = mapped
}
/**
* @param argument Contains distinguished name fields such as the location and organization.
* Structure is documented below.
*/
@JvmName("onofqnaxgoccwomw")
public suspend fun subject(argument: suspend CertificateConfigSubjectConfigSubjectArgsBuilder.() -> Unit) {
val toBeMapped = CertificateConfigSubjectConfigSubjectArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.subject = mapped
}
/**
* @param value The subject alternative name fields.
* Structure is documented below.
*/
@JvmName("mdqxdffsnirpaniq")
public suspend fun subjectAltName(`value`: CertificateConfigSubjectConfigSubjectAltNameArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subjectAltName = mapped
}
/**
* @param argument The subject alternative name fields.
* Structure is documented below.
*/
@JvmName("yqyvtwvtwleafies")
public suspend fun subjectAltName(argument: suspend CertificateConfigSubjectConfigSubjectAltNameArgsBuilder.() -> Unit) {
val toBeMapped = CertificateConfigSubjectConfigSubjectAltNameArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.subjectAltName = mapped
}
internal fun build(): CertificateConfigSubjectConfigArgs = CertificateConfigSubjectConfigArgs(
subject = subject ?: throw PulumiNullFieldException("subject"),
subjectAltName = subjectAltName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy