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

com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.inputs.ServiceAccountSubjectArgs.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.v1beta3.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.ServiceAccountSubjectArgs.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 ServiceAccountSubjectArgs(
    public val name: Output,
    public val namespace: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.ServiceAccountSubjectArgs = com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.ServiceAccountSubjectArgs.builder()
        .name(name.applyValue({ args0 -> args0 }))
        .namespace(namespace.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceAccountSubjectArgs].
 */
@PulumiTagMarker
public class ServiceAccountSubjectArgsBuilder 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("fotsfhnuetmbghqf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value `namespace` is the namespace of matching ServiceAccount objects. Required.
     */
    @JvmName("gsalkbqdwgardyhx")
    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("nhmawbgrrsfenwfi")
    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("wepidedvlnbebmwk")
    public suspend fun namespace(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    internal fun build(): ServiceAccountSubjectArgs = ServiceAccountSubjectArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        namespace = namespace ?: throw PulumiNullFieldException("namespace"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy