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

com.pulumi.azurenative.hdinsight.kotlin.inputs.LinuxOperatingSystemProfileArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.hdinsight.kotlin.inputs

import com.pulumi.azurenative.hdinsight.inputs.LinuxOperatingSystemProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The ssh username, password, and ssh public key.
 * @property password The password.
 * @property sshProfile The SSH profile.
 * @property username The username.
 */
public data class LinuxOperatingSystemProfileArgs(
    public val password: Output? = null,
    public val sshProfile: Output? = null,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hdinsight.inputs.LinuxOperatingSystemProfileArgs =
        com.pulumi.azurenative.hdinsight.inputs.LinuxOperatingSystemProfileArgs.builder()
            .password(password?.applyValue({ args0 -> args0 }))
            .sshProfile(sshProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinuxOperatingSystemProfileArgs].
 */
@PulumiTagMarker
public class LinuxOperatingSystemProfileArgsBuilder internal constructor() {
    private var password: Output? = null

    private var sshProfile: Output? = null

    private var username: Output? = null

    /**
     * @param value The password.
     */
    @JvmName("hufhwckehyqbasgk")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The SSH profile.
     */
    @JvmName("ipujgklbglowkwua")
    public suspend fun sshProfile(`value`: Output) {
        this.sshProfile = value
    }

    /**
     * @param value The username.
     */
    @JvmName("awhxgaguicvkridn")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The password.
     */
    @JvmName("hsvlsjcuyhtverlf")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The SSH profile.
     */
    @JvmName("asekislklcenmerk")
    public suspend fun sshProfile(`value`: SshProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sshProfile = mapped
    }

    /**
     * @param argument The SSH profile.
     */
    @JvmName("hawestxwquovftsi")
    public suspend fun sshProfile(argument: suspend SshProfileArgsBuilder.() -> Unit) {
        val toBeMapped = SshProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sshProfile = mapped
    }

    /**
     * @param value The username.
     */
    @JvmName("jjxrbmdvkxpgoahg")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): LinuxOperatingSystemProfileArgs = LinuxOperatingSystemProfileArgs(
        password = password,
        sshProfile = sshProfile,
        username = username,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy