
com.pulumi.azure.newrelic.kotlin.inputs.MonitorUserArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.newrelic.kotlin.inputs
import com.pulumi.azure.newrelic.inputs.MonitorUserArgs.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 email Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
* @property firstName Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
* @property lastName Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
* @property phoneNumber Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
public data class MonitorUserArgs(
public val email: Output,
public val firstName: Output,
public val lastName: Output,
public val phoneNumber: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.newrelic.inputs.MonitorUserArgs =
com.pulumi.azure.newrelic.inputs.MonitorUserArgs.builder()
.email(email.applyValue({ args0 -> args0 }))
.firstName(firstName.applyValue({ args0 -> args0 }))
.lastName(lastName.applyValue({ args0 -> args0 }))
.phoneNumber(phoneNumber.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MonitorUserArgs].
*/
@PulumiTagMarker
public class MonitorUserArgsBuilder internal constructor() {
private var email: Output? = null
private var firstName: Output? = null
private var lastName: Output? = null
private var phoneNumber: Output? = null
/**
* @param value Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("ifycevafpeccftif")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("awfmhjncatgoswno")
public suspend fun firstName(`value`: Output) {
this.firstName = value
}
/**
* @param value Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("oqdemtgpbbrtdteh")
public suspend fun lastName(`value`: Output) {
this.lastName = value
}
/**
* @param value Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("yagaglmffqoiwwbn")
public suspend fun phoneNumber(`value`: Output) {
this.phoneNumber = value
}
/**
* @param value Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("jjmmkrkrcxfimotx")
public suspend fun email(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.email = mapped
}
/**
* @param value Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("ccmavsuqshblxhiu")
public suspend fun firstName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.firstName = mapped
}
/**
* @param value Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("ohgrwsoqqhdkjeml")
public suspend fun lastName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lastName = mapped
}
/**
* @param value Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("hdhpinnewkcdyhit")
public suspend fun phoneNumber(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.phoneNumber = mapped
}
internal fun build(): MonitorUserArgs = MonitorUserArgs(
email = email ?: throw PulumiNullFieldException("email"),
firstName = firstName ?: throw PulumiNullFieldException("firstName"),
lastName = lastName ?: throw PulumiNullFieldException("lastName"),
phoneNumber = phoneNumber ?: throw PulumiNullFieldException("phoneNumber"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy