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

com.pulumi.azure.monitoring.kotlin.inputs.LogzSubAccountUserArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.monitoring.inputs.LogzSubAccountUserArgs.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 Email of the user used by Logz for contacting them if needed. A valid email address consists of an email prefix and an email domain. The prefix and domain may contain only letters, numbers, underscores, periods and dashes. Changing this forces a new logz Sub Account to be created.
 * > **NOTE** If you use the Azure CLI to authenticate to Azure, the Email of your Azure account needs to be granted the admin permission in your Logz.io account. Otherwise, you may not be able to delete this resource. There is no such limitation for the Service Principal authentication.
 * @property firstName First Name of the user. Possible values must be between 1 and 50 characters in length. Changing this forces a new logz Sub Account to be created.
 * @property lastName Last Name of the user. Possible values must be between 1 and 50 characters in length. Changing this forces a new logz Sub Account to be created.
 * @property phoneNumber Phone number of the user used by Logz for contacting them if needed. Possible values must be between 1 and 40 characters in length. Changing this forces a new logz Sub Account to be created.
 */
public data class LogzSubAccountUserArgs(
    public val email: Output,
    public val firstName: Output,
    public val lastName: Output,
    public val phoneNumber: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.LogzSubAccountUserArgs =
        com.pulumi.azure.monitoring.inputs.LogzSubAccountUserArgs.builder()
            .email(email.applyValue({ args0 -> args0 }))
            .firstName(firstName.applyValue({ args0 -> args0 }))
            .lastName(lastName.applyValue({ args0 -> args0 }))
            .phoneNumber(phoneNumber.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LogzSubAccountUserArgs].
 */
@PulumiTagMarker
public class LogzSubAccountUserArgsBuilder internal constructor() {
    private var email: Output? = null

    private var firstName: Output? = null

    private var lastName: Output? = null

    private var phoneNumber: Output? = null

    /**
     * @param value Email of the user used by Logz for contacting them if needed. A valid email address consists of an email prefix and an email domain. The prefix and domain may contain only letters, numbers, underscores, periods and dashes. Changing this forces a new logz Sub Account to be created.
     * > **NOTE** If you use the Azure CLI to authenticate to Azure, the Email of your Azure account needs to be granted the admin permission in your Logz.io account. Otherwise, you may not be able to delete this resource. There is no such limitation for the Service Principal authentication.
     */
    @JvmName("uhpdvrxyfhrlkqbg")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value First Name of the user. Possible values must be between 1 and 50 characters in length. Changing this forces a new logz Sub Account to be created.
     */
    @JvmName("vptewiqxdlyctqpy")
    public suspend fun firstName(`value`: Output) {
        this.firstName = value
    }

    /**
     * @param value Last Name of the user. Possible values must be between 1 and 50 characters in length. Changing this forces a new logz Sub Account to be created.
     */
    @JvmName("cglaxgfvffnpkkbl")
    public suspend fun lastName(`value`: Output) {
        this.lastName = value
    }

    /**
     * @param value Phone number of the user used by Logz for contacting them if needed. Possible values must be between 1 and 40 characters in length. Changing this forces a new logz Sub Account to be created.
     */
    @JvmName("qqpyajppdlgbfsyy")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value Email of the user used by Logz for contacting them if needed. A valid email address consists of an email prefix and an email domain. The prefix and domain may contain only letters, numbers, underscores, periods and dashes. Changing this forces a new logz Sub Account to be created.
     * > **NOTE** If you use the Azure CLI to authenticate to Azure, the Email of your Azure account needs to be granted the admin permission in your Logz.io account. Otherwise, you may not be able to delete this resource. There is no such limitation for the Service Principal authentication.
     */
    @JvmName("godwwvojpdinyhty")
    public suspend fun email(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value First Name of the user. Possible values must be between 1 and 50 characters in length. Changing this forces a new logz Sub Account to be created.
     */
    @JvmName("olsboynvbkbxmbch")
    public suspend fun firstName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.firstName = mapped
    }

    /**
     * @param value Last Name of the user. Possible values must be between 1 and 50 characters in length. Changing this forces a new logz Sub Account to be created.
     */
    @JvmName("ngifylyrbqakbnmi")
    public suspend fun lastName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lastName = mapped
    }

    /**
     * @param value Phone number of the user used by Logz for contacting them if needed. Possible values must be between 1 and 40 characters in length. Changing this forces a new logz Sub Account to be created.
     */
    @JvmName("oskpnoufjgeabqnm")
    public suspend fun phoneNumber(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.phoneNumber = mapped
    }

    internal fun build(): LogzSubAccountUserArgs = LogzSubAccountUserArgs(
        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