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

com.pulumi.azurenative.network.kotlin.inputs.GetBastionShareableLinkPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.GetBastionShareableLinkPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property bastionHostName The name of the Bastion Host.
 * @property resourceGroupName The name of the resource group.
 * @property vms List of VM references.
 */
public data class GetBastionShareableLinkPlainArgs(
    public val bastionHostName: String,
    public val resourceGroupName: String,
    public val vms: List? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.GetBastionShareableLinkPlainArgs =
        com.pulumi.azurenative.network.inputs.GetBastionShareableLinkPlainArgs.builder()
            .bastionHostName(bastionHostName.let({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName.let({ args0 -> args0 }))
            .vms(vms?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) })).build()
}

/**
 * Builder for [GetBastionShareableLinkPlainArgs].
 */
@PulumiTagMarker
public class GetBastionShareableLinkPlainArgsBuilder internal constructor() {
    private var bastionHostName: String? = null

    private var resourceGroupName: String? = null

    private var vms: List? = null

    /**
     * @param value The name of the Bastion Host.
     */
    @JvmName("cvrxcxayjbbvlqbs")
    public suspend fun bastionHostName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.bastionHostName = mapped
    }

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

    /**
     * @param value List of VM references.
     */
    @JvmName("rcoqbsapwmigrjab")
    public suspend fun vms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.vms = mapped
    }

    /**
     * @param argument List of VM references.
     */
    @JvmName("qqtxcwrcfwgowtre")
    public suspend fun vms(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BastionShareableLinkBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.vms = mapped
    }

    /**
     * @param argument List of VM references.
     */
    @JvmName("ratfmikkecjlyyaq")
    public suspend fun vms(vararg argument: suspend BastionShareableLinkBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BastionShareableLinkBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.vms = mapped
    }

    /**
     * @param argument List of VM references.
     */
    @JvmName("mnmkttaveuhqyypo")
    public suspend fun vms(argument: suspend BastionShareableLinkBuilder.() -> Unit) {
        val toBeMapped = listOf(BastionShareableLinkBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.vms = mapped
    }

    /**
     * @param values List of VM references.
     */
    @JvmName("hchxlbmtjxtujelw")
    public suspend fun vms(vararg values: BastionShareableLink) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.vms = mapped
    }

    internal fun build(): GetBastionShareableLinkPlainArgs = GetBastionShareableLinkPlainArgs(
        bastionHostName = bastionHostName ?: throw PulumiNullFieldException("bastionHostName"),
        resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
        vms = vms,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy