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

com.pulumi.azurenative.desktopvirtualization.kotlin.inputs.AppAttachPackagePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.desktopvirtualization.kotlin.inputs

import com.pulumi.azurenative.desktopvirtualization.inputs.AppAttachPackagePropertiesArgs.builder
import com.pulumi.azurenative.desktopvirtualization.kotlin.enums.FailHealthCheckOnStagingFailure
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Schema for App Attach Package properties.
 * @property failHealthCheckOnStagingFailure Parameter indicating how the health check should behave if this package fails staging
 * @property hostPoolReferences List of Hostpool resource Ids.
 * @property image Detailed properties for App Attach Package
 * @property keyVaultURL URL of keyvault location to store certificate
 */
public data class AppAttachPackagePropertiesArgs(
    public val failHealthCheckOnStagingFailure: Output>? = null,
    public val hostPoolReferences: Output>? = null,
    public val image: Output? = null,
    public val keyVaultURL: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.desktopvirtualization.inputs.AppAttachPackagePropertiesArgs =
        com.pulumi.azurenative.desktopvirtualization.inputs.AppAttachPackagePropertiesArgs.builder()
            .failHealthCheckOnStagingFailure(
                failHealthCheckOnStagingFailure?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .hostPoolReferences(hostPoolReferences?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .image(image?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyVaultURL(keyVaultURL?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppAttachPackagePropertiesArgs].
 */
@PulumiTagMarker
public class AppAttachPackagePropertiesArgsBuilder internal constructor() {
    private var failHealthCheckOnStagingFailure:
        Output>? = null

    private var hostPoolReferences: Output>? = null

    private var image: Output? = null

    private var keyVaultURL: Output? = null

    /**
     * @param value Parameter indicating how the health check should behave if this package fails staging
     */
    @JvmName("fqgrebgyrwurxsjq")
    public suspend fun failHealthCheckOnStagingFailure(`value`: Output>) {
        this.failHealthCheckOnStagingFailure = value
    }

    /**
     * @param value List of Hostpool resource Ids.
     */
    @JvmName("kimwjdjtcfyxkyre")
    public suspend fun hostPoolReferences(`value`: Output>) {
        this.hostPoolReferences = value
    }

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

    /**
     * @param values List of Hostpool resource Ids.
     */
    @JvmName("pjxlsolfjbofhkpk")
    public suspend fun hostPoolReferences(values: List>) {
        this.hostPoolReferences = Output.all(values)
    }

    /**
     * @param value Detailed properties for App Attach Package
     */
    @JvmName("kklkccyngekvqdmw")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value URL of keyvault location to store certificate
     */
    @JvmName("nsndqevswkjkjpvl")
    public suspend fun keyVaultURL(`value`: Output) {
        this.keyVaultURL = value
    }

    /**
     * @param value Parameter indicating how the health check should behave if this package fails staging
     */
    @JvmName("snlwqovbaryeluer")
    public suspend fun failHealthCheckOnStagingFailure(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failHealthCheckOnStagingFailure = mapped
    }

    /**
     * @param value Parameter indicating how the health check should behave if this package fails staging
     */
    @JvmName("xpnycwbfcnlxoghq")
    public fun failHealthCheckOnStagingFailure(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failHealthCheckOnStagingFailure = mapped
    }

    /**
     * @param value Parameter indicating how the health check should behave if this package fails staging
     */
    @JvmName("konladexwfpucweg")
    public fun failHealthCheckOnStagingFailure(`value`: FailHealthCheckOnStagingFailure) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failHealthCheckOnStagingFailure = mapped
    }

    /**
     * @param value List of Hostpool resource Ids.
     */
    @JvmName("jdyysuylqphhfdbs")
    public suspend fun hostPoolReferences(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostPoolReferences = mapped
    }

    /**
     * @param values List of Hostpool resource Ids.
     */
    @JvmName("slmclyelnnqxesac")
    public suspend fun hostPoolReferences(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostPoolReferences = mapped
    }

    /**
     * @param value Detailed properties for App Attach Package
     */
    @JvmName("innitjyvkkabaxbg")
    public suspend fun image(`value`: AppAttachPackageInfoPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param argument Detailed properties for App Attach Package
     */
    @JvmName("kfrrtmoilvlcnrfa")
    public suspend fun image(argument: suspend AppAttachPackageInfoPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = AppAttachPackageInfoPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.image = mapped
    }

    /**
     * @param value URL of keyvault location to store certificate
     */
    @JvmName("ewvmtskmirgarrrb")
    public suspend fun keyVaultURL(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyVaultURL = mapped
    }

    internal fun build(): AppAttachPackagePropertiesArgs = AppAttachPackagePropertiesArgs(
        failHealthCheckOnStagingFailure = failHealthCheckOnStagingFailure,
        hostPoolReferences = hostPoolReferences,
        image = image,
        keyVaultURL = keyVaultURL,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy