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

com.pulumi.gitlab.kotlin.inputs.GetGroupServiceAccountPlainArgs.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.

There is a newer version: 8.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin.inputs

import com.pulumi.gitlab.inputs.GetGroupServiceAccountPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getGroupServiceAccount.
 * @property group The ID or URL-encoded path of the target group. Must be a top-level group.
 * @property name The name of the user. If not specified, the default Service account user name is used.
 * @property serviceAccountId The service account id.
 * @property username The username of the user. If not specified, it's automatically generated.
 */
public data class GetGroupServiceAccountPlainArgs(
    public val group: String,
    public val name: String? = null,
    public val serviceAccountId: String,
    public val username: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.inputs.GetGroupServiceAccountPlainArgs =
        com.pulumi.gitlab.inputs.GetGroupServiceAccountPlainArgs.builder()
            .group(group.let({ args0 -> args0 }))
            .name(name?.let({ args0 -> args0 }))
            .serviceAccountId(serviceAccountId.let({ args0 -> args0 }))
            .username(username?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetGroupServiceAccountPlainArgs].
 */
@PulumiTagMarker
public class GetGroupServiceAccountPlainArgsBuilder internal constructor() {
    private var group: String? = null

    private var name: String? = null

    private var serviceAccountId: String? = null

    private var username: String? = null

    /**
     * @param value The ID or URL-encoded path of the target group. Must be a top-level group.
     */
    @JvmName("xhhuwsiurodfcxrg")
    public suspend fun group(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.group = mapped
    }

    /**
     * @param value The name of the user. If not specified, the default Service account user name is used.
     */
    @JvmName("kbuewggxyxbktlds")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value The service account id.
     */
    @JvmName("icagfnqvaqoaghln")
    public suspend fun serviceAccountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.serviceAccountId = mapped
    }

    /**
     * @param value The username of the user. If not specified, it's automatically generated.
     */
    @JvmName("xgvkeuadmqttfyne")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.username = mapped
    }

    internal fun build(): GetGroupServiceAccountPlainArgs = GetGroupServiceAccountPlainArgs(
        group = group ?: throw PulumiNullFieldException("group"),
        name = name,
        serviceAccountId = serviceAccountId ?: throw PulumiNullFieldException("serviceAccountId"),
        username = username,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy