com.pulumi.azurenative.web.kotlin.inputs.AppleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.AppleArgs.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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The configuration settings of the Apple provider.
* @property enabled false
if the Apple provider should not be enabled despite the set registration; otherwise, true
.
* @property login The configuration settings of the login flow.
* @property registration The configuration settings of the Apple registration.
*/
public data class AppleArgs(
public val enabled: Output? = null,
public val login: Output? = null,
public val registration: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.AppleArgs =
com.pulumi.azurenative.web.inputs.AppleArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.login(login?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.registration(registration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AppleArgs].
*/
@PulumiTagMarker
public class AppleArgsBuilder internal constructor() {
private var enabled: Output? = null
private var login: Output? = null
private var registration: Output? = null
/**
* @param value false
if the Apple provider should not be enabled despite the set registration; otherwise, true
.
*/
@JvmName("uutdiafmhhltcnhn")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The configuration settings of the login flow.
*/
@JvmName("vvblqjuchhfsdtfq")
public suspend fun login(`value`: Output) {
this.login = value
}
/**
* @param value The configuration settings of the Apple registration.
*/
@JvmName("jbkglogaqnchmxhc")
public suspend fun registration(`value`: Output) {
this.registration = value
}
/**
* @param value false
if the Apple provider should not be enabled despite the set registration; otherwise, true
.
*/
@JvmName("nefwsscptctsutln")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The configuration settings of the login flow.
*/
@JvmName("lhvpurondmgnpufl")
public suspend fun login(`value`: LoginScopesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.login = mapped
}
/**
* @param argument The configuration settings of the login flow.
*/
@JvmName("iibfgebxdskhycio")
public suspend fun login(argument: suspend LoginScopesArgsBuilder.() -> Unit) {
val toBeMapped = LoginScopesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.login = mapped
}
/**
* @param value The configuration settings of the Apple registration.
*/
@JvmName("rdqsnmhuqjeumutf")
public suspend fun registration(`value`: AppleRegistrationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.registration = mapped
}
/**
* @param argument The configuration settings of the Apple registration.
*/
@JvmName("gtnjpsyjwxeesbwp")
public suspend fun registration(argument: suspend AppleRegistrationArgsBuilder.() -> Unit) {
val toBeMapped = AppleRegistrationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.registration = mapped
}
internal fun build(): AppleArgs = AppleArgs(
enabled = enabled,
login = login,
registration = registration,
)
}