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

com.pulumi.azurenative.billing.kotlin.inputs.BillingProfilePropertiesArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.billing.kotlin.inputs

import com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A billing profile.
 * @property billTo Billing address.
 * @property currentPaymentTerm The current payment term of the billing profile.
 * @property displayName The name of the billing profile.
 * @property enabledAzurePlans Information about the enabled azure plans.
 * @property indirectRelationshipInfo Identifies the billing profile that is linked to another billing profile in indirect purchase motion.
 * @property invoiceEmailOptIn Flag controlling whether the invoices for the billing profile are sent through email.
 * @property invoiceRecipients The list of email addresses to receive invoices by email for the billing profile.
 * @property poNumber The default purchase order number that will appear on the invoices generated for the billing profile.
 * @property shipTo The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.
 * @property soldTo The address of the individual or organization that is responsible for the billing account.
 * @property tags Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
 */
public data class BillingProfilePropertiesArgs(
    public val billTo: Output? = null,
    public val currentPaymentTerm: Output? = null,
    public val displayName: Output? = null,
    public val enabledAzurePlans: Output>? = null,
    public val indirectRelationshipInfo: Output? =
        null,
    public val invoiceEmailOptIn: Output? = null,
    public val invoiceRecipients: Output>? = null,
    public val poNumber: Output? = null,
    public val shipTo: Output? = null,
    public val soldTo: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesArgs =
        com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesArgs.builder()
            .billTo(billTo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .currentPaymentTerm(
                currentPaymentTerm?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .enabledAzurePlans(
                enabledAzurePlans?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .indirectRelationshipInfo(
                indirectRelationshipInfo?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .invoiceEmailOptIn(invoiceEmailOptIn?.applyValue({ args0 -> args0 }))
            .invoiceRecipients(invoiceRecipients?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .poNumber(poNumber?.applyValue({ args0 -> args0 }))
            .shipTo(shipTo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .soldTo(soldTo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [BillingProfilePropertiesArgs].
 */
@PulumiTagMarker
public class BillingProfilePropertiesArgsBuilder internal constructor() {
    private var billTo: Output? = null

    private var currentPaymentTerm: Output? = null

    private var displayName: Output? = null

    private var enabledAzurePlans: Output>? = null

    private var indirectRelationshipInfo:
        Output? = null

    private var invoiceEmailOptIn: Output? = null

    private var invoiceRecipients: Output>? = null

    private var poNumber: Output? = null

    private var shipTo: Output? = null

    private var soldTo: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Billing address.
     */
    @JvmName("knjgycbobyawmpfm")
    public suspend fun billTo(`value`: Output) {
        this.billTo = value
    }

    /**
     * @param value The current payment term of the billing profile.
     */
    @JvmName("snyxopwehbrteolb")
    public suspend fun currentPaymentTerm(`value`: Output) {
        this.currentPaymentTerm = value
    }

    /**
     * @param value The name of the billing profile.
     */
    @JvmName("ypggniqrqumtdjnx")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Information about the enabled azure plans.
     */
    @JvmName("odaeevrrxmbpxjtl")
    public suspend fun enabledAzurePlans(`value`: Output>) {
        this.enabledAzurePlans = value
    }

    @JvmName("senohnuuafcmwhcc")
    public suspend fun enabledAzurePlans(vararg values: Output) {
        this.enabledAzurePlans = Output.all(values.asList())
    }

    /**
     * @param values Information about the enabled azure plans.
     */
    @JvmName("xgjrctqjdbmswiwy")
    public suspend fun enabledAzurePlans(values: List>) {
        this.enabledAzurePlans = Output.all(values)
    }

    /**
     * @param value Identifies the billing profile that is linked to another billing profile in indirect purchase motion.
     */
    @JvmName("aooqwgydpwmjifvr")
    public suspend fun indirectRelationshipInfo(`value`: Output) {
        this.indirectRelationshipInfo = value
    }

    /**
     * @param value Flag controlling whether the invoices for the billing profile are sent through email.
     */
    @JvmName("xvkxrwvusbhvwmlb")
    public suspend fun invoiceEmailOptIn(`value`: Output) {
        this.invoiceEmailOptIn = value
    }

    /**
     * @param value The list of email addresses to receive invoices by email for the billing profile.
     */
    @JvmName("iecswpnxxdgknrut")
    public suspend fun invoiceRecipients(`value`: Output>) {
        this.invoiceRecipients = value
    }

    @JvmName("lddalddhlpxymwhc")
    public suspend fun invoiceRecipients(vararg values: Output) {
        this.invoiceRecipients = Output.all(values.asList())
    }

    /**
     * @param values The list of email addresses to receive invoices by email for the billing profile.
     */
    @JvmName("ysjpbgkuphwuccup")
    public suspend fun invoiceRecipients(values: List>) {
        this.invoiceRecipients = Output.all(values)
    }

    /**
     * @param value The default purchase order number that will appear on the invoices generated for the billing profile.
     */
    @JvmName("eijvtalveotfmuaf")
    public suspend fun poNumber(`value`: Output) {
        this.poNumber = value
    }

    /**
     * @param value The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.
     */
    @JvmName("nsustndowqhuxpkt")
    public suspend fun shipTo(`value`: Output) {
        this.shipTo = value
    }

    /**
     * @param value The address of the individual or organization that is responsible for the billing account.
     */
    @JvmName("eieiepfdlaasudsc")
    public suspend fun soldTo(`value`: Output) {
        this.soldTo = value
    }

    /**
     * @param value Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
     */
    @JvmName("cyvqjyyhmypxnahd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Billing address.
     */
    @JvmName("tymkwgmbcqmfockm")
    public suspend fun billTo(`value`: BillingProfilePropertiesBillToArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.billTo = mapped
    }

    /**
     * @param argument Billing address.
     */
    @JvmName("sapnyrkeefyulxiv")
    public suspend fun billTo(argument: suspend BillingProfilePropertiesBillToArgsBuilder.() -> Unit) {
        val toBeMapped = BillingProfilePropertiesBillToArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.billTo = mapped
    }

    /**
     * @param value The current payment term of the billing profile.
     */
    @JvmName("kyogviddknujqnqm")
    public suspend fun currentPaymentTerm(`value`: BillingProfilePropertiesCurrentPaymentTermArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.currentPaymentTerm = mapped
    }

    /**
     * @param argument The current payment term of the billing profile.
     */
    @JvmName("lpsnonefxmtqcxvg")
    public suspend fun currentPaymentTerm(argument: suspend BillingProfilePropertiesCurrentPaymentTermArgsBuilder.() -> Unit) {
        val toBeMapped = BillingProfilePropertiesCurrentPaymentTermArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.currentPaymentTerm = mapped
    }

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

    /**
     * @param value Information about the enabled azure plans.
     */
    @JvmName("glcscvvmojdduuao")
    public suspend fun enabledAzurePlans(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabledAzurePlans = mapped
    }

    /**
     * @param argument Information about the enabled azure plans.
     */
    @JvmName("nyjlbyvcyllfgdcg")
    public suspend fun enabledAzurePlans(argument: List Unit>) {
        val toBeMapped = argument.toList().map { AzurePlanArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.enabledAzurePlans = mapped
    }

    /**
     * @param argument Information about the enabled azure plans.
     */
    @JvmName("xawlureysiguenjh")
    public suspend fun enabledAzurePlans(vararg argument: suspend AzurePlanArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { AzurePlanArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.enabledAzurePlans = mapped
    }

    /**
     * @param argument Information about the enabled azure plans.
     */
    @JvmName("qfffwrrlyxsyunft")
    public suspend fun enabledAzurePlans(argument: suspend AzurePlanArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AzurePlanArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.enabledAzurePlans = mapped
    }

    /**
     * @param values Information about the enabled azure plans.
     */
    @JvmName("sfhhssrlvqlbwpjn")
    public suspend fun enabledAzurePlans(vararg values: AzurePlanArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabledAzurePlans = mapped
    }

    /**
     * @param value Identifies the billing profile that is linked to another billing profile in indirect purchase motion.
     */
    @JvmName("tobkujnhrfpyvksf")
    public suspend fun indirectRelationshipInfo(`value`: BillingProfilePropertiesIndirectRelationshipInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.indirectRelationshipInfo = mapped
    }

    /**
     * @param argument Identifies the billing profile that is linked to another billing profile in indirect purchase motion.
     */
    @JvmName("uypkektdjvhuiqoj")
    public suspend fun indirectRelationshipInfo(argument: suspend BillingProfilePropertiesIndirectRelationshipInfoArgsBuilder.() -> Unit) {
        val toBeMapped = BillingProfilePropertiesIndirectRelationshipInfoArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.indirectRelationshipInfo = mapped
    }

    /**
     * @param value Flag controlling whether the invoices for the billing profile are sent through email.
     */
    @JvmName("fqanqymfritmseqi")
    public suspend fun invoiceEmailOptIn(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invoiceEmailOptIn = mapped
    }

    /**
     * @param value The list of email addresses to receive invoices by email for the billing profile.
     */
    @JvmName("ifbifycgrkguhbsk")
    public suspend fun invoiceRecipients(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invoiceRecipients = mapped
    }

    /**
     * @param values The list of email addresses to receive invoices by email for the billing profile.
     */
    @JvmName("mioellcfkhkuvuhr")
    public suspend fun invoiceRecipients(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.invoiceRecipients = mapped
    }

    /**
     * @param value The default purchase order number that will appear on the invoices generated for the billing profile.
     */
    @JvmName("skqleqcwkuktexuy")
    public suspend fun poNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.poNumber = mapped
    }

    /**
     * @param value The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.
     */
    @JvmName("txlsxjohkenmfnvl")
    public suspend fun shipTo(`value`: BillingProfilePropertiesShipToArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shipTo = mapped
    }

    /**
     * @param argument The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.
     */
    @JvmName("qwbiqmweumdqtfvn")
    public suspend fun shipTo(argument: suspend BillingProfilePropertiesShipToArgsBuilder.() -> Unit) {
        val toBeMapped = BillingProfilePropertiesShipToArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.shipTo = mapped
    }

    /**
     * @param value The address of the individual or organization that is responsible for the billing account.
     */
    @JvmName("jrypkkydwsetirhf")
    public suspend fun soldTo(`value`: BillingProfilePropertiesSoldToArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.soldTo = mapped
    }

    /**
     * @param argument The address of the individual or organization that is responsible for the billing account.
     */
    @JvmName("afjwledbgejxjpos")
    public suspend fun soldTo(argument: suspend BillingProfilePropertiesSoldToArgsBuilder.() -> Unit) {
        val toBeMapped = BillingProfilePropertiesSoldToArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.soldTo = mapped
    }

    /**
     * @param value Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
     */
    @JvmName("nmbrqwbrlyljjrag")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
     */
    @JvmName("prtdueirjbjqvpew")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): BillingProfilePropertiesArgs = BillingProfilePropertiesArgs(
        billTo = billTo,
        currentPaymentTerm = currentPaymentTerm,
        displayName = displayName,
        enabledAzurePlans = enabledAzurePlans,
        indirectRelationshipInfo = indirectRelationshipInfo,
        invoiceEmailOptIn = invoiceEmailOptIn,
        invoiceRecipients = invoiceRecipients,
        poNumber = poNumber,
        shipTo = shipTo,
        soldTo = soldTo,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy