com.pulumi.kubernetes.flowcontrol.v1alpha1.kotlin.inputs.SubjectPatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.flowcontrol.v1alpha1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.SubjectPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
* @property group
* @property kind Required
* @property serviceAccount
* @property user
*/
public data class SubjectPatchArgs(
public val group: Output? = null,
public val kind: Output? = null,
public val serviceAccount: Output? = null,
public val user: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.SubjectPatchArgs =
com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.SubjectPatchArgs.builder()
.group(group?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.kind(kind?.applyValue({ args0 -> args0 }))
.serviceAccount(serviceAccount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.user(user?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [SubjectPatchArgs].
*/
@PulumiTagMarker
public class SubjectPatchArgsBuilder internal constructor() {
private var group: Output? = null
private var kind: Output? = null
private var serviceAccount: Output? = null
private var user: Output? = null
/**
* @param value
*/
@JvmName("tipujemftaceqtil")
public suspend fun group(`value`: Output) {
this.group = value
}
/**
* @param value Required
*/
@JvmName("lfhkwlkmblvoityu")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value
*/
@JvmName("etcothlqykolampi")
public suspend fun serviceAccount(`value`: Output) {
this.serviceAccount = value
}
/**
* @param value
*/
@JvmName("nisebihnlxrnfwiu")
public suspend fun user(`value`: Output) {
this.user = value
}
/**
* @param value
*/
@JvmName("ilmaheqppikhmvfr")
public suspend fun group(`value`: GroupSubjectPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.group = mapped
}
/**
* @param argument
*/
@JvmName("fswcbphrjlrkqkfx")
public suspend fun group(argument: suspend GroupSubjectPatchArgsBuilder.() -> Unit) {
val toBeMapped = GroupSubjectPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.group = mapped
}
/**
* @param value Required
*/
@JvmName("gxgxdolilgidljbr")
public suspend fun kind(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value
*/
@JvmName("naeppdmbimxldesy")
public suspend fun serviceAccount(`value`: ServiceAccountSubjectPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceAccount = mapped
}
/**
* @param argument
*/
@JvmName("lnchhsejfsavdtgy")
public suspend fun serviceAccount(argument: suspend ServiceAccountSubjectPatchArgsBuilder.() -> Unit) {
val toBeMapped = ServiceAccountSubjectPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.serviceAccount = mapped
}
/**
* @param value
*/
@JvmName("wnpobcsglucugogn")
public suspend fun user(`value`: UserSubjectPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.user = mapped
}
/**
* @param argument
*/
@JvmName("beysmtjpsyjiagnd")
public suspend fun user(argument: suspend UserSubjectPatchArgsBuilder.() -> Unit) {
val toBeMapped = UserSubjectPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.user = mapped
}
internal fun build(): SubjectPatchArgs = SubjectPatchArgs(
group = group,
kind = kind,
serviceAccount = serviceAccount,
user = user,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy