Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.insights.kotlin.TenantActionGroupArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin
import com.pulumi.azurenative.insights.TenantActionGroupArgs.builder
import com.pulumi.azurenative.insights.kotlin.inputs.AzureAppPushReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.AzureAppPushReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.EmailReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.EmailReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.SmsReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.SmsReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.VoiceReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.VoiceReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.WebhookReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.WebhookReceiverArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A tenant action group resource.
* Azure REST API version: 2023-05-01-preview.
* ## Example Usage
* ### Create or update a tenant action group
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var tenantActionGroup = new AzureNative.Insights.TenantActionGroup("tenantActionGroup", new()
* {
* AzureAppPushReceivers = new[]
* {
* new AzureNative.Insights.Inputs.AzureAppPushReceiverArgs
* {
* EmailAddress = "[email protected] ",
* Name = "Sample azureAppPush",
* },
* },
* EmailReceivers = new[]
* {
* new AzureNative.Insights.Inputs.EmailReceiverArgs
* {
* EmailAddress = "[email protected] ",
* Name = "John Doe's email",
* UseCommonAlertSchema = false,
* },
* new AzureNative.Insights.Inputs.EmailReceiverArgs
* {
* EmailAddress = "[email protected] ",
* Name = "Jane Smith's email",
* UseCommonAlertSchema = true,
* },
* },
* Enabled = true,
* GroupShortName = "sample",
* Location = "Global",
* ManagementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47",
* SmsReceivers = new[]
* {
* new AzureNative.Insights.Inputs.SmsReceiverArgs
* {
* CountryCode = "1",
* Name = "John Doe's mobile",
* PhoneNumber = "2062022299",
* },
* new AzureNative.Insights.Inputs.SmsReceiverArgs
* {
* CountryCode = "1",
* Name = "Jane Smith's mobile",
* PhoneNumber = "0987654321",
* },
* },
* Tags = null,
* TenantActionGroupName = "testTenantActionGroup",
* VoiceReceivers = new[]
* {
* new AzureNative.Insights.Inputs.VoiceReceiverArgs
* {
* CountryCode = "1",
* Name = "Sample voice",
* PhoneNumber = "2062022299",
* },
* },
* WebhookReceivers = new[]
* {
* new AzureNative.Insights.Inputs.WebhookReceiverArgs
* {
* Name = "Sample webhook 1",
* ServiceUri = "http://www.example.com/webhook1",
* UseCommonAlertSchema = true,
* },
* new AzureNative.Insights.Inputs.WebhookReceiverArgs
* {
* IdentifierUri = "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a",
* Name = "Sample webhook 2",
* ObjectId = "d3bb868c-fe44-452c-aa26-769a6538c808",
* ServiceUri = "http://www.example.com/webhook2",
* TenantId = "68a4459a-ccb8-493c-b9da-dd30457d1b84",
* UseAadAuth = true,
* UseCommonAlertSchema = true,
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewTenantActionGroup(ctx, "tenantActionGroup", &insights.TenantActionGroupArgs{
* AzureAppPushReceivers: insights.AzureAppPushReceiverArray{
* &insights.AzureAppPushReceiverArgs{
* EmailAddress: pulumi.String("[email protected] "),
* Name: pulumi.String("Sample azureAppPush"),
* },
* },
* EmailReceivers: insights.EmailReceiverArray{
* &insights.EmailReceiverArgs{
* EmailAddress: pulumi.String("[email protected] "),
* Name: pulumi.String("John Doe's email"),
* UseCommonAlertSchema: pulumi.Bool(false),
* },
* &insights.EmailReceiverArgs{
* EmailAddress: pulumi.String("[email protected] "),
* Name: pulumi.String("Jane Smith's email"),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* },
* Enabled: pulumi.Bool(true),
* GroupShortName: pulumi.String("sample"),
* Location: pulumi.String("Global"),
* ManagementGroupId: pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
* SmsReceivers: insights.SmsReceiverArray{
* &insights.SmsReceiverArgs{
* CountryCode: pulumi.String("1"),
* Name: pulumi.String("John Doe's mobile"),
* PhoneNumber: pulumi.String("2062022299"),
* },
* &insights.SmsReceiverArgs{
* CountryCode: pulumi.String("1"),
* Name: pulumi.String("Jane Smith's mobile"),
* PhoneNumber: pulumi.String("0987654321"),
* },
* },
* Tags: nil,
* TenantActionGroupName: pulumi.String("testTenantActionGroup"),
* VoiceReceivers: insights.VoiceReceiverArray{
* &insights.VoiceReceiverArgs{
* CountryCode: pulumi.String("1"),
* Name: pulumi.String("Sample voice"),
* PhoneNumber: pulumi.String("2062022299"),
* },
* },
* WebhookReceivers: insights.WebhookReceiverArray{
* &insights.WebhookReceiverArgs{
* Name: pulumi.String("Sample webhook 1"),
* ServiceUri: pulumi.String("http://www.example.com/webhook1"),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* &insights.WebhookReceiverArgs{
* IdentifierUri: pulumi.String("http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a"),
* Name: pulumi.String("Sample webhook 2"),
* ObjectId: pulumi.String("d3bb868c-fe44-452c-aa26-769a6538c808"),
* ServiceUri: pulumi.String("http://www.example.com/webhook2"),
* TenantId: pulumi.String("68a4459a-ccb8-493c-b9da-dd30457d1b84"),
* UseAadAuth: pulumi.Bool(true),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* },
* })
* 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.insights.TenantActionGroup;
* import com.pulumi.azurenative.insights.TenantActionGroupArgs;
* import com.pulumi.azurenative.insights.inputs.AzureAppPushReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.EmailReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.SmsReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.VoiceReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.WebhookReceiverArgs;
* 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 tenantActionGroup = new TenantActionGroup("tenantActionGroup", TenantActionGroupArgs.builder()
* .azureAppPushReceivers(AzureAppPushReceiverArgs.builder()
* .emailAddress("[email protected] ")
* .name("Sample azureAppPush")
* .build())
* .emailReceivers(
* EmailReceiverArgs.builder()
* .emailAddress("[email protected] ")
* .name("John Doe's email")
* .useCommonAlertSchema(false)
* .build(),
* EmailReceiverArgs.builder()
* .emailAddress("[email protected] ")
* .name("Jane Smith's email")
* .useCommonAlertSchema(true)
* .build())
* .enabled(true)
* .groupShortName("sample")
* .location("Global")
* .managementGroupId("72f988bf-86f1-41af-91ab-2d7cd011db47")
* .smsReceivers(
* SmsReceiverArgs.builder()
* .countryCode("1")
* .name("John Doe's mobile")
* .phoneNumber("2062022299")
* .build(),
* SmsReceiverArgs.builder()
* .countryCode("1")
* .name("Jane Smith's mobile")
* .phoneNumber("0987654321")
* .build())
* .tags()
* .tenantActionGroupName("testTenantActionGroup")
* .voiceReceivers(VoiceReceiverArgs.builder()
* .countryCode("1")
* .name("Sample voice")
* .phoneNumber("2062022299")
* .build())
* .webhookReceivers(
* WebhookReceiverArgs.builder()
* .name("Sample webhook 1")
* .serviceUri("http://www.example.com/webhook1")
* .useCommonAlertSchema(true)
* .build(),
* WebhookReceiverArgs.builder()
* .identifierUri("http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a")
* .name("Sample webhook 2")
* .objectId("d3bb868c-fe44-452c-aa26-769a6538c808")
* .serviceUri("http://www.example.com/webhook2")
* .tenantId("68a4459a-ccb8-493c-b9da-dd30457d1b84")
* .useAadAuth(true)
* .useCommonAlertSchema(true)
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:insights:TenantActionGroup testTenantActionGroup /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}
* ```
* @property azureAppPushReceivers The list of AzureAppPush receivers that are part of this tenant action group.
* @property emailReceivers The list of email receivers that are part of this tenant action group.
* @property enabled Indicates whether this tenant action group is enabled. If a tenant action group is not enabled, then none of its receivers will receive communications.
* @property groupShortName The short name of the action group. This will be used in SMS messages.
* @property location Resource location
* @property managementGroupId The management group id.
* @property smsReceivers The list of SMS receivers that are part of this tenant action group.
* @property tags Resource tags
* @property tenantActionGroupName The name of the action group.
* @property voiceReceivers The list of voice receivers that are part of this tenant action group.
* @property webhookReceivers The list of webhook receivers that are part of this tenant action group.
*/
public data class TenantActionGroupArgs(
public val azureAppPushReceivers: Output>? = null,
public val emailReceivers: Output>? = null,
public val enabled: Output? = null,
public val groupShortName: Output? = null,
public val location: Output? = null,
public val managementGroupId: Output? = null,
public val smsReceivers: Output>? = null,
public val tags: Output>? = null,
public val tenantActionGroupName: Output? = null,
public val voiceReceivers: Output>? = null,
public val webhookReceivers: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.TenantActionGroupArgs =
com.pulumi.azurenative.insights.TenantActionGroupArgs.builder()
.azureAppPushReceivers(
azureAppPushReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.emailReceivers(
emailReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.enabled(enabled?.applyValue({ args0 -> args0 }))
.groupShortName(groupShortName?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.managementGroupId(managementGroupId?.applyValue({ args0 -> args0 }))
.smsReceivers(
smsReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.tenantActionGroupName(tenantActionGroupName?.applyValue({ args0 -> args0 }))
.voiceReceivers(
voiceReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.webhookReceivers(
webhookReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [TenantActionGroupArgs].
*/
@PulumiTagMarker
public class TenantActionGroupArgsBuilder internal constructor() {
private var azureAppPushReceivers: Output>? = null
private var emailReceivers: Output>? = null
private var enabled: Output? = null
private var groupShortName: Output? = null
private var location: Output? = null
private var managementGroupId: Output? = null
private var smsReceivers: Output>? = null
private var tags: Output>? = null
private var tenantActionGroupName: Output? = null
private var voiceReceivers: Output>? = null
private var webhookReceivers: Output>? = null
/**
* @param value The list of AzureAppPush receivers that are part of this tenant action group.
*/
@JvmName("nwjvjwvavrwcilpa")
public suspend fun azureAppPushReceivers(`value`: Output>) {
this.azureAppPushReceivers = value
}
@JvmName("yaeuosiagfvyulrm")
public suspend fun azureAppPushReceivers(vararg values: Output) {
this.azureAppPushReceivers = Output.all(values.asList())
}
/**
* @param values The list of AzureAppPush receivers that are part of this tenant action group.
*/
@JvmName("uojpujmgwwtdmqas")
public suspend fun azureAppPushReceivers(values: List>) {
this.azureAppPushReceivers = Output.all(values)
}
/**
* @param value The list of email receivers that are part of this tenant action group.
*/
@JvmName("atypfjuyojwirfxf")
public suspend fun emailReceivers(`value`: Output>) {
this.emailReceivers = value
}
@JvmName("jbypxggcenglfckl")
public suspend fun emailReceivers(vararg values: Output) {
this.emailReceivers = Output.all(values.asList())
}
/**
* @param values The list of email receivers that are part of this tenant action group.
*/
@JvmName("fgxuktuccijqskpq")
public suspend fun emailReceivers(values: List>) {
this.emailReceivers = Output.all(values)
}
/**
* @param value Indicates whether this tenant action group is enabled. If a tenant action group is not enabled, then none of its receivers will receive communications.
*/
@JvmName("bbghtkmfoqkxejwo")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The short name of the action group. This will be used in SMS messages.
*/
@JvmName("nkgbcjxbdrvyqtvb")
public suspend fun groupShortName(`value`: Output) {
this.groupShortName = value
}
/**
* @param value Resource location
*/
@JvmName("titlurmjjikcoxsb")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The management group id.
*/
@JvmName("bphujbfvscldjyjj")
public suspend fun managementGroupId(`value`: Output) {
this.managementGroupId = value
}
/**
* @param value The list of SMS receivers that are part of this tenant action group.
*/
@JvmName("wntnjrhfjulcrldw")
public suspend fun smsReceivers(`value`: Output>) {
this.smsReceivers = value
}
@JvmName("rmymrcdtuujiipnu")
public suspend fun smsReceivers(vararg values: Output) {
this.smsReceivers = Output.all(values.asList())
}
/**
* @param values The list of SMS receivers that are part of this tenant action group.
*/
@JvmName("kfgrqopphhpqjtkg")
public suspend fun smsReceivers(values: List>) {
this.smsReceivers = Output.all(values)
}
/**
* @param value Resource tags
*/
@JvmName("qnvbqdvtnwdbsikm")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name of the action group.
*/
@JvmName("cbqmugfriphfrxrn")
public suspend fun tenantActionGroupName(`value`: Output) {
this.tenantActionGroupName = value
}
/**
* @param value The list of voice receivers that are part of this tenant action group.
*/
@JvmName("tuxyeksxgywipitp")
public suspend fun voiceReceivers(`value`: Output>) {
this.voiceReceivers = value
}
@JvmName("lsmqopelpnhhcjnt")
public suspend fun voiceReceivers(vararg values: Output) {
this.voiceReceivers = Output.all(values.asList())
}
/**
* @param values The list of voice receivers that are part of this tenant action group.
*/
@JvmName("ixbkfqtmrqxabnft")
public suspend fun voiceReceivers(values: List>) {
this.voiceReceivers = Output.all(values)
}
/**
* @param value The list of webhook receivers that are part of this tenant action group.
*/
@JvmName("krtawwxikdxlexdn")
public suspend fun webhookReceivers(`value`: Output>) {
this.webhookReceivers = value
}
@JvmName("jajmqchuvmjmaavg")
public suspend fun webhookReceivers(vararg values: Output) {
this.webhookReceivers = Output.all(values.asList())
}
/**
* @param values The list of webhook receivers that are part of this tenant action group.
*/
@JvmName("kldwmrqfqnxmlnnl")
public suspend fun webhookReceivers(values: List>) {
this.webhookReceivers = Output.all(values)
}
/**
* @param value The list of AzureAppPush receivers that are part of this tenant action group.
*/
@JvmName("oaprbdswipsxxrea")
public suspend fun azureAppPushReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.azureAppPushReceivers = mapped
}
/**
* @param argument The list of AzureAppPush receivers that are part of this tenant action group.
*/
@JvmName("sljaajxivecovwgh")
public suspend fun azureAppPushReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
AzureAppPushReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.azureAppPushReceivers = mapped
}
/**
* @param argument The list of AzureAppPush receivers that are part of this tenant action group.
*/
@JvmName("xgbhpykcuegmhcgw")
public suspend fun azureAppPushReceivers(vararg argument: suspend AzureAppPushReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
AzureAppPushReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.azureAppPushReceivers = mapped
}
/**
* @param argument The list of AzureAppPush receivers that are part of this tenant action group.
*/
@JvmName("fmohkaqckigpgyme")
public suspend fun azureAppPushReceivers(argument: suspend AzureAppPushReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(AzureAppPushReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.azureAppPushReceivers = mapped
}
/**
* @param values The list of AzureAppPush receivers that are part of this tenant action group.
*/
@JvmName("xnmcyuoyaurufhpe")
public suspend fun azureAppPushReceivers(vararg values: AzureAppPushReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.azureAppPushReceivers = mapped
}
/**
* @param value The list of email receivers that are part of this tenant action group.
*/
@JvmName("opwgebagvmnxxnav")
public suspend fun emailReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.emailReceivers = mapped
}
/**
* @param argument The list of email receivers that are part of this tenant action group.
*/
@JvmName("drtqtkldbkbqcoee")
public suspend fun emailReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
EmailReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.emailReceivers = mapped
}
/**
* @param argument The list of email receivers that are part of this tenant action group.
*/
@JvmName("ohfxelextvrrnghl")
public suspend fun emailReceivers(vararg argument: suspend EmailReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
EmailReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.emailReceivers = mapped
}
/**
* @param argument The list of email receivers that are part of this tenant action group.
*/
@JvmName("jwtcmnxcvxoweuse")
public suspend fun emailReceivers(argument: suspend EmailReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(EmailReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.emailReceivers = mapped
}
/**
* @param values The list of email receivers that are part of this tenant action group.
*/
@JvmName("vqjjwrqahxomufia")
public suspend fun emailReceivers(vararg values: EmailReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.emailReceivers = mapped
}
/**
* @param value Indicates whether this tenant action group is enabled. If a tenant action group is not enabled, then none of its receivers will receive communications.
*/
@JvmName("ngndqdxtaiwisrhg")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The short name of the action group. This will be used in SMS messages.
*/
@JvmName("ftdtktfnvvpxmvsm")
public suspend fun groupShortName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupShortName = mapped
}
/**
* @param value Resource location
*/
@JvmName("qcaeeytepafiwigu")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The management group id.
*/
@JvmName("jdjawmmpilnxfjny")
public suspend fun managementGroupId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managementGroupId = mapped
}
/**
* @param value The list of SMS receivers that are part of this tenant action group.
*/
@JvmName("vgiqjrgynleccqgr")
public suspend fun smsReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.smsReceivers = mapped
}
/**
* @param argument The list of SMS receivers that are part of this tenant action group.
*/
@JvmName("ohepoxblcdtdgada")
public suspend fun smsReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map { SmsReceiverArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.smsReceivers = mapped
}
/**
* @param argument The list of SMS receivers that are part of this tenant action group.
*/
@JvmName("pvafuksdyewiavex")
public suspend fun smsReceivers(vararg argument: suspend SmsReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { SmsReceiverArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.smsReceivers = mapped
}
/**
* @param argument The list of SMS receivers that are part of this tenant action group.
*/
@JvmName("gspfgujpdugmqmkt")
public suspend fun smsReceivers(argument: suspend SmsReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(SmsReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.smsReceivers = mapped
}
/**
* @param values The list of SMS receivers that are part of this tenant action group.
*/
@JvmName("nyatwvveyqyvyari")
public suspend fun smsReceivers(vararg values: SmsReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.smsReceivers = mapped
}
/**
* @param value Resource tags
*/
@JvmName("dgelcgxewfinoiow")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags
*/
@JvmName("anlelxobfjpckebu")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value The name of the action group.
*/
@JvmName("hsqvufxmhqsmdplc")
public suspend fun tenantActionGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tenantActionGroupName = mapped
}
/**
* @param value The list of voice receivers that are part of this tenant action group.
*/
@JvmName("aubltglxbnkcaovi")
public suspend fun voiceReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.voiceReceivers = mapped
}
/**
* @param argument The list of voice receivers that are part of this tenant action group.
*/
@JvmName("jxqpnsqqnbbmarge")
public suspend fun voiceReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
VoiceReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.voiceReceivers = mapped
}
/**
* @param argument The list of voice receivers that are part of this tenant action group.
*/
@JvmName("pkwmhoylvibvcclc")
public suspend fun voiceReceivers(vararg argument: suspend VoiceReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
VoiceReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.voiceReceivers = mapped
}
/**
* @param argument The list of voice receivers that are part of this tenant action group.
*/
@JvmName("xdpjjciifdccggvk")
public suspend fun voiceReceivers(argument: suspend VoiceReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(VoiceReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.voiceReceivers = mapped
}
/**
* @param values The list of voice receivers that are part of this tenant action group.
*/
@JvmName("jnyrtsnuqvfmycvp")
public suspend fun voiceReceivers(vararg values: VoiceReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.voiceReceivers = mapped
}
/**
* @param value The list of webhook receivers that are part of this tenant action group.
*/
@JvmName("tnyfovpfberlydeq")
public suspend fun webhookReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.webhookReceivers = mapped
}
/**
* @param argument The list of webhook receivers that are part of this tenant action group.
*/
@JvmName("evbmebkueyuwkpha")
public suspend fun webhookReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
WebhookReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.webhookReceivers = mapped
}
/**
* @param argument The list of webhook receivers that are part of this tenant action group.
*/
@JvmName("chgfyoeswfayridk")
public suspend fun webhookReceivers(vararg argument: suspend WebhookReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
WebhookReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.webhookReceivers = mapped
}
/**
* @param argument The list of webhook receivers that are part of this tenant action group.
*/
@JvmName("ijtmsfvtcnprwmkh")
public suspend fun webhookReceivers(argument: suspend WebhookReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(WebhookReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.webhookReceivers = mapped
}
/**
* @param values The list of webhook receivers that are part of this tenant action group.
*/
@JvmName("qwmpdvnslqnbscvq")
public suspend fun webhookReceivers(vararg values: WebhookReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.webhookReceivers = mapped
}
internal fun build(): TenantActionGroupArgs = TenantActionGroupArgs(
azureAppPushReceivers = azureAppPushReceivers,
emailReceivers = emailReceivers,
enabled = enabled,
groupShortName = groupShortName,
location = location,
managementGroupId = managementGroupId,
smsReceivers = smsReceivers,
tags = tags,
tenantActionGroupName = tenantActionGroupName,
voiceReceivers = voiceReceivers,
webhookReceivers = webhookReceivers,
)
}