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

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

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

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

import com.pulumi.azurenative.edgeorder.inputs.PreferencesArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Preferences related to the order
 * @property encryptionPreferences Preferences related to the Encryption.
 * @property managementResourcePreferences Preferences related to the Management resource.
 * @property notificationPreferences Notification preferences.
 * @property transportPreferences Preferences related to the shipment logistics of the order.
 */
public data class PreferencesArgs(
    public val encryptionPreferences: Output? = null,
    public val managementResourcePreferences: Output? = null,
    public val notificationPreferences: Output>? = null,
    public val transportPreferences: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.edgeorder.inputs.PreferencesArgs =
        com.pulumi.azurenative.edgeorder.inputs.PreferencesArgs.builder()
            .encryptionPreferences(
                encryptionPreferences?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .managementResourcePreferences(
                managementResourcePreferences?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .notificationPreferences(
                notificationPreferences?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .transportPreferences(
                transportPreferences?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PreferencesArgs].
 */
@PulumiTagMarker
public class PreferencesArgsBuilder internal constructor() {
    private var encryptionPreferences: Output? = null

    private var managementResourcePreferences: Output? = null

    private var notificationPreferences: Output>? = null

    private var transportPreferences: Output? = null

    /**
     * @param value Preferences related to the Encryption.
     */
    @JvmName("ejhiprmebwfebiiu")
    public suspend fun encryptionPreferences(`value`: Output) {
        this.encryptionPreferences = value
    }

    /**
     * @param value Preferences related to the Management resource.
     */
    @JvmName("jalbhmlfcxgtjppb")
    public suspend fun managementResourcePreferences(`value`: Output) {
        this.managementResourcePreferences = value
    }

    /**
     * @param value Notification preferences.
     */
    @JvmName("bbqtthrktepfrwwl")
    public suspend fun notificationPreferences(`value`: Output>) {
        this.notificationPreferences = value
    }

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

    /**
     * @param values Notification preferences.
     */
    @JvmName("qxchrcdixrmjrnot")
    public suspend fun notificationPreferences(values: List>) {
        this.notificationPreferences = Output.all(values)
    }

    /**
     * @param value Preferences related to the shipment logistics of the order.
     */
    @JvmName("ahlilwtvkwqnopfm")
    public suspend fun transportPreferences(`value`: Output) {
        this.transportPreferences = value
    }

    /**
     * @param value Preferences related to the Encryption.
     */
    @JvmName("awntnjgpiwrdgang")
    public suspend fun encryptionPreferences(`value`: EncryptionPreferencesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionPreferences = mapped
    }

    /**
     * @param argument Preferences related to the Encryption.
     */
    @JvmName("ufauynyknjxjhfai")
    public suspend fun encryptionPreferences(argument: suspend EncryptionPreferencesArgsBuilder.() -> Unit) {
        val toBeMapped = EncryptionPreferencesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryptionPreferences = mapped
    }

    /**
     * @param value Preferences related to the Management resource.
     */
    @JvmName("qjyjlnogayxauqpl")
    public suspend fun managementResourcePreferences(`value`: ManagementResourcePreferencesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managementResourcePreferences = mapped
    }

    /**
     * @param argument Preferences related to the Management resource.
     */
    @JvmName("xiumbwoyayqnwnqp")
    public suspend fun managementResourcePreferences(argument: suspend ManagementResourcePreferencesArgsBuilder.() -> Unit) {
        val toBeMapped = ManagementResourcePreferencesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.managementResourcePreferences = mapped
    }

    /**
     * @param value Notification preferences.
     */
    @JvmName("hjfayiomrktuanav")
    public suspend fun notificationPreferences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationPreferences = mapped
    }

    /**
     * @param argument Notification preferences.
     */
    @JvmName("pxyngqgofsybhbwc")
    public suspend fun notificationPreferences(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NotificationPreferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.notificationPreferences = mapped
    }

    /**
     * @param argument Notification preferences.
     */
    @JvmName("cgxclpvptdijnefw")
    public suspend fun notificationPreferences(vararg argument: suspend NotificationPreferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NotificationPreferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.notificationPreferences = mapped
    }

    /**
     * @param argument Notification preferences.
     */
    @JvmName("vivviolclkavjaet")
    public suspend fun notificationPreferences(argument: suspend NotificationPreferenceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(NotificationPreferenceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.notificationPreferences = mapped
    }

    /**
     * @param values Notification preferences.
     */
    @JvmName("ucusugshogtyqtdv")
    public suspend fun notificationPreferences(vararg values: NotificationPreferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notificationPreferences = mapped
    }

    /**
     * @param value Preferences related to the shipment logistics of the order.
     */
    @JvmName("qvjsohjhvwsrewak")
    public suspend fun transportPreferences(`value`: TransportPreferencesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transportPreferences = mapped
    }

    /**
     * @param argument Preferences related to the shipment logistics of the order.
     */
    @JvmName("odkpkpgmywaprkcx")
    public suspend fun transportPreferences(argument: suspend TransportPreferencesArgsBuilder.() -> Unit) {
        val toBeMapped = TransportPreferencesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.transportPreferences = mapped
    }

    internal fun build(): PreferencesArgs = PreferencesArgs(
        encryptionPreferences = encryptionPreferences,
        managementResourcePreferences = managementResourcePreferences,
        notificationPreferences = notificationPreferences,
        transportPreferences = transportPreferences,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy