
com.pulumi.azurenative.videoanalyzer.kotlin.inputs.UsernamePasswordCredentialsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.videoanalyzer.kotlin.inputs
import com.pulumi.azurenative.videoanalyzer.inputs.UsernamePasswordCredentialsArgs.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
/**
* Username and password credentials.
* @property password Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
* @property type The discriminator for derived types.
* Expected value is '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'.
* @property username Username to be presented as part of the credentials.
*/
public data class UsernamePasswordCredentialsArgs(
public val password: Output,
public val type: Output,
public val username: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.videoanalyzer.inputs.UsernamePasswordCredentialsArgs = com.pulumi.azurenative.videoanalyzer.inputs.UsernamePasswordCredentialsArgs.builder()
.password(password.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.username(username.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UsernamePasswordCredentialsArgs].
*/
@PulumiTagMarker
public class UsernamePasswordCredentialsArgsBuilder internal constructor() {
private var password: Output? = null
private var type: Output? = null
private var username: Output? = null
/**
* @param value Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
*/
@JvmName("fglbxoghfowgjgti")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value The discriminator for derived types.
* Expected value is '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'.
*/
@JvmName("bmpatssrcljtaijs")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Username to be presented as part of the credentials.
*/
@JvmName("maytiqooctenuxge")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
*/
@JvmName("pklvchrjicuccubt")
public suspend fun password(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value The discriminator for derived types.
* Expected value is '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'.
*/
@JvmName("fknnindddxrnofbh")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value Username to be presented as part of the credentials.
*/
@JvmName("nalufqlrltypmmoy")
public suspend fun username(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): UsernamePasswordCredentialsArgs = UsernamePasswordCredentialsArgs(
password = password ?: throw PulumiNullFieldException("password"),
type = type ?: throw PulumiNullFieldException("type"),
username = username ?: throw PulumiNullFieldException("username"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy