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

com.pulumi.azurenative.testbase.kotlin.inputs.DraftPackageIntuneAppMetadataItemArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.testbase.kotlin.inputs

import com.pulumi.azurenative.testbase.inputs.DraftPackageIntuneAppMetadataItemArgs.builder
import com.pulumi.azurenative.testbase.kotlin.enums.IntuneExtractStatus
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 kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The Metadata of a single Intune App.
 * @property appId Intune app id.
 * @property appName Intune app name.
 * @property createDate Creation date of the app.
 * @property dependencyIds Ids of dependency apps.
 * @property dependentAppCount Count of dependency apps.
 * @property description Description of the app.
 * @property expectedExitCodes Expected exit codes returned from Intune App.
 * @property installCommand Install command.
 * @property lastProcessed last processed time tickets.
 * @property minimumSupportedOS Minimum supported OS. The OS version must be greater than this version to run this app.
 * @property owner Owner of the app.
 * @property publisher Publisher of the app.
 * @property setupFile Setup file path.
 * @property status Extract status.
 * @property uninstallCommand Uninstall command.
 * @property version Intune app version.
 */
public data class DraftPackageIntuneAppMetadataItemArgs(
    public val appId: Output? = null,
    public val appName: Output? = null,
    public val createDate: Output? = null,
    public val dependencyIds: Output>? = null,
    public val dependentAppCount: Output? = null,
    public val description: Output? = null,
    public val expectedExitCodes: Output>? = null,
    public val installCommand: Output? = null,
    public val lastProcessed: Output? = null,
    public val minimumSupportedOS: Output? = null,
    public val owner: Output? = null,
    public val publisher: Output? = null,
    public val setupFile: Output? = null,
    public val status: Output>? = null,
    public val uninstallCommand: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.testbase.inputs.DraftPackageIntuneAppMetadataItemArgs =
        com.pulumi.azurenative.testbase.inputs.DraftPackageIntuneAppMetadataItemArgs.builder()
            .appId(appId?.applyValue({ args0 -> args0 }))
            .appName(appName?.applyValue({ args0 -> args0 }))
            .createDate(createDate?.applyValue({ args0 -> args0 }))
            .dependencyIds(dependencyIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .dependentAppCount(dependentAppCount?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .expectedExitCodes(expectedExitCodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .installCommand(installCommand?.applyValue({ args0 -> args0 }))
            .lastProcessed(lastProcessed?.applyValue({ args0 -> args0 }))
            .minimumSupportedOS(minimumSupportedOS?.applyValue({ args0 -> args0 }))
            .owner(owner?.applyValue({ args0 -> args0 }))
            .publisher(publisher?.applyValue({ args0 -> args0 }))
            .setupFile(setupFile?.applyValue({ args0 -> args0 }))
            .status(
                status?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .uninstallCommand(uninstallCommand?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DraftPackageIntuneAppMetadataItemArgs].
 */
@PulumiTagMarker
public class DraftPackageIntuneAppMetadataItemArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var appName: Output? = null

    private var createDate: Output? = null

    private var dependencyIds: Output>? = null

    private var dependentAppCount: Output? = null

    private var description: Output? = null

    private var expectedExitCodes: Output>? = null

    private var installCommand: Output? = null

    private var lastProcessed: Output? = null

    private var minimumSupportedOS: Output? = null

    private var owner: Output? = null

    private var publisher: Output? = null

    private var setupFile: Output? = null

    private var status: Output>? = null

    private var uninstallCommand: Output? = null

    private var version: Output? = null

    /**
     * @param value Intune app id.
     */
    @JvmName("rkmqcdojekwtaeyc")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value Intune app name.
     */
    @JvmName("lonbjviltiebjnxa")
    public suspend fun appName(`value`: Output) {
        this.appName = value
    }

    /**
     * @param value Creation date of the app.
     */
    @JvmName("npualympvsrelioh")
    public suspend fun createDate(`value`: Output) {
        this.createDate = value
    }

    /**
     * @param value Ids of dependency apps.
     */
    @JvmName("tvrlshhfipebxauv")
    public suspend fun dependencyIds(`value`: Output>) {
        this.dependencyIds = value
    }

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

    /**
     * @param values Ids of dependency apps.
     */
    @JvmName("ntusroatyxwqeiee")
    public suspend fun dependencyIds(values: List>) {
        this.dependencyIds = Output.all(values)
    }

    /**
     * @param value Count of dependency apps.
     */
    @JvmName("avnltxorfwugvbor")
    public suspend fun dependentAppCount(`value`: Output) {
        this.dependentAppCount = value
    }

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

    /**
     * @param value Expected exit codes returned from Intune App.
     */
    @JvmName("lvurjmwuxcquebua")
    public suspend fun expectedExitCodes(`value`: Output>) {
        this.expectedExitCodes = value
    }

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

    /**
     * @param values Expected exit codes returned from Intune App.
     */
    @JvmName("pwkknsewgnoibaya")
    public suspend fun expectedExitCodes(values: List>) {
        this.expectedExitCodes = Output.all(values)
    }

    /**
     * @param value Install command.
     */
    @JvmName("souhmpfhbpdbntey")
    public suspend fun installCommand(`value`: Output) {
        this.installCommand = value
    }

    /**
     * @param value last processed time tickets.
     */
    @JvmName("leshxlmnkckvmxno")
    public suspend fun lastProcessed(`value`: Output) {
        this.lastProcessed = value
    }

    /**
     * @param value Minimum supported OS. The OS version must be greater than this version to run this app.
     */
    @JvmName("fnnurxbvjkockuhs")
    public suspend fun minimumSupportedOS(`value`: Output) {
        this.minimumSupportedOS = value
    }

    /**
     * @param value Owner of the app.
     */
    @JvmName("nrswkplemssxjoyt")
    public suspend fun owner(`value`: Output) {
        this.owner = value
    }

    /**
     * @param value Publisher of the app.
     */
    @JvmName("ujohuppqkjovwwrv")
    public suspend fun publisher(`value`: Output) {
        this.publisher = value
    }

    /**
     * @param value Setup file path.
     */
    @JvmName("ysouftojyxkoxwel")
    public suspend fun setupFile(`value`: Output) {
        this.setupFile = value
    }

    /**
     * @param value Extract status.
     */
    @JvmName("sgkhbahjiralntll")
    public suspend fun status(`value`: Output>) {
        this.status = value
    }

    /**
     * @param value Uninstall command.
     */
    @JvmName("yifrudukvcgknhtj")
    public suspend fun uninstallCommand(`value`: Output) {
        this.uninstallCommand = value
    }

    /**
     * @param value Intune app version.
     */
    @JvmName("hxejbhsvgfyrtrut")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Intune app id.
     */
    @JvmName("hbibwjggimnbsrxt")
    public suspend fun appId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value Intune app name.
     */
    @JvmName("nbvtqijevjulkvjb")
    public suspend fun appName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appName = mapped
    }

    /**
     * @param value Creation date of the app.
     */
    @JvmName("mdldtrmscjfwrsrr")
    public suspend fun createDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createDate = mapped
    }

    /**
     * @param value Ids of dependency apps.
     */
    @JvmName("dndplaaxufnxvorx")
    public suspend fun dependencyIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dependencyIds = mapped
    }

    /**
     * @param values Ids of dependency apps.
     */
    @JvmName("vvshnulkvwctitus")
    public suspend fun dependencyIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dependencyIds = mapped
    }

    /**
     * @param value Count of dependency apps.
     */
    @JvmName("lorynlwtkjkdydjs")
    public suspend fun dependentAppCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dependentAppCount = mapped
    }

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

    /**
     * @param value Expected exit codes returned from Intune App.
     */
    @JvmName("hnycaarkypqppvwo")
    public suspend fun expectedExitCodes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expectedExitCodes = mapped
    }

    /**
     * @param values Expected exit codes returned from Intune App.
     */
    @JvmName("tcnhcsfgxjjyiiyx")
    public suspend fun expectedExitCodes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.expectedExitCodes = mapped
    }

    /**
     * @param value Install command.
     */
    @JvmName("uxkqdbgtxllowlox")
    public suspend fun installCommand(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.installCommand = mapped
    }

    /**
     * @param value last processed time tickets.
     */
    @JvmName("agfgrcasxoqjnnut")
    public suspend fun lastProcessed(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastProcessed = mapped
    }

    /**
     * @param value Minimum supported OS. The OS version must be greater than this version to run this app.
     */
    @JvmName("fqqihtlmpwhyfdbh")
    public suspend fun minimumSupportedOS(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumSupportedOS = mapped
    }

    /**
     * @param value Owner of the app.
     */
    @JvmName("hiriwmtlnggoamqk")
    public suspend fun owner(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.owner = mapped
    }

    /**
     * @param value Publisher of the app.
     */
    @JvmName("hprpsgvllkkfovhn")
    public suspend fun publisher(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publisher = mapped
    }

    /**
     * @param value Setup file path.
     */
    @JvmName("lhialopobjwyplyy")
    public suspend fun setupFile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.setupFile = mapped
    }

    /**
     * @param value Extract status.
     */
    @JvmName("buyswsgymsvkrmrq")
    public suspend fun status(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Extract status.
     */
    @JvmName("dlljgaqynbnetrsp")
    public fun status(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Extract status.
     */
    @JvmName("jijbfnulbbqcoykj")
    public fun status(`value`: IntuneExtractStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Uninstall command.
     */
    @JvmName("vuqlmxnididjfhou")
    public suspend fun uninstallCommand(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uninstallCommand = mapped
    }

    /**
     * @param value Intune app version.
     */
    @JvmName("yqgrtihafpejdnpk")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): DraftPackageIntuneAppMetadataItemArgs =
        DraftPackageIntuneAppMetadataItemArgs(
            appId = appId,
            appName = appName,
            createDate = createDate,
            dependencyIds = dependencyIds,
            dependentAppCount = dependentAppCount,
            description = description,
            expectedExitCodes = expectedExitCodes,
            installCommand = installCommand,
            lastProcessed = lastProcessed,
            minimumSupportedOS = minimumSupportedOS,
            owner = owner,
            publisher = publisher,
            setupFile = setupFile,
            status = status,
            uninstallCommand = uninstallCommand,
            version = version,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy