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

com.pulumi.azurenative.healthdataaiservices.kotlin.DeidServiceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.healthdataaiservices.kotlin

import com.pulumi.azurenative.healthdataaiservices.DeidServiceArgs.builder
import com.pulumi.azurenative.healthdataaiservices.kotlin.inputs.DeidServicePropertiesArgs
import com.pulumi.azurenative.healthdataaiservices.kotlin.inputs.DeidServicePropertiesArgsBuilder
import com.pulumi.azurenative.healthdataaiservices.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.healthdataaiservices.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

/**
 * A HealthDataAIServicesProviderHub resource
 * Azure REST API version: 2024-02-28-preview.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:healthdataaiservices:DeidService nlrthrxaukih /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}
 * ```
 * @property deidServiceName The name of the deid service
 * @property identity The managed service identities assigned to this resource.
 * @property location The geo-location where the resource lives
 * @property properties The resource-specific properties for this resource.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property tags Resource tags.
 */
public data class DeidServiceArgs(
    public val deidServiceName: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val properties: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.healthdataaiservices.DeidServiceArgs =
        com.pulumi.azurenative.healthdataaiservices.DeidServiceArgs.builder()
            .deidServiceName(deidServiceName?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .properties(properties?.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()
                }),
            ).build()
}

/**
 * Builder for [DeidServiceArgs].
 */
@PulumiTagMarker
public class DeidServiceArgsBuilder internal constructor() {
    private var deidServiceName: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var properties: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the deid service
     */
    @JvmName("efhaglfespuccycc")
    public suspend fun deidServiceName(`value`: Output) {
        this.deidServiceName = value
    }

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

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

    /**
     * @param value The resource-specific properties for this resource.
     */
    @JvmName("goveqevqnghnwyfj")
    public suspend fun properties(`value`: Output) {
        this.properties = value
    }

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

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

    /**
     * @param value The name of the deid service
     */
    @JvmName("rswudcguuapshwrf")
    public suspend fun deidServiceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deidServiceName = mapped
    }

    /**
     * @param value The managed service identities assigned to this resource.
     */
    @JvmName("tywsqfpekpetqtpr")
    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("uabwbqwlmogiwldx")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

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

    /**
     * @param value The resource-specific properties for this resource.
     */
    @JvmName("jcmirrjpjdxssjma")
    public suspend fun properties(`value`: DeidServicePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument The resource-specific properties for this resource.
     */
    @JvmName("xylqodijvjwimcxb")
    public suspend fun properties(argument: suspend DeidServicePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = DeidServicePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

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

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

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

    internal fun build(): DeidServiceArgs = DeidServiceArgs(
        deidServiceName = deidServiceName,
        identity = identity,
        location = location,
        properties = properties,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy