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

com.pulumi.cloudflare.kotlin.inputs.TeamsRuleRuleSettingsCheckSessionArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.TeamsRuleRuleSettingsCheckSessionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 duration Configure how fresh the session needs to be to be considered valid.
 * @property enforce Enable session enforcement for this rule.
 */
public data class TeamsRuleRuleSettingsCheckSessionArgs(
    public val duration: Output,
    public val enforce: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.TeamsRuleRuleSettingsCheckSessionArgs =
        com.pulumi.cloudflare.inputs.TeamsRuleRuleSettingsCheckSessionArgs.builder()
            .duration(duration.applyValue({ args0 -> args0 }))
            .enforce(enforce.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TeamsRuleRuleSettingsCheckSessionArgs].
 */
@PulumiTagMarker
public class TeamsRuleRuleSettingsCheckSessionArgsBuilder internal constructor() {
    private var duration: Output? = null

    private var enforce: Output? = null

    /**
     * @param value Configure how fresh the session needs to be to be considered valid.
     */
    @JvmName("ssyxlmnxvmafogqh")
    public suspend fun duration(`value`: Output) {
        this.duration = value
    }

    /**
     * @param value Enable session enforcement for this rule.
     */
    @JvmName("dtqtdqfxybxqgyoc")
    public suspend fun enforce(`value`: Output) {
        this.enforce = value
    }

    /**
     * @param value Configure how fresh the session needs to be to be considered valid.
     */
    @JvmName("heieuylyvcxvqmbi")
    public suspend fun duration(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.duration = mapped
    }

    /**
     * @param value Enable session enforcement for this rule.
     */
    @JvmName("ijhermsjaashdoex")
    public suspend fun enforce(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enforce = mapped
    }

    internal fun build(): TeamsRuleRuleSettingsCheckSessionArgs =
        TeamsRuleRuleSettingsCheckSessionArgs(
            duration = duration ?: throw PulumiNullFieldException("duration"),
            enforce = enforce ?: throw PulumiNullFieldException("enforce"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy