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

com.pulumi.kubernetes.flowcontrol.v1.kotlin.inputs.ServiceAccountSubjectPatchArgs.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.v1.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.kubernetes.flowcontrol.v1.inputs.ServiceAccountSubjectPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * ServiceAccountSubject holds detailed information for service-account-kind subject.
 * @property name `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
 * @property namespace `namespace` is the namespace of matching ServiceAccount objects. Required.
 */
public data class ServiceAccountSubjectPatchArgs(
    public val name: Output? = null,
    public val namespace: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.flowcontrol.v1.inputs.ServiceAccountSubjectPatchArgs = com.pulumi.kubernetes.flowcontrol.v1.inputs.ServiceAccountSubjectPatchArgs.builder()
        .name(name?.applyValue({ args0 -> args0 }))
        .namespace(namespace?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceAccountSubjectPatchArgs].
 */
@PulumiTagMarker
public class ServiceAccountSubjectPatchArgsBuilder internal constructor() {
    private var name: Output? = null

    private var namespace: Output? = null

    /**
     * @param value `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
     */
    @JvmName("wpftvqgpwkfuibjm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value `namespace` is the namespace of matching ServiceAccount objects. Required.
     */
    @JvmName("qikggsfkvoysrcse")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
     */
    @JvmName("sqcwrbryftjapcsk")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value `namespace` is the namespace of matching ServiceAccount objects. Required.
     */
    @JvmName("rguxahchpjidfwee")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    internal fun build(): ServiceAccountSubjectPatchArgs = ServiceAccountSubjectPatchArgs(
        name = name,
        namespace = namespace,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy