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

com.pulumi.azurenative.datalakestore.kotlin.AccountArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datalakestore.kotlin

import com.pulumi.azurenative.datalakestore.AccountArgs.builder
import com.pulumi.azurenative.datalakestore.kotlin.enums.EncryptionState
import com.pulumi.azurenative.datalakestore.kotlin.enums.FirewallAllowAzureIpsState
import com.pulumi.azurenative.datalakestore.kotlin.enums.FirewallState
import com.pulumi.azurenative.datalakestore.kotlin.enums.TierType
import com.pulumi.azurenative.datalakestore.kotlin.enums.TrustedIdProviderState
import com.pulumi.azurenative.datalakestore.kotlin.inputs.CreateFirewallRuleWithAccountParametersArgs
import com.pulumi.azurenative.datalakestore.kotlin.inputs.CreateFirewallRuleWithAccountParametersArgsBuilder
import com.pulumi.azurenative.datalakestore.kotlin.inputs.CreateTrustedIdProviderWithAccountParametersArgs
import com.pulumi.azurenative.datalakestore.kotlin.inputs.CreateTrustedIdProviderWithAccountParametersArgsBuilder
import com.pulumi.azurenative.datalakestore.kotlin.inputs.CreateVirtualNetworkRuleWithAccountParametersArgs
import com.pulumi.azurenative.datalakestore.kotlin.inputs.CreateVirtualNetworkRuleWithAccountParametersArgsBuilder
import com.pulumi.azurenative.datalakestore.kotlin.inputs.EncryptionConfigArgs
import com.pulumi.azurenative.datalakestore.kotlin.inputs.EncryptionConfigArgsBuilder
import com.pulumi.azurenative.datalakestore.kotlin.inputs.EncryptionIdentityArgs
import com.pulumi.azurenative.datalakestore.kotlin.inputs.EncryptionIdentityArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Data Lake Store account information.
 * Azure REST API version: 2016-11-01. Prior API version in Azure Native 1.x: 2016-11-01.
 * ## Example Usage
 * ### Creates the specified Data Lake Store account
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var account = new AzureNative.DataLakeStore.Account("account", new()
 *     {
 *         AccountName = "contosoadla",
 *         DefaultGroup = "test_default_group",
 *         EncryptionConfig = new AzureNative.DataLakeStore.Inputs.EncryptionConfigArgs
 *         {
 *             KeyVaultMetaInfo = new AzureNative.DataLakeStore.Inputs.KeyVaultMetaInfoArgs
 *             {
 *                 EncryptionKeyName = "test_encryption_key_name",
 *                 EncryptionKeyVersion = "encryption_key_version",
 *                 KeyVaultResourceId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
 *             },
 *             Type = AzureNative.DataLakeStore.EncryptionConfigType.UserManaged,
 *         },
 *         EncryptionState = AzureNative.DataLakeStore.EncryptionState.Enabled,
 *         FirewallAllowAzureIps = AzureNative.DataLakeStore.FirewallAllowAzureIpsState.Enabled,
 *         FirewallRules = new[]
 *         {
 *             new AzureNative.DataLakeStore.Inputs.CreateFirewallRuleWithAccountParametersArgs
 *             {
 *                 EndIpAddress = "2.2.2.2",
 *                 Name = "test_rule",
 *                 StartIpAddress = "1.1.1.1",
 *             },
 *         },
 *         FirewallState = AzureNative.DataLakeStore.FirewallState.Enabled,
 *         Identity = new AzureNative.DataLakeStore.Inputs.EncryptionIdentityArgs
 *         {
 *             Type = AzureNative.DataLakeStore.EncryptionIdentityType.SystemAssigned,
 *         },
 *         Location = "eastus2",
 *         NewTier = AzureNative.DataLakeStore.TierType.Consumption,
 *         ResourceGroupName = "contosorg",
 *         Tags =
 *         {
 *             { "test_key", "test_value" },
 *         },
 *         TrustedIdProviderState = AzureNative.DataLakeStore.TrustedIdProviderState.Enabled,
 *         TrustedIdProviders = new[]
 *         {
 *             new AzureNative.DataLakeStore.Inputs.CreateTrustedIdProviderWithAccountParametersArgs
 *             {
 *                 IdProvider = "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1",
 *                 Name = "test_trusted_id_provider_name",
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	datalakestore "github.com/pulumi/pulumi-azure-native-sdk/datalakestore/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := datalakestore.NewAccount(ctx, "account", &datalakestore.AccountArgs{
 * 			AccountName:  pulumi.String("contosoadla"),
 * 			DefaultGroup: pulumi.String("test_default_group"),
 * 			EncryptionConfig: &datalakestore.EncryptionConfigArgs{
 * 				KeyVaultMetaInfo: &datalakestore.KeyVaultMetaInfoArgs{
 * 					EncryptionKeyName:    pulumi.String("test_encryption_key_name"),
 * 					EncryptionKeyVersion: pulumi.String("encryption_key_version"),
 * 					KeyVaultResourceId:   pulumi.String("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"),
 * 				},
 * 				Type: datalakestore.EncryptionConfigTypeUserManaged,
 * 			},
 * 			EncryptionState:       datalakestore.EncryptionStateEnabled,
 * 			FirewallAllowAzureIps: datalakestore.FirewallAllowAzureIpsStateEnabled,
 * 			FirewallRules: datalakestore.CreateFirewallRuleWithAccountParametersArray{
 * 				&datalakestore.CreateFirewallRuleWithAccountParametersArgs{
 * 					EndIpAddress:   pulumi.String("2.2.2.2"),
 * 					Name:           pulumi.String("test_rule"),
 * 					StartIpAddress: pulumi.String("1.1.1.1"),
 * 				},
 * 			},
 * 			FirewallState: datalakestore.FirewallStateEnabled,
 * 			Identity: &datalakestore.EncryptionIdentityArgs{
 * 				Type: datalakestore.EncryptionIdentityTypeSystemAssigned,
 * 			},
 * 			Location:          pulumi.String("eastus2"),
 * 			NewTier:           datalakestore.TierTypeConsumption,
 * 			ResourceGroupName: pulumi.String("contosorg"),
 * 			Tags: pulumi.StringMap{
 * 				"test_key": pulumi.String("test_value"),
 * 			},
 * 			TrustedIdProviderState: datalakestore.TrustedIdProviderStateEnabled,
 * 			TrustedIdProviders: datalakestore.CreateTrustedIdProviderWithAccountParametersArray{
 * 				&datalakestore.CreateTrustedIdProviderWithAccountParametersArgs{
 * 					IdProvider: pulumi.String("https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1"),
 * 					Name:       pulumi.String("test_trusted_id_provider_name"),
 * 				},
 * 			},
 * 		})
 * 		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.datalakestore.Account;
 * import com.pulumi.azurenative.datalakestore.AccountArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.EncryptionConfigArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.KeyVaultMetaInfoArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.CreateFirewallRuleWithAccountParametersArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.EncryptionIdentityArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.CreateTrustedIdProviderWithAccountParametersArgs;
 * 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 account = new Account("account", AccountArgs.builder()
 *             .accountName("contosoadla")
 *             .defaultGroup("test_default_group")
 *             .encryptionConfig(EncryptionConfigArgs.builder()
 *                 .keyVaultMetaInfo(KeyVaultMetaInfoArgs.builder()
 *                     .encryptionKeyName("test_encryption_key_name")
 *                     .encryptionKeyVersion("encryption_key_version")
 *                     .keyVaultResourceId("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")
 *                     .build())
 *                 .type("UserManaged")
 *                 .build())
 *             .encryptionState("Enabled")
 *             .firewallAllowAzureIps("Enabled")
 *             .firewallRules(CreateFirewallRuleWithAccountParametersArgs.builder()
 *                 .endIpAddress("2.2.2.2")
 *                 .name("test_rule")
 *                 .startIpAddress("1.1.1.1")
 *                 .build())
 *             .firewallState("Enabled")
 *             .identity(EncryptionIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .location("eastus2")
 *             .newTier("Consumption")
 *             .resourceGroupName("contosorg")
 *             .tags(Map.of("test_key", "test_value"))
 *             .trustedIdProviderState("Enabled")
 *             .trustedIdProviders(CreateTrustedIdProviderWithAccountParametersArgs.builder()
 *                 .idProvider("https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1")
 *                 .name("test_trusted_id_provider_name")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:datalakestore:Account contosoadla /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}
 * ```
 * @property accountName The name of the Data Lake Store account.
 * @property defaultGroup The default owner group for all new folders and files created in the Data Lake Store account.
 * @property encryptionConfig The Key Vault encryption configuration.
 * @property encryptionState The current state of encryption for this Data Lake Store account.
 * @property firewallAllowAzureIps The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
 * @property firewallRules The list of firewall rules associated with this Data Lake Store account.
 * @property firewallState The current state of the IP address firewall for this Data Lake Store account.
 * @property identity The Key Vault encryption identity, if any.
 * @property location The resource location.
 * @property newTier The commitment tier to use for next month.
 * @property resourceGroupName The name of the Azure resource group.
 * @property tags The resource tags.
 * @property trustedIdProviderState The current state of the trusted identity provider feature for this Data Lake Store account.
 * @property trustedIdProviders The list of trusted identity providers associated with this Data Lake Store account.
 * @property virtualNetworkRules The list of virtual network rules associated with this Data Lake Store account.
 */
public data class AccountArgs(
    public val accountName: Output? = null,
    public val defaultGroup: Output? = null,
    public val encryptionConfig: Output? = null,
    public val encryptionState: Output? = null,
    public val firewallAllowAzureIps: Output? = null,
    public val firewallRules: Output>? = null,
    public val firewallState: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val newTier: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val trustedIdProviderState: Output? = null,
    public val trustedIdProviders: Output>? =
        null,
    public val virtualNetworkRules: Output>? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datalakestore.AccountArgs =
        com.pulumi.azurenative.datalakestore.AccountArgs.builder()
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .defaultGroup(defaultGroup?.applyValue({ args0 -> args0 }))
            .encryptionConfig(encryptionConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .encryptionState(encryptionState?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .firewallAllowAzureIps(
                firewallAllowAzureIps?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .firewallRules(
                firewallRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .firewallState(firewallState?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .newTier(newTier?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .trustedIdProviderState(
                trustedIdProviderState?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .trustedIdProviders(
                trustedIdProviders?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .virtualNetworkRules(
                virtualNetworkRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [AccountArgs].
 */
@PulumiTagMarker
public class AccountArgsBuilder internal constructor() {
    private var accountName: Output? = null

    private var defaultGroup: Output? = null

    private var encryptionConfig: Output? = null

    private var encryptionState: Output? = null

    private var firewallAllowAzureIps: Output? = null

    private var firewallRules: Output>? = null

    private var firewallState: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var newTier: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var trustedIdProviderState: Output? = null

    private var trustedIdProviders: Output>? =
        null

    private var virtualNetworkRules: Output>? =
        null

    /**
     * @param value The name of the Data Lake Store account.
     */
    @JvmName("qtkrkrgyyjppnjmr")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value The default owner group for all new folders and files created in the Data Lake Store account.
     */
    @JvmName("oatpydbfoncwxrmb")
    public suspend fun defaultGroup(`value`: Output) {
        this.defaultGroup = value
    }

    /**
     * @param value The Key Vault encryption configuration.
     */
    @JvmName("tnncpsjdlhaopxak")
    public suspend fun encryptionConfig(`value`: Output) {
        this.encryptionConfig = value
    }

    /**
     * @param value The current state of encryption for this Data Lake Store account.
     */
    @JvmName("mtfsnowhcoesypud")
    public suspend fun encryptionState(`value`: Output) {
        this.encryptionState = value
    }

    /**
     * @param value The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
     */
    @JvmName("yhynifeprsnwonmq")
    public suspend fun firewallAllowAzureIps(`value`: Output) {
        this.firewallAllowAzureIps = value
    }

    /**
     * @param value The list of firewall rules associated with this Data Lake Store account.
     */
    @JvmName("gcticmxkrocsfybf")
    public suspend fun firewallRules(`value`: Output>) {
        this.firewallRules = value
    }

    @JvmName("kygupnplwupbeapp")
    public suspend fun firewallRules(vararg values: Output) {
        this.firewallRules = Output.all(values.asList())
    }

    /**
     * @param values The list of firewall rules associated with this Data Lake Store account.
     */
    @JvmName("fctpuqanjqjjuqnn")
    public suspend fun firewallRules(values: List>) {
        this.firewallRules = Output.all(values)
    }

    /**
     * @param value The current state of the IP address firewall for this Data Lake Store account.
     */
    @JvmName("ykaxmxdhxnxaifeq")
    public suspend fun firewallState(`value`: Output) {
        this.firewallState = value
    }

    /**
     * @param value The Key Vault encryption identity, if any.
     */
    @JvmName("caxhyqgqomjxglba")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The resource location.
     */
    @JvmName("cdceviwmqgvbxkcg")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The commitment tier to use for next month.
     */
    @JvmName("kvbhbjuagkaitjwx")
    public suspend fun newTier(`value`: Output) {
        this.newTier = value
    }

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

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

    /**
     * @param value The current state of the trusted identity provider feature for this Data Lake Store account.
     */
    @JvmName("lpmamgpwtkopxtvf")
    public suspend fun trustedIdProviderState(`value`: Output) {
        this.trustedIdProviderState = value
    }

    /**
     * @param value The list of trusted identity providers associated with this Data Lake Store account.
     */
    @JvmName("waqespdkovyvvyjb")
    public suspend fun trustedIdProviders(`value`: Output>) {
        this.trustedIdProviders = value
    }

    @JvmName("cvtgoxchtpsnpbjk")
    public suspend fun trustedIdProviders(vararg values: Output) {
        this.trustedIdProviders = Output.all(values.asList())
    }

    /**
     * @param values The list of trusted identity providers associated with this Data Lake Store account.
     */
    @JvmName("vycxyytdpwypnbbg")
    public suspend fun trustedIdProviders(values: List>) {
        this.trustedIdProviders = Output.all(values)
    }

    /**
     * @param value The list of virtual network rules associated with this Data Lake Store account.
     */
    @JvmName("bkiuvxqbroptctve")
    public suspend fun virtualNetworkRules(`value`: Output>) {
        this.virtualNetworkRules = value
    }

    @JvmName("eniowggnfpcwaogt")
    public suspend fun virtualNetworkRules(vararg values: Output) {
        this.virtualNetworkRules = Output.all(values.asList())
    }

    /**
     * @param values The list of virtual network rules associated with this Data Lake Store account.
     */
    @JvmName("ldjtfaagsieutjhg")
    public suspend fun virtualNetworkRules(values: List>) {
        this.virtualNetworkRules = Output.all(values)
    }

    /**
     * @param value The name of the Data Lake Store account.
     */
    @JvmName("qtajecsuaoojffmf")
    public suspend fun accountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value The default owner group for all new folders and files created in the Data Lake Store account.
     */
    @JvmName("xmawqkacvsgajnga")
    public suspend fun defaultGroup(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultGroup = mapped
    }

    /**
     * @param value The Key Vault encryption configuration.
     */
    @JvmName("ipbrfpggbiligmwh")
    public suspend fun encryptionConfig(`value`: EncryptionConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionConfig = mapped
    }

    /**
     * @param argument The Key Vault encryption configuration.
     */
    @JvmName("puhpciclflnhsbbm")
    public suspend fun encryptionConfig(argument: suspend EncryptionConfigArgsBuilder.() -> Unit) {
        val toBeMapped = EncryptionConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryptionConfig = mapped
    }

    /**
     * @param value The current state of encryption for this Data Lake Store account.
     */
    @JvmName("dgcylfmguambsyau")
    public suspend fun encryptionState(`value`: EncryptionState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionState = mapped
    }

    /**
     * @param value The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
     */
    @JvmName("okyoxyfbeueweqbn")
    public suspend fun firewallAllowAzureIps(`value`: FirewallAllowAzureIpsState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallAllowAzureIps = mapped
    }

    /**
     * @param value The list of firewall rules associated with this Data Lake Store account.
     */
    @JvmName("ljhdeeiqkrrglmfx")
    public suspend fun firewallRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallRules = mapped
    }

    /**
     * @param argument The list of firewall rules associated with this Data Lake Store account.
     */
    @JvmName("jhdxevyeuuuiqkcq")
    public suspend fun firewallRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateFirewallRuleWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.firewallRules = mapped
    }

    /**
     * @param argument The list of firewall rules associated with this Data Lake Store account.
     */
    @JvmName("qdmpiaulxujcfspo")
    public suspend fun firewallRules(vararg argument: suspend CreateFirewallRuleWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateFirewallRuleWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.firewallRules = mapped
    }

    /**
     * @param argument The list of firewall rules associated with this Data Lake Store account.
     */
    @JvmName("uciqeepnijhhtkhk")
    public suspend fun firewallRules(argument: suspend CreateFirewallRuleWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CreateFirewallRuleWithAccountParametersArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.firewallRules = mapped
    }

    /**
     * @param values The list of firewall rules associated with this Data Lake Store account.
     */
    @JvmName("cuydnnajtohndhfg")
    public suspend fun firewallRules(vararg values: CreateFirewallRuleWithAccountParametersArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.firewallRules = mapped
    }

    /**
     * @param value The current state of the IP address firewall for this Data Lake Store account.
     */
    @JvmName("tyvtnmrdcruexpii")
    public suspend fun firewallState(`value`: FirewallState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallState = mapped
    }

    /**
     * @param value The Key Vault encryption identity, if any.
     */
    @JvmName("kthcnwongldogrve")
    public suspend fun identity(`value`: EncryptionIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The Key Vault encryption identity, if any.
     */
    @JvmName("scfjxgxnpglavdne")
    public suspend fun identity(argument: suspend EncryptionIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = EncryptionIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

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

    /**
     * @param value The commitment tier to use for next month.
     */
    @JvmName("dfvntoqkxfgfbokj")
    public suspend fun newTier(`value`: TierType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.newTier = mapped
    }

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

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

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

    /**
     * @param value The current state of the trusted identity provider feature for this Data Lake Store account.
     */
    @JvmName("brrpcjbeqrqewmpj")
    public suspend fun trustedIdProviderState(`value`: TrustedIdProviderState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedIdProviderState = mapped
    }

    /**
     * @param value The list of trusted identity providers associated with this Data Lake Store account.
     */
    @JvmName("ixrwonkjtxlwqbvy")
    public suspend fun trustedIdProviders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedIdProviders = mapped
    }

    /**
     * @param argument The list of trusted identity providers associated with this Data Lake Store account.
     */
    @JvmName("ashrmmglaxcsnyaa")
    public suspend fun trustedIdProviders(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateTrustedIdProviderWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.trustedIdProviders = mapped
    }

    /**
     * @param argument The list of trusted identity providers associated with this Data Lake Store account.
     */
    @JvmName("sjrblkqflffwhgar")
    public suspend fun trustedIdProviders(vararg argument: suspend CreateTrustedIdProviderWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateTrustedIdProviderWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.trustedIdProviders = mapped
    }

    /**
     * @param argument The list of trusted identity providers associated with this Data Lake Store account.
     */
    @JvmName("igrkgkfvgboyermq")
    public suspend fun trustedIdProviders(argument: suspend CreateTrustedIdProviderWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CreateTrustedIdProviderWithAccountParametersArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.trustedIdProviders = mapped
    }

    /**
     * @param values The list of trusted identity providers associated with this Data Lake Store account.
     */
    @JvmName("xvhaygkcehuokbth")
    public suspend fun trustedIdProviders(vararg values: CreateTrustedIdProviderWithAccountParametersArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trustedIdProviders = mapped
    }

    /**
     * @param value The list of virtual network rules associated with this Data Lake Store account.
     */
    @JvmName("xqfxmykhishilhmu")
    public suspend fun virtualNetworkRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualNetworkRules = mapped
    }

    /**
     * @param argument The list of virtual network rules associated with this Data Lake Store account.
     */
    @JvmName("rqgbrdwatgihqsqv")
    public suspend fun virtualNetworkRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateVirtualNetworkRuleWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.virtualNetworkRules = mapped
    }

    /**
     * @param argument The list of virtual network rules associated with this Data Lake Store account.
     */
    @JvmName("mmhrhqevkpwxfsij")
    public suspend fun virtualNetworkRules(vararg argument: suspend CreateVirtualNetworkRuleWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateVirtualNetworkRuleWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.virtualNetworkRules = mapped
    }

    /**
     * @param argument The list of virtual network rules associated with this Data Lake Store account.
     */
    @JvmName("kklhcguqdpkcoqvf")
    public suspend fun virtualNetworkRules(argument: suspend CreateVirtualNetworkRuleWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CreateVirtualNetworkRuleWithAccountParametersArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.virtualNetworkRules = mapped
    }

    /**
     * @param values The list of virtual network rules associated with this Data Lake Store account.
     */
    @JvmName("sxvygvvpohhtbpbk")
    public suspend fun virtualNetworkRules(vararg values: CreateVirtualNetworkRuleWithAccountParametersArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualNetworkRules = mapped
    }

    internal fun build(): AccountArgs = AccountArgs(
        accountName = accountName,
        defaultGroup = defaultGroup,
        encryptionConfig = encryptionConfig,
        encryptionState = encryptionState,
        firewallAllowAzureIps = firewallAllowAzureIps,
        firewallRules = firewallRules,
        firewallState = firewallState,
        identity = identity,
        location = location,
        newTier = newTier,
        resourceGroupName = resourceGroupName,
        tags = tags,
        trustedIdProviderState = trustedIdProviderState,
        trustedIdProviders = trustedIdProviders,
        virtualNetworkRules = virtualNetworkRules,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy