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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.AccessLevelConditionDevicePolicyOsConstraintArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.accesscontextmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyOsConstraintArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property minimumVersion The minimum allowed OS version. If not set, any version
 * of this OS satisfies the constraint.
 * Format: "major.minor.patch" such as "10.5.301", "9.2.1".
 * @property osType The operating system type of the device.
 * Possible values are: `OS_UNSPECIFIED`, `DESKTOP_MAC`, `DESKTOP_WINDOWS`, `DESKTOP_LINUX`, `DESKTOP_CHROME_OS`, `ANDROID`, `IOS`.
 */
public data class AccessLevelConditionDevicePolicyOsConstraintArgs(
    public val minimumVersion: Output? = null,
    public val osType: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyOsConstraintArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyOsConstraintArgs.builder()
            .minimumVersion(minimumVersion?.applyValue({ args0 -> args0 }))
            .osType(osType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessLevelConditionDevicePolicyOsConstraintArgs].
 */
@PulumiTagMarker
public class AccessLevelConditionDevicePolicyOsConstraintArgsBuilder internal constructor() {
    private var minimumVersion: Output? = null

    private var osType: Output? = null

    /**
     * @param value The minimum allowed OS version. If not set, any version
     * of this OS satisfies the constraint.
     * Format: "major.minor.patch" such as "10.5.301", "9.2.1".
     */
    @JvmName("ihgxabgedjcufwmi")
    public suspend fun minimumVersion(`value`: Output) {
        this.minimumVersion = value
    }

    /**
     * @param value The operating system type of the device.
     * Possible values are: `OS_UNSPECIFIED`, `DESKTOP_MAC`, `DESKTOP_WINDOWS`, `DESKTOP_LINUX`, `DESKTOP_CHROME_OS`, `ANDROID`, `IOS`.
     */
    @JvmName("pdapypthuedoqhtv")
    public suspend fun osType(`value`: Output) {
        this.osType = value
    }

    /**
     * @param value The minimum allowed OS version. If not set, any version
     * of this OS satisfies the constraint.
     * Format: "major.minor.patch" such as "10.5.301", "9.2.1".
     */
    @JvmName("oplljpaycvnpwhtg")
    public suspend fun minimumVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumVersion = mapped
    }

    /**
     * @param value The operating system type of the device.
     * Possible values are: `OS_UNSPECIFIED`, `DESKTOP_MAC`, `DESKTOP_WINDOWS`, `DESKTOP_LINUX`, `DESKTOP_CHROME_OS`, `ANDROID`, `IOS`.
     */
    @JvmName("kaphgdwsbjcmstbu")
    public suspend fun osType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    internal fun build(): AccessLevelConditionDevicePolicyOsConstraintArgs =
        AccessLevelConditionDevicePolicyOsConstraintArgs(
            minimumVersion = minimumVersion,
            osType = osType ?: throw PulumiNullFieldException("osType"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy