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

com.pulumi.azurenative.costmanagement.kotlin.inputs.NotificationPropertiesArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.costmanagement.kotlin.inputs

import com.pulumi.azurenative.costmanagement.inputs.NotificationPropertiesArgs.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

/**
 * The properties of the scheduled action notification.
 * @property language Locale of the email.
 * @property message Optional message to be added in the email. Length is limited to 250 characters.
 * @property regionalFormat Regional format used for formatting date/time and currency values in the email.
 * @property subject Subject of the email. Length is limited to 70 characters.
 * @property to Array of email addresses.
 */
public data class NotificationPropertiesArgs(
    public val language: Output? = null,
    public val message: Output? = null,
    public val regionalFormat: Output? = null,
    public val subject: Output,
    public val to: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.costmanagement.inputs.NotificationPropertiesArgs =
        com.pulumi.azurenative.costmanagement.inputs.NotificationPropertiesArgs.builder()
            .language(language?.applyValue({ args0 -> args0 }))
            .message(message?.applyValue({ args0 -> args0 }))
            .regionalFormat(regionalFormat?.applyValue({ args0 -> args0 }))
            .subject(subject.applyValue({ args0 -> args0 }))
            .to(to.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [NotificationPropertiesArgs].
 */
@PulumiTagMarker
public class NotificationPropertiesArgsBuilder internal constructor() {
    private var language: Output? = null

    private var message: Output? = null

    private var regionalFormat: Output? = null

    private var subject: Output? = null

    private var to: Output>? = null

    /**
     * @param value Locale of the email.
     */
    @JvmName("fdltdanjekyrpykc")
    public suspend fun language(`value`: Output) {
        this.language = value
    }

    /**
     * @param value Optional message to be added in the email. Length is limited to 250 characters.
     */
    @JvmName("tyhsgqrgrphltrcu")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value Regional format used for formatting date/time and currency values in the email.
     */
    @JvmName("dpdkcvrgjackrosc")
    public suspend fun regionalFormat(`value`: Output) {
        this.regionalFormat = value
    }

    /**
     * @param value Subject of the email. Length is limited to 70 characters.
     */
    @JvmName("fpgpgutkesdihfrx")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value Array of email addresses.
     */
    @JvmName("nlyytosuyecululc")
    public suspend fun to(`value`: Output>) {
        this.to = value
    }

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

    /**
     * @param values Array of email addresses.
     */
    @JvmName("jhhrdtjxusxhlyms")
    public suspend fun to(values: List>) {
        this.to = Output.all(values)
    }

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

    /**
     * @param value Optional message to be added in the email. Length is limited to 250 characters.
     */
    @JvmName("mrrbixboyqieejhi")
    public suspend fun message(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.message = mapped
    }

    /**
     * @param value Regional format used for formatting date/time and currency values in the email.
     */
    @JvmName("uqnvhedmvxgsobho")
    public suspend fun regionalFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regionalFormat = mapped
    }

    /**
     * @param value Subject of the email. Length is limited to 70 characters.
     */
    @JvmName("tfesyxkswuaykuhu")
    public suspend fun subject(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param value Array of email addresses.
     */
    @JvmName("fisxaquectqauswp")
    public suspend fun to(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.to = mapped
    }

    /**
     * @param values Array of email addresses.
     */
    @JvmName("hxaumceluvlngdnl")
    public suspend fun to(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.to = mapped
    }

    internal fun build(): NotificationPropertiesArgs = NotificationPropertiesArgs(
        language = language,
        message = message,
        regionalFormat = regionalFormat,
        subject = subject ?: throw PulumiNullFieldException("subject"),
        to = to ?: throw PulumiNullFieldException("to"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy