All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.flowcontrol.v1alpha1.kotlin.inputs.SubjectPatchArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@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("dvjfykomacugbpsy")
    public suspend fun group(`value`: Output) {
        this.group = value
    }

    /**
     * @param value Required
     */
    @JvmName("qfdcwpouvxaoibum")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value
     */
    @JvmName("tmarectkuewjhxnv")
    public suspend fun serviceAccount(`value`: Output) {
        this.serviceAccount = value
    }

    /**
     * @param value
     */
    @JvmName("grgridemyuehnqgq")
    public suspend fun user(`value`: Output) {
        this.user = value
    }

    /**
     * @param value
     */
    @JvmName("lwijegrrdfyfngkg")
    public suspend fun group(`value`: GroupSubjectPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.group = mapped
    }

    /**
     * @param argument
     */
    @JvmName("equaarcspthyljag")
    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("pijcgryjnjlbvfbm")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value
     */
    @JvmName("wfqqlfbtnhnaenks")
    public suspend fun serviceAccount(`value`: ServiceAccountSubjectPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccount = mapped
    }

    /**
     * @param argument
     */
    @JvmName("qxmavraxjbdxkcwq")
    public suspend fun serviceAccount(argument: suspend ServiceAccountSubjectPatchArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAccountSubjectPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.serviceAccount = mapped
    }

    /**
     * @param value
     */
    @JvmName("rvkkbqkhnmqmdaqx")
    public suspend fun user(`value`: UserSubjectPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.user = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tbvngafuvmyabkne")
    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