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

com.pulumi.azurenative.datalakeanalytics.kotlin.AccountArgs.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.datalakeanalytics.kotlin

import com.pulumi.azurenative.datalakeanalytics.AccountArgs.builder
import com.pulumi.azurenative.datalakeanalytics.kotlin.enums.FirewallAllowAzureIpsState
import com.pulumi.azurenative.datalakeanalytics.kotlin.enums.FirewallState
import com.pulumi.azurenative.datalakeanalytics.kotlin.enums.TierType
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.AddDataLakeStoreWithAccountParametersArgs
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.AddDataLakeStoreWithAccountParametersArgsBuilder
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.AddStorageAccountWithAccountParametersArgs
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.AddStorageAccountWithAccountParametersArgsBuilder
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.CreateComputePolicyWithAccountParametersArgs
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.CreateComputePolicyWithAccountParametersArgsBuilder
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.CreateFirewallRuleWithAccountParametersArgs
import com.pulumi.azurenative.datalakeanalytics.kotlin.inputs.CreateFirewallRuleWithAccountParametersArgsBuilder
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.Int
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 Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics account.
 * Azure REST API version: 2019-11-01-preview. Prior API version in Azure Native 1.x: 2016-11-01.
 * Other available API versions: 2015-10-01-preview.
 * ## Example Usage
 * ### Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var account = new AzureNative.DataLakeAnalytics.Account("account", new()
 *     {
 *         AccountName = "contosoadla",
 *         ComputePolicies = new[]
 *         {
 *             new AzureNative.DataLakeAnalytics.Inputs.CreateComputePolicyWithAccountParametersArgs
 *             {
 *                 MaxDegreeOfParallelismPerJob = 1,
 *                 MinPriorityPerJob = 1,
 *                 Name = "test_policy",
 *                 ObjectId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
 *                 ObjectType = AzureNative.DataLakeAnalytics.AADObjectType.User,
 *             },
 *         },
 *         DataLakeStoreAccounts = new[]
 *         {
 *             new AzureNative.DataLakeAnalytics.Inputs.AddDataLakeStoreWithAccountParametersArgs
 *             {
 *                 Name = "test_adls",
 *                 Suffix = "test_suffix",
 *             },
 *         },
 *         DefaultDataLakeStoreAccount = "test_adls",
 *         FirewallAllowAzureIps = AzureNative.DataLakeAnalytics.FirewallAllowAzureIpsState.Enabled,
 *         FirewallRules = new[]
 *         {
 *             new AzureNative.DataLakeAnalytics.Inputs.CreateFirewallRuleWithAccountParametersArgs
 *             {
 *                 EndIpAddress = "2.2.2.2",
 *                 Name = "test_rule",
 *                 StartIpAddress = "1.1.1.1",
 *             },
 *         },
 *         FirewallState = AzureNative.DataLakeAnalytics.FirewallState.Enabled,
 *         Location = "eastus2",
 *         MaxDegreeOfParallelism = 30,
 *         MaxDegreeOfParallelismPerJob = 1,
 *         MaxJobCount = 3,
 *         MinPriorityPerJob = 1,
 *         NewTier = AzureNative.DataLakeAnalytics.TierType.Consumption,
 *         QueryStoreRetention = 30,
 *         ResourceGroupName = "contosorg",
 *         StorageAccounts = new[]
 *         {
 *             new AzureNative.DataLakeAnalytics.Inputs.AddStorageAccountWithAccountParametersArgs
 *             {
 *                 AccessKey = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346",
 *                 Name = "test_storage",
 *                 Suffix = "test_suffix",
 *             },
 *         },
 *         Tags =
 *         {
 *             { "test_key", "test_value" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	datalakeanalytics "github.com/pulumi/pulumi-azure-native-sdk/datalakeanalytics/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := datalakeanalytics.NewAccount(ctx, "account", &datalakeanalytics.AccountArgs{
 * 			AccountName: pulumi.String("contosoadla"),
 * 			ComputePolicies: datalakeanalytics.CreateComputePolicyWithAccountParametersArray{
 * 				&datalakeanalytics.CreateComputePolicyWithAccountParametersArgs{
 * 					MaxDegreeOfParallelismPerJob: pulumi.Int(1),
 * 					MinPriorityPerJob:            pulumi.Int(1),
 * 					Name:                         pulumi.String("test_policy"),
 * 					ObjectId:                     pulumi.String("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"),
 * 					ObjectType:                   pulumi.String(datalakeanalytics.AADObjectTypeUser),
 * 				},
 * 			},
 * 			DataLakeStoreAccounts: datalakeanalytics.AddDataLakeStoreWithAccountParametersArray{
 * 				&datalakeanalytics.AddDataLakeStoreWithAccountParametersArgs{
 * 					Name:   pulumi.String("test_adls"),
 * 					Suffix: pulumi.String("test_suffix"),
 * 				},
 * 			},
 * 			DefaultDataLakeStoreAccount: pulumi.String("test_adls"),
 * 			FirewallAllowAzureIps:       datalakeanalytics.FirewallAllowAzureIpsStateEnabled,
 * 			FirewallRules: datalakeanalytics.CreateFirewallRuleWithAccountParametersArray{
 * 				&datalakeanalytics.CreateFirewallRuleWithAccountParametersArgs{
 * 					EndIpAddress:   pulumi.String("2.2.2.2"),
 * 					Name:           pulumi.String("test_rule"),
 * 					StartIpAddress: pulumi.String("1.1.1.1"),
 * 				},
 * 			},
 * 			FirewallState:                datalakeanalytics.FirewallStateEnabled,
 * 			Location:                     pulumi.String("eastus2"),
 * 			MaxDegreeOfParallelism:       pulumi.Int(30),
 * 			MaxDegreeOfParallelismPerJob: pulumi.Int(1),
 * 			MaxJobCount:                  pulumi.Int(3),
 * 			MinPriorityPerJob:            pulumi.Int(1),
 * 			NewTier:                      datalakeanalytics.TierTypeConsumption,
 * 			QueryStoreRetention:          pulumi.Int(30),
 * 			ResourceGroupName:            pulumi.String("contosorg"),
 * 			StorageAccounts: datalakeanalytics.AddStorageAccountWithAccountParametersArray{
 * 				&datalakeanalytics.AddStorageAccountWithAccountParametersArgs{
 * 					AccessKey: pulumi.String("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346"),
 * 					Name:      pulumi.String("test_storage"),
 * 					Suffix:    pulumi.String("test_suffix"),
 * 				},
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"test_key": pulumi.String("test_value"),
 * 			},
 * 		})
 * 		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.datalakeanalytics.Account;
 * import com.pulumi.azurenative.datalakeanalytics.AccountArgs;
 * import com.pulumi.azurenative.datalakeanalytics.inputs.CreateComputePolicyWithAccountParametersArgs;
 * import com.pulumi.azurenative.datalakeanalytics.inputs.AddDataLakeStoreWithAccountParametersArgs;
 * import com.pulumi.azurenative.datalakeanalytics.inputs.CreateFirewallRuleWithAccountParametersArgs;
 * import com.pulumi.azurenative.datalakeanalytics.inputs.AddStorageAccountWithAccountParametersArgs;
 * 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")
 *             .computePolicies(CreateComputePolicyWithAccountParametersArgs.builder()
 *                 .maxDegreeOfParallelismPerJob(1)
 *                 .minPriorityPerJob(1)
 *                 .name("test_policy")
 *                 .objectId("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")
 *                 .objectType("User")
 *                 .build())
 *             .dataLakeStoreAccounts(AddDataLakeStoreWithAccountParametersArgs.builder()
 *                 .name("test_adls")
 *                 .suffix("test_suffix")
 *                 .build())
 *             .defaultDataLakeStoreAccount("test_adls")
 *             .firewallAllowAzureIps("Enabled")
 *             .firewallRules(CreateFirewallRuleWithAccountParametersArgs.builder()
 *                 .endIpAddress("2.2.2.2")
 *                 .name("test_rule")
 *                 .startIpAddress("1.1.1.1")
 *                 .build())
 *             .firewallState("Enabled")
 *             .location("eastus2")
 *             .maxDegreeOfParallelism(30)
 *             .maxDegreeOfParallelismPerJob(1)
 *             .maxJobCount(3)
 *             .minPriorityPerJob(1)
 *             .newTier("Consumption")
 *             .queryStoreRetention(30)
 *             .resourceGroupName("contosorg")
 *             .storageAccounts(AddStorageAccountWithAccountParametersArgs.builder()
 *                 .accessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346")
 *                 .name("test_storage")
 *                 .suffix("test_suffix")
 *                 .build())
 *             .tags(Map.of("test_key", "test_value"))
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:datalakeanalytics:Account test_account /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}
 * ```
 * @property accountName The name of the Data Lake Analytics account.
 * @property computePolicies The list of compute policies associated with this account.
 * @property dataLakeStoreAccounts The list of Data Lake Store accounts associated with this account.
 * @property defaultDataLakeStoreAccount The default Data Lake Store account associated with this 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 account.
 * @property firewallState The current state of the IP address firewall for this account.
 * @property location The resource location.
 * @property maxDegreeOfParallelism The maximum supported degree of parallelism for this account.
 * @property maxDegreeOfParallelismPerJob The maximum supported degree of parallelism per job for this account.
 * @property maxJobCount The maximum supported jobs running under the account at the same time.
 * @property minPriorityPerJob The minimum supported priority per job for this account.
 * @property newTier The commitment tier for the next month.
 * @property queryStoreRetention The number of days that job metadata is retained.
 * @property resourceGroupName The name of the Azure resource group.
 * @property storageAccounts The list of Azure Blob Storage accounts associated with this account.
 * @property tags The resource tags.
 */
public data class AccountArgs(
    public val accountName: Output? = null,
    public val computePolicies: Output>? = null,
    public val dataLakeStoreAccounts: Output>? = null,
    public val defaultDataLakeStoreAccount: Output? = null,
    public val firewallAllowAzureIps: Output? = null,
    public val firewallRules: Output>? = null,
    public val firewallState: Output? = null,
    public val location: Output? = null,
    public val maxDegreeOfParallelism: Output? = null,
    public val maxDegreeOfParallelismPerJob: Output? = null,
    public val maxJobCount: Output? = null,
    public val minPriorityPerJob: Output? = null,
    public val newTier: Output? = null,
    public val queryStoreRetention: Output? = null,
    public val resourceGroupName: Output? = null,
    public val storageAccounts: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datalakeanalytics.AccountArgs =
        com.pulumi.azurenative.datalakeanalytics.AccountArgs.builder()
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .computePolicies(
                computePolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .dataLakeStoreAccounts(
                dataLakeStoreAccounts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .defaultDataLakeStoreAccount(defaultDataLakeStoreAccount?.applyValue({ args0 -> args0 }))
            .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() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .maxDegreeOfParallelism(maxDegreeOfParallelism?.applyValue({ args0 -> args0 }))
            .maxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob?.applyValue({ args0 -> args0 }))
            .maxJobCount(maxJobCount?.applyValue({ args0 -> args0 }))
            .minPriorityPerJob(minPriorityPerJob?.applyValue({ args0 -> args0 }))
            .newTier(newTier?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .queryStoreRetention(queryStoreRetention?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .storageAccounts(
                storageAccounts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var computePolicies: Output>? = null

    private var dataLakeStoreAccounts: Output>? = null

    private var defaultDataLakeStoreAccount: Output? = null

    private var firewallAllowAzureIps: Output? = null

    private var firewallRules: Output>? = null

    private var firewallState: Output? = null

    private var location: Output? = null

    private var maxDegreeOfParallelism: Output? = null

    private var maxDegreeOfParallelismPerJob: Output? = null

    private var maxJobCount: Output? = null

    private var minPriorityPerJob: Output? = null

    private var newTier: Output? = null

    private var queryStoreRetention: Output? = null

    private var resourceGroupName: Output? = null

    private var storageAccounts: Output>? = null

    private var tags: Output>? = null

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

    /**
     * @param value The list of compute policies associated with this account.
     */
    @JvmName("hysvhjinvsqxmjqj")
    public suspend fun computePolicies(`value`: Output>) {
        this.computePolicies = value
    }

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

    /**
     * @param values The list of compute policies associated with this account.
     */
    @JvmName("ysrbfyjpnhpiapjv")
    public suspend fun computePolicies(values: List>) {
        this.computePolicies = Output.all(values)
    }

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

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

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

    /**
     * @param value The default Data Lake Store account associated with this account.
     */
    @JvmName("gtfisxbjfttcuuvc")
    public suspend fun defaultDataLakeStoreAccount(`value`: Output) {
        this.defaultDataLakeStoreAccount = 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("rnvjfwmnotypnauu")
    public suspend fun firewallAllowAzureIps(`value`: Output) {
        this.firewallAllowAzureIps = value
    }

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

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

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

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

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

    /**
     * @param value The maximum supported degree of parallelism for this account.
     */
    @JvmName("xgldlucnuhpejrmc")
    public suspend fun maxDegreeOfParallelism(`value`: Output) {
        this.maxDegreeOfParallelism = value
    }

    /**
     * @param value The maximum supported degree of parallelism per job for this account.
     */
    @JvmName("gojrxeofowcihton")
    public suspend fun maxDegreeOfParallelismPerJob(`value`: Output) {
        this.maxDegreeOfParallelismPerJob = value
    }

    /**
     * @param value The maximum supported jobs running under the account at the same time.
     */
    @JvmName("svwrjmdogovoyxta")
    public suspend fun maxJobCount(`value`: Output) {
        this.maxJobCount = value
    }

    /**
     * @param value The minimum supported priority per job for this account.
     */
    @JvmName("jdyosdwxdakvfunh")
    public suspend fun minPriorityPerJob(`value`: Output) {
        this.minPriorityPerJob = value
    }

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

    /**
     * @param value The number of days that job metadata is retained.
     */
    @JvmName("cxwhnrskxwgxatop")
    public suspend fun queryStoreRetention(`value`: Output) {
        this.queryStoreRetention = value
    }

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

    /**
     * @param value The list of Azure Blob Storage accounts associated with this account.
     */
    @JvmName("pgscijwwfkobmxnf")
    public suspend fun storageAccounts(`value`: Output>) {
        this.storageAccounts = value
    }

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

    /**
     * @param values The list of Azure Blob Storage accounts associated with this account.
     */
    @JvmName("mgrwovvvjtyuwiww")
    public suspend fun storageAccounts(values: List>) {
        this.storageAccounts = Output.all(values)
    }

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

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

    /**
     * @param value The list of compute policies associated with this account.
     */
    @JvmName("txqeytlsgtloovdf")
    public suspend fun computePolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computePolicies = mapped
    }

    /**
     * @param argument The list of compute policies associated with this account.
     */
    @JvmName("shgjftimjatsjpbd")
    public suspend fun computePolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateComputePolicyWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.computePolicies = mapped
    }

    /**
     * @param argument The list of compute policies associated with this account.
     */
    @JvmName("iefpdiwnatbiaygu")
    public suspend fun computePolicies(vararg argument: suspend CreateComputePolicyWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateComputePolicyWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.computePolicies = mapped
    }

    /**
     * @param argument The list of compute policies associated with this account.
     */
    @JvmName("kpsefssakixtlijl")
    public suspend fun computePolicies(argument: suspend CreateComputePolicyWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CreateComputePolicyWithAccountParametersArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.computePolicies = mapped
    }

    /**
     * @param values The list of compute policies associated with this account.
     */
    @JvmName("nagecndtvnlhxrwf")
    public suspend fun computePolicies(vararg values: CreateComputePolicyWithAccountParametersArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.computePolicies = mapped
    }

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

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

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

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

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

    /**
     * @param value The default Data Lake Store account associated with this account.
     */
    @JvmName("pdkaysopnuedxiha")
    public suspend fun defaultDataLakeStoreAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultDataLakeStoreAccount = 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("yecxluipitcjefhv")
    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 account.
     */
    @JvmName("vmliusepnudmjigp")
    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 account.
     */
    @JvmName("qpcycgdnkmfraxdc")
    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 account.
     */
    @JvmName("yycqipslwsvauspe")
    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 account.
     */
    @JvmName("eiqsqhgvteurbork")
    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 account.
     */
    @JvmName("vfpuengfmscjwnak")
    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 account.
     */
    @JvmName("evgaljvgcrbjqsrr")
    public suspend fun firewallState(`value`: FirewallState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallState = mapped
    }

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

    /**
     * @param value The maximum supported degree of parallelism for this account.
     */
    @JvmName("kemywuxhgnfldiga")
    public suspend fun maxDegreeOfParallelism(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDegreeOfParallelism = mapped
    }

    /**
     * @param value The maximum supported degree of parallelism per job for this account.
     */
    @JvmName("lrqotntmthpmqfna")
    public suspend fun maxDegreeOfParallelismPerJob(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDegreeOfParallelismPerJob = mapped
    }

    /**
     * @param value The maximum supported jobs running under the account at the same time.
     */
    @JvmName("mwblbcebuuvaonpb")
    public suspend fun maxJobCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxJobCount = mapped
    }

    /**
     * @param value The minimum supported priority per job for this account.
     */
    @JvmName("jhvhrblajxcvwlly")
    public suspend fun minPriorityPerJob(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minPriorityPerJob = mapped
    }

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

    /**
     * @param value The number of days that job metadata is retained.
     */
    @JvmName("oqlvafvnbfhexkef")
    public suspend fun queryStoreRetention(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStoreRetention = mapped
    }

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

    /**
     * @param value The list of Azure Blob Storage accounts associated with this account.
     */
    @JvmName("spmbdtapovrtjyff")
    public suspend fun storageAccounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccounts = mapped
    }

    /**
     * @param argument The list of Azure Blob Storage accounts associated with this account.
     */
    @JvmName("ecvxphckeabcmqan")
    public suspend fun storageAccounts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AddStorageAccountWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param argument The list of Azure Blob Storage accounts associated with this account.
     */
    @JvmName("nbwxsxmfbfildqdo")
    public suspend fun storageAccounts(vararg argument: suspend AddStorageAccountWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AddStorageAccountWithAccountParametersArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param argument The list of Azure Blob Storage accounts associated with this account.
     */
    @JvmName("xbvfigvvxsrgwtep")
    public suspend fun storageAccounts(argument: suspend AddStorageAccountWithAccountParametersArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AddStorageAccountWithAccountParametersArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param values The list of Azure Blob Storage accounts associated with this account.
     */
    @JvmName("ntutkkdjmdanbkgf")
    public suspend fun storageAccounts(vararg values: AddStorageAccountWithAccountParametersArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageAccounts = mapped
    }

    /**
     * @param value The resource tags.
     */
    @JvmName("nvwaraqcfihotpfl")
    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("gmtakdbhqwkfwsrp")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AccountArgs = AccountArgs(
        accountName = accountName,
        computePolicies = computePolicies,
        dataLakeStoreAccounts = dataLakeStoreAccounts,
        defaultDataLakeStoreAccount = defaultDataLakeStoreAccount,
        firewallAllowAzureIps = firewallAllowAzureIps,
        firewallRules = firewallRules,
        firewallState = firewallState,
        location = location,
        maxDegreeOfParallelism = maxDegreeOfParallelism,
        maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob,
        maxJobCount = maxJobCount,
        minPriorityPerJob = minPriorityPerJob,
        newTier = newTier,
        queryStoreRetention = queryStoreRetention,
        resourceGroupName = resourceGroupName,
        storageAccounts = storageAccounts,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy