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

com.pulumi.azurenative.solutions.kotlin.ApplicationDefinitionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.solutions.kotlin

import com.pulumi.azurenative.solutions.ApplicationDefinitionArgs.builder
import com.pulumi.azurenative.solutions.kotlin.enums.ApplicationLockLevel
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationAuthorizationArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationAuthorizationArgsBuilder
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationDefinitionArtifactArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationDefinitionArtifactArgsBuilder
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationDeploymentPolicyArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationDeploymentPolicyArgsBuilder
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationManagementPolicyArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationManagementPolicyArgsBuilder
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationNotificationPolicyArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationNotificationPolicyArgsBuilder
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationPackageLockingPolicyDefinitionArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationPackageLockingPolicyDefinitionArgsBuilder
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationPolicyArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.ApplicationPolicyArgsBuilder
import com.pulumi.azurenative.solutions.kotlin.inputs.SkuArgs
import com.pulumi.azurenative.solutions.kotlin.inputs.SkuArgsBuilder
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.Any
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

/**
 * Information about managed application definition.
 * Azure REST API version: 2021-07-01. Prior API version in Azure Native 1.x: 2019-07-01.
 * Other available API versions: 2017-12-01, 2023-12-01-preview.
 * ## Example Usage
 * ### Create or update managed application definition
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var applicationDefinition = new AzureNative.Solutions.ApplicationDefinition("applicationDefinition", new()
 *     {
 *         ApplicationDefinitionName = "myManagedApplicationDef",
 *         Authorizations = new[]
 *         {
 *             new AzureNative.Solutions.Inputs.ApplicationAuthorizationArgs
 *             {
 *                 PrincipalId = "validprincipalguid",
 *                 RoleDefinitionId = "validroleguid",
 *             },
 *         },
 *         Description = "myManagedApplicationDef description",
 *         DisplayName = "myManagedApplicationDef",
 *         LockLevel = AzureNative.Solutions.ApplicationLockLevel.None,
 *         PackageFileUri = "https://path/to/packagezipfile",
 *         ResourceGroupName = "rg",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	solutions "github.com/pulumi/pulumi-azure-native-sdk/solutions/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := solutions.NewApplicationDefinition(ctx, "applicationDefinition", &solutions.ApplicationDefinitionArgs{
 * 			ApplicationDefinitionName: pulumi.String("myManagedApplicationDef"),
 * 			Authorizations: solutions.ApplicationAuthorizationArray{
 * 				&solutions.ApplicationAuthorizationArgs{
 * 					PrincipalId:      pulumi.String("validprincipalguid"),
 * 					RoleDefinitionId: pulumi.String("validroleguid"),
 * 				},
 * 			},
 * 			Description:       pulumi.String("myManagedApplicationDef description"),
 * 			DisplayName:       pulumi.String("myManagedApplicationDef"),
 * 			LockLevel:         solutions.ApplicationLockLevelNone,
 * 			PackageFileUri:    pulumi.String("https://path/to/packagezipfile"),
 * 			ResourceGroupName: pulumi.String("rg"),
 * 		})
 * 		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.solutions.ApplicationDefinition;
 * import com.pulumi.azurenative.solutions.ApplicationDefinitionArgs;
 * import com.pulumi.azurenative.solutions.inputs.ApplicationAuthorizationArgs;
 * 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 applicationDefinition = new ApplicationDefinition("applicationDefinition", ApplicationDefinitionArgs.builder()
 *             .applicationDefinitionName("myManagedApplicationDef")
 *             .authorizations(ApplicationAuthorizationArgs.builder()
 *                 .principalId("validprincipalguid")
 *                 .roleDefinitionId("validroleguid")
 *                 .build())
 *             .description("myManagedApplicationDef description")
 *             .displayName("myManagedApplicationDef")
 *             .lockLevel("None")
 *             .packageFileUri("https://path/to/packagezipfile")
 *             .resourceGroupName("rg")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:solutions:ApplicationDefinition myManagedApplicationDef /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}
 * ```
 * @property applicationDefinitionName The name of the managed application definition.
 * @property artifacts The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
 * @property authorizations The managed application provider authorizations.
 * @property createUiDefinition The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string.
 * @property deploymentPolicy The managed application deployment policy.
 * @property description The managed application definition description.
 * @property displayName The managed application definition display name.
 * @property isEnabled A value indicating whether the package is enabled or not.
 * @property location Resource location
 * @property lockLevel The managed application lock level.
 * @property lockingPolicy The managed application locking policy.
 * @property mainTemplate The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string.
 * @property managedBy ID of the resource that manages this resource.
 * @property managementPolicy The managed application management policy that determines publisher's access to the managed resource group.
 * @property notificationPolicy The managed application notification policy.
 * @property packageFileUri The managed application definition package file Uri. Use this element
 * @property policies The managed application provider policies.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property sku The SKU of the resource.
 * @property storageAccountId The storage account id for bring your own storage scenario.
 * @property tags Resource tags
 */
public data class ApplicationDefinitionArgs(
    public val applicationDefinitionName: Output? = null,
    public val artifacts: Output>? = null,
    public val authorizations: Output>? = null,
    public val createUiDefinition: Output? = null,
    public val deploymentPolicy: Output? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val isEnabled: Output? = null,
    public val location: Output? = null,
    public val lockLevel: Output? = null,
    public val lockingPolicy: Output? = null,
    public val mainTemplate: Output? = null,
    public val managedBy: Output? = null,
    public val managementPolicy: Output? = null,
    public val notificationPolicy: Output? = null,
    public val packageFileUri: Output? = null,
    public val policies: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val sku: Output? = null,
    public val storageAccountId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.solutions.ApplicationDefinitionArgs =
        com.pulumi.azurenative.solutions.ApplicationDefinitionArgs.builder()
            .applicationDefinitionName(applicationDefinitionName?.applyValue({ args0 -> args0 }))
            .artifacts(
                artifacts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .authorizations(
                authorizations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .createUiDefinition(createUiDefinition?.applyValue({ args0 -> args0 }))
            .deploymentPolicy(deploymentPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .isEnabled(isEnabled?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .lockLevel(lockLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .lockingPolicy(lockingPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mainTemplate(mainTemplate?.applyValue({ args0 -> args0 }))
            .managedBy(managedBy?.applyValue({ args0 -> args0 }))
            .managementPolicy(managementPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .notificationPolicy(
                notificationPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .packageFileUri(packageFileUri?.applyValue({ args0 -> args0 }))
            .policies(
                policies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .storageAccountId(storageAccountId?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ApplicationDefinitionArgs].
 */
@PulumiTagMarker
public class ApplicationDefinitionArgsBuilder internal constructor() {
    private var applicationDefinitionName: Output? = null

    private var artifacts: Output>? = null

    private var authorizations: Output>? = null

    private var createUiDefinition: Output? = null

    private var deploymentPolicy: Output? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var isEnabled: Output? = null

    private var location: Output? = null

    private var lockLevel: Output? = null

    private var lockingPolicy: Output? = null

    private var mainTemplate: Output? = null

    private var managedBy: Output? = null

    private var managementPolicy: Output? = null

    private var notificationPolicy: Output? = null

    private var packageFileUri: Output? = null

    private var policies: Output>? = null

    private var resourceGroupName: Output? = null

    private var sku: Output? = null

    private var storageAccountId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the managed application definition.
     */
    @JvmName("jilihxkgqgpeopio")
    public suspend fun applicationDefinitionName(`value`: Output) {
        this.applicationDefinitionName = value
    }

    /**
     * @param value The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
     */
    @JvmName("vsjkmugdiussplii")
    public suspend fun artifacts(`value`: Output>) {
        this.artifacts = value
    }

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

    /**
     * @param values The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
     */
    @JvmName("wkksmnrecerrsgjk")
    public suspend fun artifacts(values: List>) {
        this.artifacts = Output.all(values)
    }

    /**
     * @param value The managed application provider authorizations.
     */
    @JvmName("wodeqhkvtmscfhcu")
    public suspend fun authorizations(`value`: Output>) {
        this.authorizations = value
    }

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

    /**
     * @param values The managed application provider authorizations.
     */
    @JvmName("pvggjkcmbivslhux")
    public suspend fun authorizations(values: List>) {
        this.authorizations = Output.all(values)
    }

    /**
     * @param value The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string.
     */
    @JvmName("mubifevayvxwkcjy")
    public suspend fun createUiDefinition(`value`: Output) {
        this.createUiDefinition = value
    }

    /**
     * @param value The managed application deployment policy.
     */
    @JvmName("apblxednqhwopfix")
    public suspend fun deploymentPolicy(`value`: Output) {
        this.deploymentPolicy = value
    }

    /**
     * @param value The managed application definition description.
     */
    @JvmName("oochayeildoneotj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The managed application definition display name.
     */
    @JvmName("nmusicfknawurykt")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value A value indicating whether the package is enabled or not.
     */
    @JvmName("kwyiprjlwkhvvtkm")
    public suspend fun isEnabled(`value`: Output) {
        this.isEnabled = value
    }

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

    /**
     * @param value The managed application lock level.
     */
    @JvmName("huywomwebvbldivk")
    public suspend fun lockLevel(`value`: Output) {
        this.lockLevel = value
    }

    /**
     * @param value The managed application locking policy.
     */
    @JvmName("jidxxqcrwbgqswjp")
    public suspend fun lockingPolicy(`value`: Output) {
        this.lockingPolicy = value
    }

    /**
     * @param value The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string.
     */
    @JvmName("eltfbebfiktpddgk")
    public suspend fun mainTemplate(`value`: Output) {
        this.mainTemplate = value
    }

    /**
     * @param value ID of the resource that manages this resource.
     */
    @JvmName("aplrsoxpdbpcnyky")
    public suspend fun managedBy(`value`: Output) {
        this.managedBy = value
    }

    /**
     * @param value The managed application management policy that determines publisher's access to the managed resource group.
     */
    @JvmName("gewrrgqsoojhvamy")
    public suspend fun managementPolicy(`value`: Output) {
        this.managementPolicy = value
    }

    /**
     * @param value The managed application notification policy.
     */
    @JvmName("oelawygfnsguyaon")
    public suspend fun notificationPolicy(`value`: Output) {
        this.notificationPolicy = value
    }

    /**
     * @param value The managed application definition package file Uri. Use this element
     */
    @JvmName("kifphvdqwcurtgpp")
    public suspend fun packageFileUri(`value`: Output) {
        this.packageFileUri = value
    }

    /**
     * @param value The managed application provider policies.
     */
    @JvmName("yhioexmhiqawxawq")
    public suspend fun policies(`value`: Output>) {
        this.policies = value
    }

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

    /**
     * @param values The managed application provider policies.
     */
    @JvmName("fujwdbegjfsxgouq")
    public suspend fun policies(values: List>) {
        this.policies = Output.all(values)
    }

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

    /**
     * @param value The SKU of the resource.
     */
    @JvmName("gxfdtbyilkvwpwyo")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value The storage account id for bring your own storage scenario.
     */
    @JvmName("hepwykedmchmctfq")
    public suspend fun storageAccountId(`value`: Output) {
        this.storageAccountId = value
    }

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

    /**
     * @param value The name of the managed application definition.
     */
    @JvmName("ausrqroryvbvxmax")
    public suspend fun applicationDefinitionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationDefinitionName = mapped
    }

    /**
     * @param value The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
     */
    @JvmName("rfhestsfyegxdhyc")
    public suspend fun artifacts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.artifacts = mapped
    }

    /**
     * @param argument The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
     */
    @JvmName("xyybadeymwrqdbnv")
    public suspend fun artifacts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationDefinitionArtifactArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.artifacts = mapped
    }

    /**
     * @param argument The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
     */
    @JvmName("panvkjpcqfhnxkeh")
    public suspend fun artifacts(vararg argument: suspend ApplicationDefinitionArtifactArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationDefinitionArtifactArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.artifacts = mapped
    }

    /**
     * @param argument The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
     */
    @JvmName("vldnkagwsshkbcwa")
    public suspend fun artifacts(argument: suspend ApplicationDefinitionArtifactArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ApplicationDefinitionArtifactArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.artifacts = mapped
    }

    /**
     * @param values The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.
     */
    @JvmName("kpyufjbuayfkblch")
    public suspend fun artifacts(vararg values: ApplicationDefinitionArtifactArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.artifacts = mapped
    }

    /**
     * @param value The managed application provider authorizations.
     */
    @JvmName("ujicirmfcviwmuxi")
    public suspend fun authorizations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizations = mapped
    }

    /**
     * @param argument The managed application provider authorizations.
     */
    @JvmName("wujdkilqjjdcimxg")
    public suspend fun authorizations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationAuthorizationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.authorizations = mapped
    }

    /**
     * @param argument The managed application provider authorizations.
     */
    @JvmName("kycieuwclekvqmnh")
    public suspend fun authorizations(vararg argument: suspend ApplicationAuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationAuthorizationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.authorizations = mapped
    }

    /**
     * @param argument The managed application provider authorizations.
     */
    @JvmName("xhqnlhnexooeowda")
    public suspend fun authorizations(argument: suspend ApplicationAuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ApplicationAuthorizationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.authorizations = mapped
    }

    /**
     * @param values The managed application provider authorizations.
     */
    @JvmName("dcvbujkvkyyhmluw")
    public suspend fun authorizations(vararg values: ApplicationAuthorizationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authorizations = mapped
    }

    /**
     * @param value The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string.
     */
    @JvmName("bqqrgptiqjtriwxq")
    public suspend fun createUiDefinition(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createUiDefinition = mapped
    }

    /**
     * @param value The managed application deployment policy.
     */
    @JvmName("pumpqjuojyapmrrj")
    public suspend fun deploymentPolicy(`value`: ApplicationDeploymentPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deploymentPolicy = mapped
    }

    /**
     * @param argument The managed application deployment policy.
     */
    @JvmName("wjpusxtjygtryqjy")
    public suspend fun deploymentPolicy(argument: suspend ApplicationDeploymentPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationDeploymentPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.deploymentPolicy = mapped
    }

    /**
     * @param value The managed application definition description.
     */
    @JvmName("yyeeouufaagydlet")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The managed application definition display name.
     */
    @JvmName("mifpmdafmgyksuxu")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value A value indicating whether the package is enabled or not.
     */
    @JvmName("sdjswuimjnryxhjm")
    public suspend fun isEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isEnabled = mapped
    }

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

    /**
     * @param value The managed application lock level.
     */
    @JvmName("iwimkcfppsgyybkn")
    public suspend fun lockLevel(`value`: ApplicationLockLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lockLevel = mapped
    }

    /**
     * @param value The managed application locking policy.
     */
    @JvmName("sbwinjifcnsrulmo")
    public suspend fun lockingPolicy(`value`: ApplicationPackageLockingPolicyDefinitionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lockingPolicy = mapped
    }

    /**
     * @param argument The managed application locking policy.
     */
    @JvmName("oxkqcrwmpbavmydq")
    public suspend fun lockingPolicy(argument: suspend ApplicationPackageLockingPolicyDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationPackageLockingPolicyDefinitionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.lockingPolicy = mapped
    }

    /**
     * @param value The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string.
     */
    @JvmName("ktgaijpihchrbhug")
    public suspend fun mainTemplate(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainTemplate = mapped
    }

    /**
     * @param value ID of the resource that manages this resource.
     */
    @JvmName("uyfoofvktofvpaka")
    public suspend fun managedBy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedBy = mapped
    }

    /**
     * @param value The managed application management policy that determines publisher's access to the managed resource group.
     */
    @JvmName("dimxryvtbofsdtca")
    public suspend fun managementPolicy(`value`: ApplicationManagementPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managementPolicy = mapped
    }

    /**
     * @param argument The managed application management policy that determines publisher's access to the managed resource group.
     */
    @JvmName("eykolkehkvfvgvii")
    public suspend fun managementPolicy(argument: suspend ApplicationManagementPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationManagementPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.managementPolicy = mapped
    }

    /**
     * @param value The managed application notification policy.
     */
    @JvmName("tyolbbxojwtapuyp")
    public suspend fun notificationPolicy(`value`: ApplicationNotificationPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationPolicy = mapped
    }

    /**
     * @param argument The managed application notification policy.
     */
    @JvmName("bpfuhkvvoepjvagv")
    public suspend fun notificationPolicy(argument: suspend ApplicationNotificationPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationNotificationPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.notificationPolicy = mapped
    }

    /**
     * @param value The managed application definition package file Uri. Use this element
     */
    @JvmName("wuagbjnyoqmrdanq")
    public suspend fun packageFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.packageFileUri = mapped
    }

    /**
     * @param value The managed application provider policies.
     */
    @JvmName("rguctekairxdiula")
    public suspend fun policies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policies = mapped
    }

    /**
     * @param argument The managed application provider policies.
     */
    @JvmName("nvdgefqclbuwwgdh")
    public suspend fun policies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationPolicyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.policies = mapped
    }

    /**
     * @param argument The managed application provider policies.
     */
    @JvmName("akdhhrqnchqyexjv")
    public suspend fun policies(vararg argument: suspend ApplicationPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationPolicyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.policies = mapped
    }

    /**
     * @param argument The managed application provider policies.
     */
    @JvmName("akkfcyxqacbuedyd")
    public suspend fun policies(argument: suspend ApplicationPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ApplicationPolicyArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.policies = mapped
    }

    /**
     * @param values The managed application provider policies.
     */
    @JvmName("cfqqoihqqjjjqfdc")
    public suspend fun policies(vararg values: ApplicationPolicyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policies = mapped
    }

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

    /**
     * @param value The SKU of the resource.
     */
    @JvmName("qrdeflfiocdvbasd")
    public suspend fun sku(`value`: SkuArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param argument The SKU of the resource.
     */
    @JvmName("vouvdqyxojdpexrj")
    public suspend fun sku(argument: suspend SkuArgsBuilder.() -> Unit) {
        val toBeMapped = SkuArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sku = mapped
    }

    /**
     * @param value The storage account id for bring your own storage scenario.
     */
    @JvmName("nmvyimegipbutujd")
    public suspend fun storageAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccountId = mapped
    }

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

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

    internal fun build(): ApplicationDefinitionArgs = ApplicationDefinitionArgs(
        applicationDefinitionName = applicationDefinitionName,
        artifacts = artifacts,
        authorizations = authorizations,
        createUiDefinition = createUiDefinition,
        deploymentPolicy = deploymentPolicy,
        description = description,
        displayName = displayName,
        isEnabled = isEnabled,
        location = location,
        lockLevel = lockLevel,
        lockingPolicy = lockingPolicy,
        mainTemplate = mainTemplate,
        managedBy = managedBy,
        managementPolicy = managementPolicy,
        notificationPolicy = notificationPolicy,
        packageFileUri = packageFileUri,
        policies = policies,
        resourceGroupName = resourceGroupName,
        sku = sku,
        storageAccountId = storageAccountId,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy