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

com.pulumi.azurenative.edgeorder.kotlin.inputs.OrderItemDetailsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.edgeorder.kotlin.inputs

import com.pulumi.azurenative.edgeorder.inputs.OrderItemDetailsArgs.builder
import com.pulumi.azurenative.edgeorder.kotlin.enums.OrderItemType
import com.pulumi.azurenative.edgeorder.kotlin.enums.OrderMode
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Order item details
 * @property notificationEmailList Additional notification email list
 * @property orderItemMode Defines the mode of the Order item.
 * @property orderItemType Order item type.
 * @property preferences Customer notification Preferences
 * @property productDetails Unique identifier for configuration.
 */
public data class OrderItemDetailsArgs(
    public val notificationEmailList: Output>? = null,
    public val orderItemMode: Output>? = null,
    public val orderItemType: Output>,
    public val preferences: Output? = null,
    public val productDetails: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.edgeorder.inputs.OrderItemDetailsArgs =
        com.pulumi.azurenative.edgeorder.inputs.OrderItemDetailsArgs.builder()
            .notificationEmailList(notificationEmailList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .orderItemMode(
                orderItemMode?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .orderItemType(
                orderItemType.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .preferences(preferences?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .productDetails(
                productDetails.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [OrderItemDetailsArgs].
 */
@PulumiTagMarker
public class OrderItemDetailsArgsBuilder internal constructor() {
    private var notificationEmailList: Output>? = null

    private var orderItemMode: Output>? = null

    private var orderItemType: Output>? = null

    private var preferences: Output? = null

    private var productDetails: Output? = null

    /**
     * @param value Additional notification email list
     */
    @JvmName("dnjphbjhyvxxwbgc")
    public suspend fun notificationEmailList(`value`: Output>) {
        this.notificationEmailList = value
    }

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

    /**
     * @param values Additional notification email list
     */
    @JvmName("wuhcnfvphcrmccmr")
    public suspend fun notificationEmailList(values: List>) {
        this.notificationEmailList = Output.all(values)
    }

    /**
     * @param value Defines the mode of the Order item.
     */
    @JvmName("ftllbxvvwkwdbhgd")
    public suspend fun orderItemMode(`value`: Output>) {
        this.orderItemMode = value
    }

    /**
     * @param value Order item type.
     */
    @JvmName("vjwqrreqildkudag")
    public suspend fun orderItemType(`value`: Output>) {
        this.orderItemType = value
    }

    /**
     * @param value Customer notification Preferences
     */
    @JvmName("tsctqhlucbvqnoat")
    public suspend fun preferences(`value`: Output) {
        this.preferences = value
    }

    /**
     * @param value Unique identifier for configuration.
     */
    @JvmName("nofgcnyjerjrwnji")
    public suspend fun productDetails(`value`: Output) {
        this.productDetails = value
    }

    /**
     * @param value Additional notification email list
     */
    @JvmName("mdeqsmjmetpvprvh")
    public suspend fun notificationEmailList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationEmailList = mapped
    }

    /**
     * @param values Additional notification email list
     */
    @JvmName("jygkupsdbrdwahks")
    public suspend fun notificationEmailList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notificationEmailList = mapped
    }

    /**
     * @param value Defines the mode of the Order item.
     */
    @JvmName("kjfoekofcxxcmgtr")
    public suspend fun orderItemMode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.orderItemMode = mapped
    }

    /**
     * @param value Defines the mode of the Order item.
     */
    @JvmName("dgvdyavlfmnqhowv")
    public fun orderItemMode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.orderItemMode = mapped
    }

    /**
     * @param value Defines the mode of the Order item.
     */
    @JvmName("tuwewbjfocilcfud")
    public fun orderItemMode(`value`: OrderMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.orderItemMode = mapped
    }

    /**
     * @param value Order item type.
     */
    @JvmName("tgllkpncppryyept")
    public suspend fun orderItemType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.orderItemType = mapped
    }

    /**
     * @param value Order item type.
     */
    @JvmName("ruwoujbcwhfvksic")
    public fun orderItemType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.orderItemType = mapped
    }

    /**
     * @param value Order item type.
     */
    @JvmName("pjieaojovfyyrmxa")
    public fun orderItemType(`value`: OrderItemType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.orderItemType = mapped
    }

    /**
     * @param value Customer notification Preferences
     */
    @JvmName("gcftkylsefjiknds")
    public suspend fun preferences(`value`: PreferencesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferences = mapped
    }

    /**
     * @param argument Customer notification Preferences
     */
    @JvmName("xvajlrdbicdvndsx")
    public suspend fun preferences(argument: suspend PreferencesArgsBuilder.() -> Unit) {
        val toBeMapped = PreferencesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.preferences = mapped
    }

    /**
     * @param value Unique identifier for configuration.
     */
    @JvmName("nwxsgnjvgdmmakcw")
    public suspend fun productDetails(`value`: ProductDetailsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.productDetails = mapped
    }

    /**
     * @param argument Unique identifier for configuration.
     */
    @JvmName("lymwrncxqoovgaao")
    public suspend fun productDetails(argument: suspend ProductDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = ProductDetailsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.productDetails = mapped
    }

    internal fun build(): OrderItemDetailsArgs = OrderItemDetailsArgs(
        notificationEmailList = notificationEmailList,
        orderItemMode = orderItemMode,
        orderItemType = orderItemType ?: throw PulumiNullFieldException("orderItemType"),
        preferences = preferences,
        productDetails = productDetails ?: throw PulumiNullFieldException("productDetails"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy