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

com.pulumi.azure.databoxedge.kotlin.inputs.OrderContactArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.databoxedge.kotlin.inputs

import com.pulumi.azure.databoxedge.inputs.OrderContactArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property companyName The name of the company. Changing this forces a new Databox Edge Order to be created.
 * @property emails A list of email address to send order notification to. Changing this forces a new Databox Edge Order to be created.
 * @property name The contact person name. Changing this forces a new Databox Edge Order to be created.
 * @property phoneNumber The phone number. Changing this forces a new Databox Edge Order to be created.
 */
public data class OrderContactArgs(
    public val companyName: Output,
    public val emails: Output>,
    public val name: Output,
    public val phoneNumber: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.databoxedge.inputs.OrderContactArgs =
        com.pulumi.azure.databoxedge.inputs.OrderContactArgs.builder()
            .companyName(companyName.applyValue({ args0 -> args0 }))
            .emails(emails.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .phoneNumber(phoneNumber.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OrderContactArgs].
 */
@PulumiTagMarker
public class OrderContactArgsBuilder internal constructor() {
    private var companyName: Output? = null

    private var emails: Output>? = null

    private var name: Output? = null

    private var phoneNumber: Output? = null

    /**
     * @param value The name of the company. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("gsohhvhkwslvqmeu")
    public suspend fun companyName(`value`: Output) {
        this.companyName = value
    }

    /**
     * @param value A list of email address to send order notification to. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("ymuunotxdpmpeqbf")
    public suspend fun emails(`value`: Output>) {
        this.emails = value
    }

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

    /**
     * @param values A list of email address to send order notification to. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("tvpcftcjgcdkmmhl")
    public suspend fun emails(values: List>) {
        this.emails = Output.all(values)
    }

    /**
     * @param value The contact person name. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("tmlhmdwljblvmgyi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The phone number. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("ucwtbkeatpjvojni")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value The name of the company. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("sjwbulucujqgeoco")
    public suspend fun companyName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.companyName = mapped
    }

    /**
     * @param value A list of email address to send order notification to. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("nnnijnqnpbtkejju")
    public suspend fun emails(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emails = mapped
    }

    /**
     * @param values A list of email address to send order notification to. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("pyqvnraxkrthoqbp")
    public suspend fun emails(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emails = mapped
    }

    /**
     * @param value The contact person name. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("mwkhqeklqlvfksol")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The phone number. Changing this forces a new Databox Edge Order to be created.
     */
    @JvmName("fsxmrbolriglhvaw")
    public suspend fun phoneNumber(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.phoneNumber = mapped
    }

    internal fun build(): OrderContactArgs = OrderContactArgs(
        companyName = companyName ?: throw PulumiNullFieldException("companyName"),
        emails = emails ?: throw PulumiNullFieldException("emails"),
        name = name ?: throw PulumiNullFieldException("name"),
        phoneNumber = phoneNumber ?: throw PulumiNullFieldException("phoneNumber"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy