![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.scheduler.kotlin.inputs.OAuthAuthenticationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.scheduler.kotlin.inputs
import com.pulumi.azurenative.scheduler.inputs.OAuthAuthenticationArgs.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
/**
*
* @property audience Gets or sets the audience.
* @property clientId Gets or sets the client identifier.
* @property secret Gets or sets the secret, return value will always be empty.
* @property tenant Gets or sets the tenant.
* @property type Gets or sets the HTTP authentication type.
* Expected value is 'ActiveDirectoryOAuth'.
*/
public data class OAuthAuthenticationArgs(
public val audience: Output? = null,
public val clientId: Output? = null,
public val secret: Output? = null,
public val tenant: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.scheduler.inputs.OAuthAuthenticationArgs =
com.pulumi.azurenative.scheduler.inputs.OAuthAuthenticationArgs.builder()
.audience(audience?.applyValue({ args0 -> args0 }))
.clientId(clientId?.applyValue({ args0 -> args0 }))
.secret(secret?.applyValue({ args0 -> args0 }))
.tenant(tenant?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OAuthAuthenticationArgs].
*/
@PulumiTagMarker
public class OAuthAuthenticationArgsBuilder internal constructor() {
private var audience: Output? = null
private var clientId: Output? = null
private var secret: Output? = null
private var tenant: Output? = null
private var type: Output? = null
/**
* @param value Gets or sets the audience.
*/
@JvmName("xrvacofnfkrrecmv")
public suspend fun audience(`value`: Output) {
this.audience = value
}
/**
* @param value Gets or sets the client identifier.
*/
@JvmName("qqxiqtqvtdpodlir")
public suspend fun clientId(`value`: Output) {
this.clientId = value
}
/**
* @param value Gets or sets the secret, return value will always be empty.
*/
@JvmName("oovmovcegjrcaljq")
public suspend fun secret(`value`: Output) {
this.secret = value
}
/**
* @param value Gets or sets the tenant.
*/
@JvmName("bwkffuetxogfpwrc")
public suspend fun tenant(`value`: Output) {
this.tenant = value
}
/**
* @param value Gets or sets the HTTP authentication type.
* Expected value is 'ActiveDirectoryOAuth'.
*/
@JvmName("knuxfhjmwixtlhpd")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Gets or sets the audience.
*/
@JvmName("vtjuhcgtfpavunqv")
public suspend fun audience(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.audience = mapped
}
/**
* @param value Gets or sets the client identifier.
*/
@JvmName("xryrsvoxvgvqvjho")
public suspend fun clientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientId = mapped
}
/**
* @param value Gets or sets the secret, return value will always be empty.
*/
@JvmName("qhotpvrompyhwvqo")
public suspend fun secret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secret = mapped
}
/**
* @param value Gets or sets the tenant.
*/
@JvmName("brsyiieirlbramoj")
public suspend fun tenant(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tenant = mapped
}
/**
* @param value Gets or sets the HTTP authentication type.
* Expected value is 'ActiveDirectoryOAuth'.
*/
@JvmName("tbgjrdqsxjsrhdbr")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): OAuthAuthenticationArgs = OAuthAuthenticationArgs(
audience = audience,
clientId = clientId,
secret = secret,
tenant = tenant,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy