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

com.pulumi.azurenative.migrate.kotlin.inputs.OperatingSystemDetailsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.OperatingSystemDetailsArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.OperatingSystemType
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property os
 * @property osArchitecture
 * @property osName
 * @property osVersion
 */
public data class OperatingSystemDetailsArgs(
    public val os: Output>? = null,
    public val osArchitecture: Output? = null,
    public val osName: Output? = null,
    public val osVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.OperatingSystemDetailsArgs =
        com.pulumi.azurenative.migrate.inputs.OperatingSystemDetailsArgs.builder()
            .os(
                os?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .osArchitecture(osArchitecture?.applyValue({ args0 -> args0 }))
            .osName(osName?.applyValue({ args0 -> args0 }))
            .osVersion(osVersion?.applyValue({ args0 -> args0 })).build()
}

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

    private var osArchitecture: Output? = null

    private var osName: Output? = null

    private var osVersion: Output? = null

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

    /**
     * @param value
     */
    @JvmName("jptjyfqscexcfggu")
    public suspend fun osArchitecture(`value`: Output) {
        this.osArchitecture = value
    }

    /**
     * @param value
     */
    @JvmName("sfjtxaydpfwvflki")
    public suspend fun osName(`value`: Output) {
        this.osName = value
    }

    /**
     * @param value
     */
    @JvmName("ablqocukpysghxon")
    public suspend fun osVersion(`value`: Output) {
        this.osVersion = value
    }

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

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

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

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

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

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

    internal fun build(): OperatingSystemDetailsArgs = OperatingSystemDetailsArgs(
        os = os,
        osArchitecture = osArchitecture,
        osName = osName,
        osVersion = osVersion,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy