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

com.pulumi.azurenative.videoanalyzer.kotlin.VideoAnalyzerArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.videoanalyzer.kotlin

import com.pulumi.azurenative.videoanalyzer.VideoAnalyzerArgs.builder
import com.pulumi.azurenative.videoanalyzer.kotlin.enums.PublicNetworkAccess
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.AccountEncryptionArgs
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.AccountEncryptionArgsBuilder
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.IotHubArgs
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.IotHubArgsBuilder
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.NetworkAccessControlArgs
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.NetworkAccessControlArgsBuilder
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.StorageAccountArgs
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.StorageAccountArgsBuilder
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.VideoAnalyzerIdentityArgs
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.VideoAnalyzerIdentityArgsBuilder
import com.pulumi.core.Either
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

/**
 * The Video Analyzer account.
 * Azure REST API version: 2021-11-01-preview. Prior API version in Azure Native 1.x: 2021-05-01-preview.
 * Other available API versions: 2021-05-01-preview.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:videoanalyzer:VideoAnalyzer contosomovies /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/videoAnalyzers/{accountName}
 * ```
 * @property accountName The Video Analyzer account name.
 * @property encryption The account encryption properties.
 * @property identity The identities associated to the Video Analyzer resource.
 * @property iotHubs The IoT Hubs for this resource.
 * @property location The geo-location where the resource lives
 * @property networkAccessControl Network access control for Video Analyzer.
 * @property publicNetworkAccess Whether or not public network access is allowed for resources under the Video Analyzer account.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property storageAccounts The storage accounts for this resource.
 * @property tags Resource tags.
 */
public data class VideoAnalyzerArgs(
    public val accountName: Output? = null,
    public val encryption: Output? = null,
    public val identity: Output? = null,
    public val iotHubs: Output>? = null,
    public val location: Output? = null,
    public val networkAccessControl: Output? = null,
    public val publicNetworkAccess: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val storageAccounts: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.videoanalyzer.VideoAnalyzerArgs =
        com.pulumi.azurenative.videoanalyzer.VideoAnalyzerArgs.builder()
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .iotHubs(
                iotHubs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .networkAccessControl(
                networkAccessControl?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .publicNetworkAccess(
                publicNetworkAccess?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .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 [VideoAnalyzerArgs].
 */
@PulumiTagMarker
public class VideoAnalyzerArgsBuilder internal constructor() {
    private var accountName: Output? = null

    private var encryption: Output? = null

    private var identity: Output? = null

    private var iotHubs: Output>? = null

    private var location: Output? = null

    private var networkAccessControl: Output? = null

    private var publicNetworkAccess: Output>? = null

    private var resourceGroupName: Output? = null

    private var storageAccounts: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The Video Analyzer account name.
     */
    @JvmName("pamducaxpkekxhuh")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value The account encryption properties.
     */
    @JvmName("elawsnjqysxwcovh")
    public suspend fun encryption(`value`: Output) {
        this.encryption = value
    }

    /**
     * @param value The identities associated to the Video Analyzer resource.
     */
    @JvmName("qnixbarlqfouaumv")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The IoT Hubs for this resource.
     */
    @JvmName("kiltqkdcasdxrsfx")
    public suspend fun iotHubs(`value`: Output>) {
        this.iotHubs = value
    }

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

    /**
     * @param values The IoT Hubs for this resource.
     */
    @JvmName("ywkmqhvvhmqjusjy")
    public suspend fun iotHubs(values: List>) {
        this.iotHubs = Output.all(values)
    }

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

    /**
     * @param value Network access control for Video Analyzer.
     */
    @JvmName("ngkuaxivjcewakur")
    public suspend fun networkAccessControl(`value`: Output) {
        this.networkAccessControl = value
    }

    /**
     * @param value Whether or not public network access is allowed for resources under the Video Analyzer account.
     */
    @JvmName("ujouybonecgoyfln")
    public suspend fun publicNetworkAccess(`value`: Output>) {
        this.publicNetworkAccess = value
    }

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

    /**
     * @param value The storage accounts for this resource.
     */
    @JvmName("ttjinpmbaevxpgdh")
    public suspend fun storageAccounts(`value`: Output>) {
        this.storageAccounts = value
    }

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

    /**
     * @param values The storage accounts for this resource.
     */
    @JvmName("rymfqgjpvxuupuqv")
    public suspend fun storageAccounts(values: List>) {
        this.storageAccounts = Output.all(values)
    }

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

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

    /**
     * @param value The account encryption properties.
     */
    @JvmName("ikybdvfcihufyfhh")
    public suspend fun encryption(`value`: AccountEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryption = mapped
    }

    /**
     * @param argument The account encryption properties.
     */
    @JvmName("vsxohhodmvwbdeul")
    public suspend fun encryption(argument: suspend AccountEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = AccountEncryptionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryption = mapped
    }

    /**
     * @param value The identities associated to the Video Analyzer resource.
     */
    @JvmName("xngemajybcrhckql")
    public suspend fun identity(`value`: VideoAnalyzerIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The identities associated to the Video Analyzer resource.
     */
    @JvmName("tbecyrbadccfptkm")
    public suspend fun identity(argument: suspend VideoAnalyzerIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = VideoAnalyzerIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The IoT Hubs for this resource.
     */
    @JvmName("gdjrixgaeiagwuxg")
    public suspend fun iotHubs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iotHubs = mapped
    }

    /**
     * @param argument The IoT Hubs for this resource.
     */
    @JvmName("ilmxgfkvrpmogilw")
    public suspend fun iotHubs(argument: List Unit>) {
        val toBeMapped = argument.toList().map { IotHubArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.iotHubs = mapped
    }

    /**
     * @param argument The IoT Hubs for this resource.
     */
    @JvmName("wyafwidatrcmmdnj")
    public suspend fun iotHubs(vararg argument: suspend IotHubArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { IotHubArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.iotHubs = mapped
    }

    /**
     * @param argument The IoT Hubs for this resource.
     */
    @JvmName("keglheqgmacsuxnr")
    public suspend fun iotHubs(argument: suspend IotHubArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IotHubArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.iotHubs = mapped
    }

    /**
     * @param values The IoT Hubs for this resource.
     */
    @JvmName("wmxxpbuusmlbuaun")
    public suspend fun iotHubs(vararg values: IotHubArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.iotHubs = mapped
    }

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

    /**
     * @param value Network access control for Video Analyzer.
     */
    @JvmName("pngengpebhijbvnp")
    public suspend fun networkAccessControl(`value`: NetworkAccessControlArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkAccessControl = mapped
    }

    /**
     * @param argument Network access control for Video Analyzer.
     */
    @JvmName("ytuvjqxglkeulnwx")
    public suspend fun networkAccessControl(argument: suspend NetworkAccessControlArgsBuilder.() -> Unit) {
        val toBeMapped = NetworkAccessControlArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkAccessControl = mapped
    }

    /**
     * @param value Whether or not public network access is allowed for resources under the Video Analyzer account.
     */
    @JvmName("vbmqpnwgddgvppdr")
    public suspend fun publicNetworkAccess(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Whether or not public network access is allowed for resources under the Video Analyzer account.
     */
    @JvmName("knupoevcyolorkch")
    public fun publicNetworkAccess(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Whether or not public network access is allowed for resources under the Video Analyzer account.
     */
    @JvmName("hybjnvjcgeaedpbj")
    public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

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

    /**
     * @param value The storage accounts for this resource.
     */
    @JvmName("sdiqsejpuimjqmyg")
    public suspend fun storageAccounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccounts = mapped
    }

    /**
     * @param argument The storage accounts for this resource.
     */
    @JvmName("yigifonhxgijaikn")
    public suspend fun storageAccounts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StorageAccountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param argument The storage accounts for this resource.
     */
    @JvmName("medsmwtdcyjblfiu")
    public suspend fun storageAccounts(vararg argument: suspend StorageAccountArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StorageAccountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param argument The storage accounts for this resource.
     */
    @JvmName("tbnthtylfxnihtib")
    public suspend fun storageAccounts(argument: suspend StorageAccountArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(StorageAccountArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param values The storage accounts for this resource.
     */
    @JvmName("dusjcledycuynhng")
    public suspend fun storageAccounts(vararg values: StorageAccountArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageAccounts = mapped
    }

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

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

    internal fun build(): VideoAnalyzerArgs = VideoAnalyzerArgs(
        accountName = accountName,
        encryption = encryption,
        identity = identity,
        iotHubs = iotHubs,
        location = location,
        networkAccessControl = networkAccessControl,
        publicNetworkAccess = publicNetworkAccess,
        resourceGroupName = resourceGroupName,
        storageAccounts = storageAccounts,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy