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

com.pulumi.azurenative.voiceservices.kotlin.ContactArgs.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.voiceservices.kotlin

import com.pulumi.azurenative.voiceservices.ContactArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A Contact resource
 * Azure REST API version: 2022-12-01-preview. Prior API version in Azure Native 1.x: 2022-12-01-preview.
 * ## Example Usage
 * ### CreateContactResource
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var contact = new AzureNative.VoiceServices.Contact("contact", new()
 *     {
 *         CommunicationsGatewayName = "myname",
 *         ContactName = "John Smith",
 *         Email = "[email protected]",
 *         Location = "useast",
 *         PhoneNumber = "+1-555-1234",
 *         ResourceGroupName = "testrg",
 *         Role = "Network Manager",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	voiceservices "github.com/pulumi/pulumi-azure-native-sdk/voiceservices/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := voiceservices.NewContact(ctx, "contact", &voiceservices.ContactArgs{
 * 			CommunicationsGatewayName: pulumi.String("myname"),
 * 			ContactName:               pulumi.String("John Smith"),
 * 			Email:                     pulumi.String("[email protected]"),
 * 			Location:                  pulumi.String("useast"),
 * 			PhoneNumber:               pulumi.String("+1-555-1234"),
 * 			ResourceGroupName:         pulumi.String("testrg"),
 * 			Role:                      pulumi.String("Network Manager"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.voiceservices.Contact;
 * import com.pulumi.azurenative.voiceservices.ContactArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var contact = new Contact("contact", ContactArgs.builder()
 *             .communicationsGatewayName("myname")
 *             .contactName("John Smith")
 *             .email("[email protected]")
 *             .location("useast")
 *             .phoneNumber("+1-555-1234")
 *             .resourceGroupName("testrg")
 *             .role("Network Manager")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:voiceservices:Contact name2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}
 * ```
 * @property communicationsGatewayName Unique identifier for this deployment
 * @property contactName Full name of contact
 * @property email Email address of contact
 * @property location The geo-location where the resource lives
 * @property phoneNumber Telephone number of contact
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property role Job title of contact
 * @property tags Resource tags.
 */
public data class ContactArgs(
    public val communicationsGatewayName: Output? = null,
    public val contactName: Output? = null,
    public val email: Output? = null,
    public val location: Output? = null,
    public val phoneNumber: Output? = null,
    public val resourceGroupName: Output? = null,
    public val role: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.voiceservices.ContactArgs =
        com.pulumi.azurenative.voiceservices.ContactArgs.builder()
            .communicationsGatewayName(communicationsGatewayName?.applyValue({ args0 -> args0 }))
            .contactName(contactName?.applyValue({ args0 -> args0 }))
            .email(email?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .phoneNumber(phoneNumber?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .role(role?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ContactArgs].
 */
@PulumiTagMarker
public class ContactArgsBuilder internal constructor() {
    private var communicationsGatewayName: Output? = null

    private var contactName: Output? = null

    private var email: Output? = null

    private var location: Output? = null

    private var phoneNumber: Output? = null

    private var resourceGroupName: Output? = null

    private var role: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Unique identifier for this deployment
     */
    @JvmName("skubwfrnpxlnfedi")
    public suspend fun communicationsGatewayName(`value`: Output) {
        this.communicationsGatewayName = value
    }

    /**
     * @param value Full name of contact
     */
    @JvmName("gwkjgrsfjugrpgky")
    public suspend fun contactName(`value`: Output) {
        this.contactName = value
    }

    /**
     * @param value Email address of contact
     */
    @JvmName("pogjngmokwingppl")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("qddfcgljgccjjtsp")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Telephone number of contact
     */
    @JvmName("gxogtoebbtpvnogv")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("bikwyftygpapletm")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Job title of contact
     */
    @JvmName("hrcdqdwjbahhfuag")
    public suspend fun role(`value`: Output) {
        this.role = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("xhdrhcbppyybnvqh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Unique identifier for this deployment
     */
    @JvmName("marajjevmcieogda")
    public suspend fun communicationsGatewayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.communicationsGatewayName = mapped
    }

    /**
     * @param value Full name of contact
     */
    @JvmName("jdbspxtjyspfsuih")
    public suspend fun contactName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactName = mapped
    }

    /**
     * @param value Email address of contact
     */
    @JvmName("rsaawgawkcoxtpja")
    public suspend fun email(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("bordraatyvfwyqdu")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Telephone number of contact
     */
    @JvmName("ptxegeeomubcyxnk")
    public suspend fun phoneNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.phoneNumber = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("uyyerpmmrustkeav")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Job title of contact
     */
    @JvmName("lvpgewjptpnfcvho")
    public suspend fun role(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.role = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("kmtakgodfokeqbtw")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("gmisgohvxgblteft")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ContactArgs = ContactArgs(
        communicationsGatewayName = communicationsGatewayName,
        contactName = contactName,
        email = email,
        location = location,
        phoneNumber = phoneNumber,
        resourceGroupName = resourceGroupName,
        role = role,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy