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

com.pulumi.azurenative.app.kotlin.inputs.NonceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.NonceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The configuration settings of the nonce used in the login flow.
 * @property nonceExpirationInterval The time after the request is made when the nonce should expire.
 * @property validateNonce false if the nonce should not be validated while completing the login flow; otherwise, true.
 */
public data class NonceArgs(
    public val nonceExpirationInterval: Output? = null,
    public val validateNonce: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.NonceArgs =
        com.pulumi.azurenative.app.inputs.NonceArgs.builder()
            .nonceExpirationInterval(nonceExpirationInterval?.applyValue({ args0 -> args0 }))
            .validateNonce(validateNonce?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NonceArgs].
 */
@PulumiTagMarker
public class NonceArgsBuilder internal constructor() {
    private var nonceExpirationInterval: Output? = null

    private var validateNonce: Output? = null

    /**
     * @param value The time after the request is made when the nonce should expire.
     */
    @JvmName("eoaowyaqnfpkmxtw")
    public suspend fun nonceExpirationInterval(`value`: Output) {
        this.nonceExpirationInterval = value
    }

    /**
     * @param value false if the nonce should not be validated while completing the login flow; otherwise, true.
     */
    @JvmName("nqspqedudwcphbyv")
    public suspend fun validateNonce(`value`: Output) {
        this.validateNonce = value
    }

    /**
     * @param value The time after the request is made when the nonce should expire.
     */
    @JvmName("augoaqtxibfjnqud")
    public suspend fun nonceExpirationInterval(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nonceExpirationInterval = mapped
    }

    /**
     * @param value false if the nonce should not be validated while completing the login flow; otherwise, true.
     */
    @JvmName("nxcpfefeknyqqhoj")
    public suspend fun validateNonce(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.validateNonce = mapped
    }

    internal fun build(): NonceArgs = NonceArgs(
        nonceExpirationInterval = nonceExpirationInterval,
        validateNonce = validateNonce,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy