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

com.pulumi.gcp.organizations.kotlin.inputs.GetBillingAccountPlainArgs.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.organizations.kotlin.inputs

import com.pulumi.gcp.organizations.inputs.GetBillingAccountPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getBillingAccount.
 * @property billingAccount The name of the billing account in the form `{billing_account_id}` or `billingAccounts/{billing_account_id}`.
 * @property displayName The display name of the billing account.
 * @property lookupProjects `true` if projects associated with the billing account should be read, `false` if this step
 * should be skipped. Setting `false` may be useful if the user permissions do not allow listing projects. Defaults to `true`.
 * > **NOTE:** One of `billing_account` or `display_name` must be specified.
 * @property open `true` if the billing account is open, `false` if the billing account is closed.
 */
public data class GetBillingAccountPlainArgs(
    public val billingAccount: String? = null,
    public val displayName: String? = null,
    public val lookupProjects: Boolean? = null,
    public val `open`: Boolean? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.organizations.inputs.GetBillingAccountPlainArgs =
        com.pulumi.gcp.organizations.inputs.GetBillingAccountPlainArgs.builder()
            .billingAccount(billingAccount?.let({ args0 -> args0 }))
            .displayName(displayName?.let({ args0 -> args0 }))
            .lookupProjects(lookupProjects?.let({ args0 -> args0 }))
            .`open`(`open`?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetBillingAccountPlainArgs].
 */
@PulumiTagMarker
public class GetBillingAccountPlainArgsBuilder internal constructor() {
    private var billingAccount: String? = null

    private var displayName: String? = null

    private var lookupProjects: Boolean? = null

    private var `open`: Boolean? = null

    /**
     * @param value The name of the billing account in the form `{billing_account_id}` or `billingAccounts/{billing_account_id}`.
     */
    @JvmName("qwtjrkwusmucgwha")
    public suspend fun billingAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.billingAccount = mapped
    }

    /**
     * @param value The display name of the billing account.
     */
    @JvmName("hdifqqkeyklamyfc")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.displayName = mapped
    }

    /**
     * @param value `true` if projects associated with the billing account should be read, `false` if this step
     * should be skipped. Setting `false` may be useful if the user permissions do not allow listing projects. Defaults to `true`.
     * > **NOTE:** One of `billing_account` or `display_name` must be specified.
     */
    @JvmName("xfyfhqdbjbfmhquj")
    public suspend fun lookupProjects(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.lookupProjects = mapped
    }

    /**
     * @param value `true` if the billing account is open, `false` if the billing account is closed.
     */
    @JvmName("arvlvcnumxgwcjrf")
    public suspend fun `open`(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.`open` = mapped
    }

    internal fun build(): GetBillingAccountPlainArgs = GetBillingAccountPlainArgs(
        billingAccount = billingAccount,
        displayName = displayName,
        lookupProjects = lookupProjects,
        `open` = `open`,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy