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

com.pulumi.cloudflare.kotlin.inputs.AccessPolicyConnectionRulesSshArgs.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.AccessPolicyConnectionRulesSshArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property usernames Contains the Unix usernames that may be used when connecting over SSH.
 */
public data class AccessPolicyConnectionRulesSshArgs(
    public val usernames: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.AccessPolicyConnectionRulesSshArgs =
        com.pulumi.cloudflare.inputs.AccessPolicyConnectionRulesSshArgs.builder()
            .usernames(usernames.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AccessPolicyConnectionRulesSshArgs].
 */
@PulumiTagMarker
public class AccessPolicyConnectionRulesSshArgsBuilder internal constructor() {
    private var usernames: Output>? = null

    /**
     * @param value Contains the Unix usernames that may be used when connecting over SSH.
     */
    @JvmName("frsedfsxbfvbpegm")
    public suspend fun usernames(`value`: Output>) {
        this.usernames = value
    }

    @JvmName("umkiwhaxoyfhqhkg")
    public suspend fun usernames(vararg values: Output) {
        this.usernames = Output.all(values.asList())
    }

    /**
     * @param values Contains the Unix usernames that may be used when connecting over SSH.
     */
    @JvmName("snvqlcumqmgmxbun")
    public suspend fun usernames(values: List>) {
        this.usernames = Output.all(values)
    }

    /**
     * @param value Contains the Unix usernames that may be used when connecting over SSH.
     */
    @JvmName("giurefysdgbsigih")
    public suspend fun usernames(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.usernames = mapped
    }

    /**
     * @param values Contains the Unix usernames that may be used when connecting over SSH.
     */
    @JvmName("kokppkoiovomknfx")
    public suspend fun usernames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.usernames = mapped
    }

    internal fun build(): AccessPolicyConnectionRulesSshArgs = AccessPolicyConnectionRulesSshArgs(
        usernames = usernames ?: throw PulumiNullFieldException("usernames"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy