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

com.pulumi.gcp.serviceaccount.kotlin.inputs.GetAccountPlainArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.serviceaccount.kotlin.inputs

import com.pulumi.gcp.serviceaccount.inputs.GetAccountPlainArgs.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 getAccount.
 * @property accountId The Google service account ID. This be one of:
 * * The name of the service account within the project (e.g. `my-service`)
 * * The fully-qualified path to a service account resource (e.g.
 * `projects/my-project/serviceAccounts/...`)
 * * The email address of the service account (e.g.
 * `[email protected]`)
 * @property project The ID of the project that the service account is present in.
 * Defaults to the provider project configuration.
 */
public data class GetAccountPlainArgs(
    public val accountId: String,
    public val project: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.serviceaccount.inputs.GetAccountPlainArgs =
        com.pulumi.gcp.serviceaccount.inputs.GetAccountPlainArgs.builder()
            .accountId(accountId.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetAccountPlainArgs].
 */
@PulumiTagMarker
public class GetAccountPlainArgsBuilder internal constructor() {
    private var accountId: String? = null

    private var project: String? = null

    /**
     * @param value The Google service account ID. This be one of:
     * * The name of the service account within the project (e.g. `my-service`)
     * * The fully-qualified path to a service account resource (e.g.
     * `projects/my-project/serviceAccounts/...`)
     * * The email address of the service account (e.g.
     * `[email protected]`)
     */
    @JvmName("natoltpgmafdhdfo")
    public suspend fun accountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.accountId = mapped
    }

    /**
     * @param value The ID of the project that the service account is present in.
     * Defaults to the provider project configuration.
     */
    @JvmName("doombntmjvfvpywt")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    internal fun build(): GetAccountPlainArgs = GetAccountPlainArgs(
        accountId = accountId ?: throw PulumiNullFieldException("accountId"),
        project = project,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy