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

com.pulumi.gcp.sql.kotlin.inputs.UserPasswordPolicyStatusArgs.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.sql.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.UserPasswordPolicyStatusArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property locked If true, user does not have login privileges.
 * @property passwordExpirationTime Password expiration duration with one week grace period.
 */
public data class UserPasswordPolicyStatusArgs(
    public val locked: Output? = null,
    public val passwordExpirationTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.sql.inputs.UserPasswordPolicyStatusArgs =
        com.pulumi.gcp.sql.inputs.UserPasswordPolicyStatusArgs.builder()
            .locked(locked?.applyValue({ args0 -> args0 }))
            .passwordExpirationTime(passwordExpirationTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserPasswordPolicyStatusArgs].
 */
@PulumiTagMarker
public class UserPasswordPolicyStatusArgsBuilder internal constructor() {
    private var locked: Output? = null

    private var passwordExpirationTime: Output? = null

    /**
     * @param value If true, user does not have login privileges.
     */
    @JvmName("pofmjhyurikasitd")
    public suspend fun locked(`value`: Output) {
        this.locked = value
    }

    /**
     * @param value Password expiration duration with one week grace period.
     */
    @JvmName("eacacxsbunwurrmo")
    public suspend fun passwordExpirationTime(`value`: Output) {
        this.passwordExpirationTime = value
    }

    /**
     * @param value If true, user does not have login privileges.
     */
    @JvmName("adhtebralwsecwly")
    public suspend fun locked(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locked = mapped
    }

    /**
     * @param value Password expiration duration with one week grace period.
     */
    @JvmName("bqotrxrdgtfobmyr")
    public suspend fun passwordExpirationTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passwordExpirationTime = mapped
    }

    internal fun build(): UserPasswordPolicyStatusArgs = UserPasswordPolicyStatusArgs(
        locked = locked,
        passwordExpirationTime = passwordExpirationTime,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy