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

com.pulumi.azurenative.avs.kotlin.inputs.PSCredentialExecutionParameterArgs.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.avs.kotlin.inputs

import com.pulumi.azurenative.avs.inputs.PSCredentialExecutionParameterArgs.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.jvm.JvmName

/**
 * a powershell credential object
 * @property name The parameter name
 * @property password password for login
 * @property type The type of execution parameter
 * Expected value is 'Credential'.
 * @property username username for login
 */
public data class PSCredentialExecutionParameterArgs(
    public val name: Output,
    public val password: Output? = null,
    public val type: Output,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.avs.inputs.PSCredentialExecutionParameterArgs =
        com.pulumi.azurenative.avs.inputs.PSCredentialExecutionParameterArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PSCredentialExecutionParameterArgs].
 */
@PulumiTagMarker
public class PSCredentialExecutionParameterArgsBuilder internal constructor() {
    private var name: Output? = null

    private var password: Output? = null

    private var type: Output? = null

    private var username: Output? = null

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

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

    /**
     * @param value The type of execution parameter
     * Expected value is 'Credential'.
     */
    @JvmName("bplanmydmhyxcvtm")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

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

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

    /**
     * @param value The type of execution parameter
     * Expected value is 'Credential'.
     */
    @JvmName("ovsdpkocuptsppop")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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

    internal fun build(): PSCredentialExecutionParameterArgs = PSCredentialExecutionParameterArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        password = password,
        type = type ?: throw PulumiNullFieldException("type"),
        username = username,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy