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

com.pulumi.azurenative.billing.kotlin.inputs.BillingProfilePropertiesBillToArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesBillToArgs.builder
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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Billing address.
 * @property addressLine1 Address line 1.
 * @property addressLine2 Address line 2.
 * @property addressLine3 Address line 3.
 * @property city Address city.
 * @property companyName Company name. Optional for MCA Individual (Pay-as-you-go).
 * @property country Country code uses ISO 3166-1 Alpha-2 format.
 * @property district Address district.
 * @property email Email address.
 * @property firstName First name. Optional for MCA Enterprise.
 * @property isValidAddress Indicates if the address is incomplete.
 * @property lastName Last name. Optional for MCA Enterprise.
 * @property middleName Middle name.
 * @property phoneNumber Phone number.
 * @property postalCode Postal code.
 * @property region Address region.
 */
public data class BillingProfilePropertiesBillToArgs(
    public val addressLine1: Output,
    public val addressLine2: Output? = null,
    public val addressLine3: Output? = null,
    public val city: Output? = null,
    public val companyName: Output? = null,
    public val country: Output,
    public val district: Output? = null,
    public val email: Output? = null,
    public val firstName: Output? = null,
    public val isValidAddress: Output? = null,
    public val lastName: Output? = null,
    public val middleName: Output? = null,
    public val phoneNumber: Output? = null,
    public val postalCode: Output? = null,
    public val region: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesBillToArgs =
        com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesBillToArgs.builder()
            .addressLine1(addressLine1.applyValue({ args0 -> args0 }))
            .addressLine2(addressLine2?.applyValue({ args0 -> args0 }))
            .addressLine3(addressLine3?.applyValue({ args0 -> args0 }))
            .city(city?.applyValue({ args0 -> args0 }))
            .companyName(companyName?.applyValue({ args0 -> args0 }))
            .country(country.applyValue({ args0 -> args0 }))
            .district(district?.applyValue({ args0 -> args0 }))
            .email(email?.applyValue({ args0 -> args0 }))
            .firstName(firstName?.applyValue({ args0 -> args0 }))
            .isValidAddress(isValidAddress?.applyValue({ args0 -> args0 }))
            .lastName(lastName?.applyValue({ args0 -> args0 }))
            .middleName(middleName?.applyValue({ args0 -> args0 }))
            .phoneNumber(phoneNumber?.applyValue({ args0 -> args0 }))
            .postalCode(postalCode?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BillingProfilePropertiesBillToArgs].
 */
@PulumiTagMarker
public class BillingProfilePropertiesBillToArgsBuilder internal constructor() {
    private var addressLine1: Output? = null

    private var addressLine2: Output? = null

    private var addressLine3: Output? = null

    private var city: Output? = null

    private var companyName: Output? = null

    private var country: Output? = null

    private var district: Output? = null

    private var email: Output? = null

    private var firstName: Output? = null

    private var isValidAddress: Output? = null

    private var lastName: Output? = null

    private var middleName: Output? = null

    private var phoneNumber: Output? = null

    private var postalCode: Output? = null

    private var region: Output? = null

    /**
     * @param value Address line 1.
     */
    @JvmName("sfowksuuotksxchd")
    public suspend fun addressLine1(`value`: Output) {
        this.addressLine1 = value
    }

    /**
     * @param value Address line 2.
     */
    @JvmName("iyppiunbjpnsruto")
    public suspend fun addressLine2(`value`: Output) {
        this.addressLine2 = value
    }

    /**
     * @param value Address line 3.
     */
    @JvmName("srcgmixrwhmklisn")
    public suspend fun addressLine3(`value`: Output) {
        this.addressLine3 = value
    }

    /**
     * @param value Address city.
     */
    @JvmName("bbvbblrjwxtcdgec")
    public suspend fun city(`value`: Output) {
        this.city = value
    }

    /**
     * @param value Company name. Optional for MCA Individual (Pay-as-you-go).
     */
    @JvmName("jgdhfwfhovmbbcsp")
    public suspend fun companyName(`value`: Output) {
        this.companyName = value
    }

    /**
     * @param value Country code uses ISO 3166-1 Alpha-2 format.
     */
    @JvmName("yhofaqdhkbawirhy")
    public suspend fun country(`value`: Output) {
        this.country = value
    }

    /**
     * @param value Address district.
     */
    @JvmName("krcnibqehbicbbct")
    public suspend fun district(`value`: Output) {
        this.district = value
    }

    /**
     * @param value Email address.
     */
    @JvmName("fsedpvyfewxrfnqt")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value First name. Optional for MCA Enterprise.
     */
    @JvmName("nminfnswjofsglxr")
    public suspend fun firstName(`value`: Output) {
        this.firstName = value
    }

    /**
     * @param value Indicates if the address is incomplete.
     */
    @JvmName("kimqbkpfxxxkbvyw")
    public suspend fun isValidAddress(`value`: Output) {
        this.isValidAddress = value
    }

    /**
     * @param value Last name. Optional for MCA Enterprise.
     */
    @JvmName("lrontkvmbnlxamwl")
    public suspend fun lastName(`value`: Output) {
        this.lastName = value
    }

    /**
     * @param value Middle name.
     */
    @JvmName("fddpmabgrdcmmtmn")
    public suspend fun middleName(`value`: Output) {
        this.middleName = value
    }

    /**
     * @param value Phone number.
     */
    @JvmName("yetnsenejabsfxiq")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value Postal code.
     */
    @JvmName("muisbfhhplhccvob")
    public suspend fun postalCode(`value`: Output) {
        this.postalCode = value
    }

    /**
     * @param value Address region.
     */
    @JvmName("phxoogqurvnehael")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value Address line 1.
     */
    @JvmName("utnhaqbjdssfrytm")
    public suspend fun addressLine1(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressLine1 = mapped
    }

    /**
     * @param value Address line 2.
     */
    @JvmName("tacgtlyokssloocr")
    public suspend fun addressLine2(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addressLine2 = mapped
    }

    /**
     * @param value Address line 3.
     */
    @JvmName("socpqbvocsjjiqwp")
    public suspend fun addressLine3(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addressLine3 = mapped
    }

    /**
     * @param value Address city.
     */
    @JvmName("ucntsxwqrhkodetd")
    public suspend fun city(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.city = mapped
    }

    /**
     * @param value Company name. Optional for MCA Individual (Pay-as-you-go).
     */
    @JvmName("ruuhltggscykhmus")
    public suspend fun companyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.companyName = mapped
    }

    /**
     * @param value Country code uses ISO 3166-1 Alpha-2 format.
     */
    @JvmName("varthcojdoegmeja")
    public suspend fun country(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.country = mapped
    }

    /**
     * @param value Address district.
     */
    @JvmName("fyhmmalejvaqmsqo")
    public suspend fun district(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.district = mapped
    }

    /**
     * @param value Email address.
     */
    @JvmName("huobixlecjgnjusa")
    public suspend fun email(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value First name. Optional for MCA Enterprise.
     */
    @JvmName("dmjkquatnjltdkdb")
    public suspend fun firstName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firstName = mapped
    }

    /**
     * @param value Indicates if the address is incomplete.
     */
    @JvmName("twxobkbfphpvnljw")
    public suspend fun isValidAddress(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isValidAddress = mapped
    }

    /**
     * @param value Last name. Optional for MCA Enterprise.
     */
    @JvmName("xkmreqensccwstmh")
    public suspend fun lastName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastName = mapped
    }

    /**
     * @param value Middle name.
     */
    @JvmName("jcdhdkwdnlahjydh")
    public suspend fun middleName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.middleName = mapped
    }

    /**
     * @param value Phone number.
     */
    @JvmName("iclwukrpporjoino")
    public suspend fun phoneNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.phoneNumber = mapped
    }

    /**
     * @param value Postal code.
     */
    @JvmName("hrxqafqpmkyungwg")
    public suspend fun postalCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postalCode = mapped
    }

    /**
     * @param value Address region.
     */
    @JvmName("rpxjfcuutsqguwyw")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    internal fun build(): BillingProfilePropertiesBillToArgs = BillingProfilePropertiesBillToArgs(
        addressLine1 = addressLine1 ?: throw PulumiNullFieldException("addressLine1"),
        addressLine2 = addressLine2,
        addressLine3 = addressLine3,
        city = city,
        companyName = companyName,
        country = country ?: throw PulumiNullFieldException("country"),
        district = district,
        email = email,
        firstName = firstName,
        isValidAddress = isValidAddress,
        lastName = lastName,
        middleName = middleName,
        phoneNumber = phoneNumber,
        postalCode = postalCode,
        region = region,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy