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

com.pulumi.azurenative.loadtestservice.kotlin.LoadTestArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.loadtestservice.kotlin

import com.pulumi.azurenative.loadtestservice.LoadTestArgs.builder
import com.pulumi.azurenative.loadtestservice.kotlin.inputs.EncryptionPropertiesArgs
import com.pulumi.azurenative.loadtestservice.kotlin.inputs.EncryptionPropertiesArgsBuilder
import com.pulumi.azurenative.loadtestservice.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.loadtestservice.kotlin.inputs.ManagedServiceIdentityArgsBuilder
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.Map
import kotlin.jvm.JvmName

/**
 * LoadTest details.
 * Azure REST API version: 2022-12-01. Prior API version in Azure Native 1.x: 2021-12-01-preview.
 * Other available API versions: 2021-12-01-preview, 2023-12-01-preview.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:loadtestservice:LoadTest myLoadTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
 * ```
 * @property description Description of the resource.
 * @property encryption CMK Encryption property.
 * @property identity The managed service identities assigned to this resource.
 * @property loadTestName Load Test name
 * @property location The geo-location where the resource lives
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property tags Resource tags.
 */
public data class LoadTestArgs(
    public val description: Output? = null,
    public val encryption: Output? = null,
    public val identity: Output? = null,
    public val loadTestName: Output? = null,
    public val location: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.loadtestservice.LoadTestArgs =
        com.pulumi.azurenative.loadtestservice.LoadTestArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .loadTestName(loadTestName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [LoadTestArgs].
 */
@PulumiTagMarker
public class LoadTestArgsBuilder internal constructor() {
    private var description: Output? = null

    private var encryption: Output? = null

    private var identity: Output? = null

    private var loadTestName: Output? = null

    private var location: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Description of the resource.
     */
    @JvmName("wmbcukmxuwysbqet")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value CMK Encryption property.
     */
    @JvmName("vmuddlxovwiufahs")
    public suspend fun encryption(`value`: Output) {
        this.encryption = value
    }

    /**
     * @param value The managed service identities assigned to this resource.
     */
    @JvmName("ihfiacqqwhnwswls")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Load Test name
     */
    @JvmName("drynacrcmawuxswv")
    public suspend fun loadTestName(`value`: Output) {
        this.loadTestName = value
    }

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

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

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

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

    /**
     * @param value CMK Encryption property.
     */
    @JvmName("ydjyyrbtdqfmohfi")
    public suspend fun encryption(`value`: EncryptionPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryption = mapped
    }

    /**
     * @param argument CMK Encryption property.
     */
    @JvmName("pciqpfmqtajvgmdq")
    public suspend fun encryption(argument: suspend EncryptionPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = EncryptionPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryption = mapped
    }

    /**
     * @param value The managed service identities assigned to this resource.
     */
    @JvmName("yqreeaimhgwbrkyp")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The managed service identities assigned to this resource.
     */
    @JvmName("skusyendmxyriumw")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value Load Test name
     */
    @JvmName("ffxcmhrbutkhcdhu")
    public suspend fun loadTestName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadTestName = mapped
    }

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

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

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

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

    internal fun build(): LoadTestArgs = LoadTestArgs(
        description = description,
        encryption = encryption,
        identity = identity,
        loadTestName = loadTestName,
        location = location,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy