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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs.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.AccessLevelBasicConditionDevicePolicyOsConstraintArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
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`.
 * @property requireVerifiedChromeOs If you specify DESKTOP_CHROME_OS for osType, you can optionally include requireVerifiedChromeOs to require Chrome Verified Access.
 */
public data class AccessLevelBasicConditionDevicePolicyOsConstraintArgs(
    public val minimumVersion: Output? = null,
    public val osType: Output,
    public val requireVerifiedChromeOs: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs.builder()
            .minimumVersion(minimumVersion?.applyValue({ args0 -> args0 }))
            .osType(osType.applyValue({ args0 -> args0 }))
            .requireVerifiedChromeOs(requireVerifiedChromeOs?.applyValue({ args0 -> args0 })).build()
}

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

    private var osType: Output? = null

    private var requireVerifiedChromeOs: 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("seeropsocbunkagr")
    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("cyrnenlgtfvcabgq")
    public suspend fun osType(`value`: Output) {
        this.osType = value
    }

    /**
     * @param value If you specify DESKTOP_CHROME_OS for osType, you can optionally include requireVerifiedChromeOs to require Chrome Verified Access.
     */
    @JvmName("qpusifjmupvjwmdk")
    public suspend fun requireVerifiedChromeOs(`value`: Output) {
        this.requireVerifiedChromeOs = 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("ccidufvwyxfgytkd")
    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("syitwpclpbdbxkoq")
    public suspend fun osType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value If you specify DESKTOP_CHROME_OS for osType, you can optionally include requireVerifiedChromeOs to require Chrome Verified Access.
     */
    @JvmName("gjtdeyxrihfbhjpp")
    public suspend fun requireVerifiedChromeOs(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireVerifiedChromeOs = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy