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

com.pulumi.aws.shield.kotlin.inputs.ProactiveEngagementEmergencyContactArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.shield.kotlin.inputs

import com.pulumi.aws.shield.inputs.ProactiveEngagementEmergencyContactArgs.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 contactNotes Additional notes regarding the contact.
 * @property emailAddress A valid email address that will be used for this contact.
 * @property phoneNumber A phone number, starting with `+` and up to 15 digits that will be used for this contact.
 */
public data class ProactiveEngagementEmergencyContactArgs(
    public val contactNotes: Output? = null,
    public val emailAddress: Output,
    public val phoneNumber: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.shield.inputs.ProactiveEngagementEmergencyContactArgs =
        com.pulumi.aws.shield.inputs.ProactiveEngagementEmergencyContactArgs.builder()
            .contactNotes(contactNotes?.applyValue({ args0 -> args0 }))
            .emailAddress(emailAddress.applyValue({ args0 -> args0 }))
            .phoneNumber(phoneNumber?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProactiveEngagementEmergencyContactArgs].
 */
@PulumiTagMarker
public class ProactiveEngagementEmergencyContactArgsBuilder internal constructor() {
    private var contactNotes: Output? = null

    private var emailAddress: Output? = null

    private var phoneNumber: Output? = null

    /**
     * @param value Additional notes regarding the contact.
     */
    @JvmName("hfytxbqolptieppv")
    public suspend fun contactNotes(`value`: Output) {
        this.contactNotes = value
    }

    /**
     * @param value A valid email address that will be used for this contact.
     */
    @JvmName("umgoedajvptvyxek")
    public suspend fun emailAddress(`value`: Output) {
        this.emailAddress = value
    }

    /**
     * @param value A phone number, starting with `+` and up to 15 digits that will be used for this contact.
     */
    @JvmName("uvrbccokstjyljwu")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value Additional notes regarding the contact.
     */
    @JvmName("cvsdcgthiilgerru")
    public suspend fun contactNotes(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactNotes = mapped
    }

    /**
     * @param value A valid email address that will be used for this contact.
     */
    @JvmName("uphyqrvaduhroida")
    public suspend fun emailAddress(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emailAddress = mapped
    }

    /**
     * @param value A phone number, starting with `+` and up to 15 digits that will be used for this contact.
     */
    @JvmName("ngoevxfjqmijdlge")
    public suspend fun phoneNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.phoneNumber = mapped
    }

    internal fun build(): ProactiveEngagementEmergencyContactArgs =
        ProactiveEngagementEmergencyContactArgs(
            contactNotes = contactNotes,
            emailAddress = emailAddress ?: throw PulumiNullFieldException("emailAddress"),
            phoneNumber = phoneNumber,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy