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

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

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

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

import com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesShipToArgs.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

/**
 * 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 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 BillingProfilePropertiesShipToArgs(
    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.BillingProfilePropertiesShipToArgs =
        com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesShipToArgs.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 [BillingProfilePropertiesShipToArgs].
 */
@PulumiTagMarker
public class BillingProfilePropertiesShipToArgsBuilder 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("ohtklseifbfbmrtn")
    public suspend fun addressLine1(`value`: Output) {
        this.addressLine1 = value
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @param value Address line 1.
     */
    @JvmName("suxdpkvyaoepskuj")
    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("ldxglkxmndhobitr")
    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("mnffbwxtaljdyjpv")
    public suspend fun addressLine3(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addressLine3 = mapped
    }

    /**
     * @param value Address city.
     */
    @JvmName("lqvwsulmpjgtfivd")
    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("mnfselsbdrdyrdkk")
    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("vxwayjabwkilgrsj")
    public suspend fun country(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.country = mapped
    }

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

    /**
     * @param value Email address.
     */
    @JvmName("sqvehfngimywcuqu")
    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("nwwnylhiflpcfuok")
    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("vlsdolegagqmflhp")
    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("rhdekuwxpwlhdjmn")
    public suspend fun lastName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastName = mapped
    }

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

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

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

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

    internal fun build(): BillingProfilePropertiesShipToArgs = BillingProfilePropertiesShipToArgs(
        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