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

com.pulumi.azure.monitoring.kotlin.inputs.ActionGroupSmsReceiverArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ActionGroupSmsReceiverArgs.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.jvm.JvmName

/**
 *
 * @property countryCode The country code of the SMS receiver.
 * @property name The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.
 * @property phoneNumber The phone number of the SMS receiver.
 */
public data class ActionGroupSmsReceiverArgs(
    public val countryCode: Output,
    public val name: Output,
    public val phoneNumber: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActionGroupSmsReceiverArgs =
        com.pulumi.azure.monitoring.inputs.ActionGroupSmsReceiverArgs.builder()
            .countryCode(countryCode.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .phoneNumber(phoneNumber.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ActionGroupSmsReceiverArgs].
 */
@PulumiTagMarker
public class ActionGroupSmsReceiverArgsBuilder internal constructor() {
    private var countryCode: Output? = null

    private var name: Output? = null

    private var phoneNumber: Output? = null

    /**
     * @param value The country code of the SMS receiver.
     */
    @JvmName("edtdsohvijgdakuc")
    public suspend fun countryCode(`value`: Output) {
        this.countryCode = value
    }

    /**
     * @param value The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.
     */
    @JvmName("aunnriirekxqshxj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The phone number of the SMS receiver.
     */
    @JvmName("lylacasknbjhthgq")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value The country code of the SMS receiver.
     */
    @JvmName("vwaeubcylliwvsja")
    public suspend fun countryCode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.countryCode = mapped
    }

    /**
     * @param value The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.
     */
    @JvmName("sitbdpjermekbuxj")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The phone number of the SMS receiver.
     */
    @JvmName("xglojqyfehjerrkc")
    public suspend fun phoneNumber(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.phoneNumber = mapped
    }

    internal fun build(): ActionGroupSmsReceiverArgs = ActionGroupSmsReceiverArgs(
        countryCode = countryCode ?: throw PulumiNullFieldException("countryCode"),
        name = name ?: throw PulumiNullFieldException("name"),
        phoneNumber = phoneNumber ?: throw PulumiNullFieldException("phoneNumber"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy